update memory and buildr.rs
This commit is contained in:
parent
e7437560c2
commit
687f44d8ba
@ -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"}
|
||||||
|
8
build.rs
8
build.rs
@ -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() {
|
||||||
|
4
memory.x
4
memory.x
@ -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
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user