Skip to content

Commit

Permalink
always put the main.o code and the startup data in RAM1
Browse files Browse the repository at this point in the history
When DAPLINK_RAM_APP2_START is defined, the startup code and data
may be placed in RAM2, which is not guaranteed to work.

Explicitly place main.o and startup_*.o in RAM1.

Signed-off-by: Adrian Negreanu <[email protected]>
  • Loading branch information
Adrian Negreanu committed Dec 7, 2020
1 parent 9e5ebfc commit a4f573f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/daplink/daplink.sct
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ LR_IROM1 DAPLINK_ROM_APP_START DAPLINK_ROM_APP_SIZE {
RW_IRAM1 DAPLINK_RAM_APP_START DAPLINK_RAM_APP_SIZE { ; RW data
.ANY (ram_func)
.ANY (+RW +ZI)
main.o (+RW +ZI)
startup_*.o (+RW +ZI)
.ANY (RAM1)
}

Expand Down

0 comments on commit a4f573f

Please sign in to comment.