Update FLASH_SIZE_BYTES to avoid assert on > 2MB
The SDK would assert if a flash write/erase happened past the end of the flash space it was built with. So, 8MB chips would crash when accessing offset 3MB, for example. Avoid this by specifying the maximum flash available so the SDK won't trip. Fixes #76
This commit is contained in:
parent
d48aafaf24
commit
c1ab2b7352
2 changed files with 1 additions and 0 deletions
BIN
lib/libpico.a
BIN
lib/libpico.a
Binary file not shown.
|
|
@ -15,6 +15,7 @@ add_library(pico STATIC)
|
|||
|
||||
target_compile_definitions(pico PUBLIC
|
||||
PICO_PRINTF_ALWAYS_INCLUDED=1
|
||||
PICO_FLASH_SIZE_BYTES=16777216
|
||||
)
|
||||
|
||||
target_link_libraries(pico
|
||||
|
|
|
|||
Loading…
Reference in a new issue