Update linker scripts with correct RAM/flash sizes

Change code style so that it's easy to see the number of kilobytes too.
This commit is contained in:
Doug Brown 2023-06-23 19:51:44 -07:00 committed by Doug Brown
parent e1e1523a99
commit 7a77d583da
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
/* Linker script to configure memory regions. */ /* Linker script to configure memory regions. */
MEMORY MEMORY
{ {
FLASH (rx) : ORIGIN = 0x00100000, LENGTH = 0x1000 /* 4K */ FLASH (rx) : ORIGIN = 0x00100000, LENGTH = 4*1024
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x2000 /* 8K */ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 16*1024
} }
/* Library configurations */ /* Library configurations */

View File

@ -1,8 +1,8 @@
/* Linker script to configure memory regions. */ /* Linker script to configure memory regions. */
MEMORY MEMORY
{ {
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x8000 /* 32k */ FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 128*1024
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x2000 /* 8k */ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 16*1024
} }
/* Library configurations */ /* Library configurations */