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

@ -20,7 +20,7 @@ cortex-m = { version = "0.7.7", features = [
]} ]}
u5-lib = { git = "ssh://gitea@git.ggeta.com:2002/guangzong/u5_new.git",features = [ u5-lib = { git = "ssh://gitea@git.ggeta.com:2002/guangzong/u5_new.git",features = [
"stm32u5a5qj", "stm32u5a5qj",
# "memory-x", # "memory-x",
# "stm32u575zi" # "stm32u575zi"
], default-features = false, branch = "dev" } ], default-features = false, branch = "dev" }
eb_cmds = { git = "ssh://gitea@git.ggeta.com:2002/guangzong/eb_cmds.git"} eb_cmds = { git = "ssh://gitea@git.ggeta.com:2002/guangzong/eb_cmds.git"}

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
} }