Initial modification to move bootloader data after the application
This commit is contained in:
@@ -16,21 +16,27 @@ _MIN_STACK_SIZE = 0x400;
|
||||
Memory layout of device:
|
||||
20+2 KB 198KB-2KB -8 38 KB
|
||||
| bootloader | application | secrets/data |
|
||||
----------->
|
||||
len | 20 KB/10p| 196KB-8-8/98p | 8B | 2kB/1p | 38 KB/19p |
|
||||
pos | 0->20 KB | 20->216KB-8-8 | 216KB-8-8->216KB-8 | 216kB -> 218 kB | 218->256 KB |
|
||||
posp | 0-10 | 10-113 | 113-113 | 113-114 | 113-128 |
|
||||
desc | bootloader | application | firmware version | bootloader data | secrets/data |
|
||||
|
||||
Last 8 bytes in application space are occupied by bootloader flags - app
|
||||
authorization and bootloader activation flag.
|
||||
Previous 8 bytes are application version.
|
||||
*/
|
||||
|
||||
/* Current firmware version number
|
||||
Should be equal to (APPLICATION_END_ADDR-8) from targets/stm32l432/src/memory_layout.h:40 */
|
||||
_version_start = 0x08000000 + (128-19)*2048-8-8;
|
||||
_version_start = 0x08000000 + 216*1024-8-8;
|
||||
|
||||
/* flash length is (APPLICATION_END_PAGE-20*1024), where 20K is bootloader */
|
||||
|
||||
MEMORY
|
||||
{
|
||||
flash (rx) : ORIGIN = 0x08005000 + 2K, LENGTH = 198K - 8 - 8 - 2K
|
||||
flash_v (rx) : ORIGIN = 0x08000000 + (128-19)*2048 - 8 - 8, LENGTH = 8
|
||||
flash (rx) : ORIGIN = 0x08000000 + 20K, LENGTH = 196K - 8 - 8
|
||||
flash_v (r) : ORIGIN = 0x08000000 + 196K - 8 - 8, LENGTH = 8
|
||||
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 48K
|
||||
sram2 (rw) : ORIGIN = 0x10000000, LENGTH = 16K
|
||||
}
|
||||
|
Reference in New Issue
Block a user