Skip to content

Commit 6eeb48f

Browse files
committed
bricks/primehub: fix flash memory layout
This fixes the flash memory allocation in the linker script for SPIKE Prime. This hub doesn't have a "user" flash memory area like other Powered Up hubs. Also add a comment on the RAM layout while we are touching this.
1 parent d09ca3a commit 6eeb48f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bricks/primehub/prime_hub.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
MEMORY
1111
{
1212
/* Flash size is 1M, bootloader resides in first 32K */
13-
FLASH (rx) : ORIGIN = 0x08008000, LENGTH = 960K
14-
USER_FLASH (rx) : ORIGIN = 0x080F8000, LENGTH = 32K
13+
FLASH (rx) : ORIGIN = 0x08008000, LENGTH = 992K
14+
/* SRAM1 (256K) and SRAM2 (64K) are treated as one continuous block */
1515
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 320K
1616
}
1717

0 commit comments

Comments
 (0)