File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -525,6 +525,7 @@ target_compile_options(${MICROPY_TARGET} PRIVATE
525525
526526target_link_options (${MICROPY_TARGET} PRIVATE
527527 -Wl,--defsym=__micropy_c_heap_size__=${MICROPY_C_HEAP_SIZE}
528+ -Wl,--defsym=__micropy_flash_size__=${PICO_FLASH_SIZE_BYTES}
528529 -Wl,--wrap=dcd_event_handler
529530 -Wl,--wrap=runtime_init_clocks
530531)
Original file line number Diff line number Diff line change 2323
2424MEMORY
2525{
26- FLASH (rx) : ORIGIN = 0x10000000 , LENGTH = 2048k
26+ FLASH (rx) : ORIGIN = 0x10000000 , LENGTH = __micropy_flash_size__
2727 RAM (rwx) : ORIGIN = 0x20000000 , LENGTH = 256k
2828 SCRATCH_X (rwx) : ORIGIN = 0x20040000 , LENGTH = 4k
2929 SCRATCH_Y (rwx) : ORIGIN = 0x20041000 , LENGTH = 4k
Original file line number Diff line number Diff line change 2323
2424MEMORY
2525{
26- FLASH (rx) : ORIGIN = 0x10000000 , LENGTH = 4096k
26+ FLASH (rx) : ORIGIN = 0x10000000 , LENGTH = __micropy_flash_size__
2727 RAM (rwx) : ORIGIN = 0x20000000 , LENGTH = 512k
2828 SCRATCH_X (rwx) : ORIGIN = 0x20080000 , LENGTH = 4k
2929 SCRATCH_Y (rwx) : ORIGIN = 0x20081000 , LENGTH = 4k
You can’t perform that action at this time.
0 commit comments