Skip to content

Commit 8fa4d8d

Browse files
committed
Fix flash overlow bug in max32690 linkerscript
Signed-off-by: Brandon <[email protected]>
1 parent fdaf467 commit 8fa4d8d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ports/analog/linking/max32690_cktpy.ld

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@
55
* SPDX-License-Identifier: MIT
66
*/
77

8+
/*
9+
* FLASH_FIRMWARE: 3072 KiB - 128 KiB = 2944 KiB
10+
*
11+
* Start & Size for FLASH_FIRMWARE and RAM MUST be raw numbers
12+
* b/c FLASH_FIMRWARE is parsed with Python build_memory_info.py
13+
*/
814
MEMORY {
915
ROM (rx) : ORIGIN = 0x00000000, LENGTH = 128K
10-
FLASH (rx) : ORIGIN = 0x10000000, LENGTH = 3M
11-
FLASH_FIRMWARE (rx) : ORIGIN = 0x10000000, LENGTH = 2992K
16+
FLASH_FIRMWARE (rx) : ORIGIN = 0x10000000, LENGTH = 2944K
1217
FLASH_FS (rx) : ORIGIN = 0x102E0000, LENGTH = 128K
1318
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 1M
1419
}
15-
/* Minimum flash page is 16K */
16-
/* FLASH FIRMWARE: 3072K [3MB] - 16K - 64K = 2992K */
1720

1821
SECTIONS {
1922
.rom :

0 commit comments

Comments
 (0)