Merge #837
837: Use base address for RAM for stm32 r=Dirbaio a=lulf Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
This commit is contained in:
commit
2ee398b5d2
@ -1,7 +1,4 @@
|
|||||||
use std::env;
|
use std::env;
|
||||||
use std::fs::File;
|
|
||||||
use std::io::Write;
|
|
||||||
use std::path::PathBuf;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let target = env::var("TARGET").unwrap();
|
let target = env::var("TARGET").unwrap();
|
||||||
|
@ -5,7 +5,7 @@ MEMORY
|
|||||||
BOOTLOADER_STATE : ORIGIN = 0x08006000, LENGTH = 4K
|
BOOTLOADER_STATE : ORIGIN = 0x08006000, LENGTH = 4K
|
||||||
FLASH : ORIGIN = 0x08008000, LENGTH = 32K
|
FLASH : ORIGIN = 0x08008000, LENGTH = 32K
|
||||||
DFU : ORIGIN = 0x08010000, LENGTH = 36K
|
DFU : ORIGIN = 0x08010000, LENGTH = 36K
|
||||||
RAM (rwx) : ORIGIN = 0x20000008, LENGTH = 32K
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
|
||||||
}
|
}
|
||||||
|
|
||||||
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOTLOADER);
|
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOTLOADER);
|
||||||
|
@ -5,7 +5,7 @@ MEMORY
|
|||||||
BOOTLOADER_STATE : ORIGIN = 0x08040000, LENGTH = 256K
|
BOOTLOADER_STATE : ORIGIN = 0x08040000, LENGTH = 256K
|
||||||
ACTIVE : ORIGIN = 0x08080000, LENGTH = 256K
|
ACTIVE : ORIGIN = 0x08080000, LENGTH = 256K
|
||||||
DFU : ORIGIN = 0x080c0000, LENGTH = 512K
|
DFU : ORIGIN = 0x080c0000, LENGTH = 512K
|
||||||
RAM (rwx) : ORIGIN = 0x20000008, LENGTH = 368K + 16K
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 368K + 16K
|
||||||
}
|
}
|
||||||
|
|
||||||
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(FLASH);
|
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(FLASH);
|
||||||
|
@ -5,7 +5,7 @@ MEMORY
|
|||||||
BOOTLOADER_STATE : ORIGIN = 0x08006000, LENGTH = 4K
|
BOOTLOADER_STATE : ORIGIN = 0x08006000, LENGTH = 4K
|
||||||
FLASH : ORIGIN = 0x08008000, LENGTH = 32K
|
FLASH : ORIGIN = 0x08008000, LENGTH = 32K
|
||||||
DFU : ORIGIN = 0x08010000, LENGTH = 36K
|
DFU : ORIGIN = 0x08010000, LENGTH = 36K
|
||||||
RAM (rwx) : ORIGIN = 0x20000008, LENGTH = 16K
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 16K
|
||||||
}
|
}
|
||||||
|
|
||||||
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOTLOADER);
|
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOTLOADER);
|
||||||
|
@ -5,7 +5,7 @@ MEMORY
|
|||||||
BOOTLOADER_STATE : ORIGIN = 0x08006000, LENGTH = 4K
|
BOOTLOADER_STATE : ORIGIN = 0x08006000, LENGTH = 4K
|
||||||
FLASH : ORIGIN = 0x08008000, LENGTH = 32K
|
FLASH : ORIGIN = 0x08008000, LENGTH = 32K
|
||||||
DFU : ORIGIN = 0x08010000, LENGTH = 36K
|
DFU : ORIGIN = 0x08010000, LENGTH = 36K
|
||||||
RAM (rwx) : ORIGIN = 0x20000008, LENGTH = 16K
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 16K
|
||||||
}
|
}
|
||||||
|
|
||||||
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOTLOADER);
|
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOTLOADER);
|
||||||
|
@ -5,7 +5,7 @@ MEMORY
|
|||||||
BOOTLOADER_STATE : ORIGIN = 0x08006000, LENGTH = 4K
|
BOOTLOADER_STATE : ORIGIN = 0x08006000, LENGTH = 4K
|
||||||
FLASH : ORIGIN = 0x08008000, LENGTH = 32K
|
FLASH : ORIGIN = 0x08008000, LENGTH = 32K
|
||||||
DFU : ORIGIN = 0x08010000, LENGTH = 36K
|
DFU : ORIGIN = 0x08010000, LENGTH = 36K
|
||||||
RAM (rwx) : ORIGIN = 0x20000008, LENGTH = 32K
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
|
||||||
}
|
}
|
||||||
|
|
||||||
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOTLOADER);
|
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOTLOADER);
|
||||||
|
@ -5,7 +5,7 @@ MEMORY
|
|||||||
BOOTLOADER_STATE : ORIGIN = 0x08006000, LENGTH = 4K
|
BOOTLOADER_STATE : ORIGIN = 0x08006000, LENGTH = 4K
|
||||||
FLASH : ORIGIN = 0x08008000, LENGTH = 32K
|
FLASH : ORIGIN = 0x08008000, LENGTH = 32K
|
||||||
DFU : ORIGIN = 0x08010000, LENGTH = 36K
|
DFU : ORIGIN = 0x08010000, LENGTH = 36K
|
||||||
RAM (rwx) : ORIGIN = 0x20000008, LENGTH = 32K
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
|
||||||
}
|
}
|
||||||
|
|
||||||
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOTLOADER);
|
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOTLOADER);
|
||||||
|
@ -5,7 +5,7 @@ MEMORY
|
|||||||
BOOTLOADER_STATE : ORIGIN = 0x08006000, LENGTH = 4K
|
BOOTLOADER_STATE : ORIGIN = 0x08006000, LENGTH = 4K
|
||||||
ACTIVE : ORIGIN = 0x08008000, LENGTH = 32K
|
ACTIVE : ORIGIN = 0x08008000, LENGTH = 32K
|
||||||
DFU : ORIGIN = 0x08010000, LENGTH = 36K
|
DFU : ORIGIN = 0x08010000, LENGTH = 36K
|
||||||
RAM (rwx) : ORIGIN = 0x20000008, LENGTH = 16K
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 16K
|
||||||
}
|
}
|
||||||
|
|
||||||
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(FLASH);
|
__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(FLASH);
|
||||||
|
Loading…
Reference in New Issue
Block a user