Skip to content

Commit 7d9e1d4

Browse files
authored
reserved topmost 32 bytes of RAM used by IAP functions
NXP LPC176x/5x User Manual UM10360 Rev 4.1: 32.3.2.8 RAM used by IAP command handler Flash programming commands use the top 32 bytes of on-chip RAM. The maximum stack usage in the user allocated stack space is 128 bytes and it grows downwards.
1 parent 6c3f9bd commit 7d9e1d4

File tree

1 file changed

+2
-2
lines changed
  • targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_CS

1 file changed

+2
-2
lines changed

targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_CS/LPC1768.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ SEARCH_DIR(.)
2020

2121
/*
2222
ram ORIGIN: 8_byte_aligned(49 vect * 4 bytes) = 8_byte_aligned(0xC4) = 0xC8
23-
ram LENGTH: 32KB - 0xC8 = 0x7F38
23+
ram LENGTH: 32KB (RAM size) - 0xC8 (NIVT) - 32 (topmost 32 bytes used by IAP functions) = 0x7F18
2424
*/
2525
MEMORY
2626
{
2727
rom (rx) : ORIGIN = 0x00000000, LENGTH = 512K
2828

29-
ram (rwx) : ORIGIN = 0x100000C8, LENGTH = 0x7F38
29+
ram (rwx) : ORIGIN = 0x100000C8, LENGTH = 0x7F18
3030

3131
ram1(rwx) : ORIGIN = 0x2007C000, LENGTH = 16K
3232
ram2(rwx) : ORIGIN = 0x20080000, LENGTH = 16K

0 commit comments

Comments
 (0)