update memory and buildr.rs

This commit is contained in:
guangzong 2024-04-02 21:30:15 -04:00
parent e7437560c2
commit 687f44d8ba
Signed by: guangzong
GPG Key ID: 095389BACAE97D19
3 changed files with 7 additions and 7 deletions

View File

@ -1,8 +1,8 @@
fn main() { fn main() {
println!("cargo:rustc-link-arg-bins=-Tmemory.x"); // println!("cargo:rustc-link-arg-bins=-Tmemory.x");
// println!("cargo:rustc-link-arg-bins=--nmagic"); println!("cargo:rustc-link-arg-bins=--nmagic");
// println!("cargo:rustc-link-arg-bins=-Tlink.x"); println!("cargo:rustc-link-arg-bins=-Tlink.x");
// println!("cargo:rustc-link-arg-bins=-Tdefmt.x"); println!("cargo:rustc-link-arg-bins=-Tdefmt.x");
// enable cfg sdmmc // enable cfg sdmmc
// println!("cargo:rustc-cfg=sdmmc"); // println!("cargo:rustc-cfg=sdmmc");
// for (key, _value) in std::env::vars() { // for (key, _value) in std::env::vars() {

View File

@ -1,6 +1,6 @@
MEMORY MEMORY
{ {
FLASH : ORIGIN = 0x08000000, LENGTH = 4096K /* BANK_1 */ FLASH : ORIGIN = 0x08000000, LENGTH = 4096K
RAM : ORIGIN = 0x20000000, LENGTH = 2514K RAM : ORIGIN = 0x20000000, LENGTH = 2496K /* 2514K? */
OTP : ORIGIN = 0x0bfa0000, LENGTH = 512 OTP : ORIGIN = 0x0bfa0000, LENGTH = 512
} }