8000 nrf/boards/ARDUINO_NANO_33_BLE_SENSE: fix flash layout by HeinerTholen · Pull Request #18698 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@HeinerTholen
Copy link

Summary

Fix arduino nano 33 ble flash layout in order to allow for filesystem sizes of more than 64K.

Removing _flash_start linker variable in favour of _bootloader_head_size, _bootloader_tail_size and _bootloader_head_ram_size, which were previously all unset in ports/nrf/boards/memory.ld.

Defining _bootloader_tail_size is necessary in order to allow for FS sizes larger than 64K. Larger FS sizes will otherwise lead to (tail) bootloader corruption.

Testing

Tested with Arduino Nano 33 BLE.

  • Build firmware with FS sizes of 64K, 96K and 128K and deployed each one to a nano 33 ble with bossac.
  • Connected to the board and verified FS size with import os; os.statvfs(".")
  • Downloaded entire flash (64K and 128K trials) with openocd to verify correct placement of FS.

Removing `_flash_start` linker variable in favour of
`_bootloader_head_size`, `_bootloader_tail_size` and
`_bootloader_head_ram_size`, which were previously
all unset in ports/nrf/boards/memory.ld.

Defining `_bootloader_tail_size` is necessary in order
to allow for FS sizes larger than 64K. Larger FS sizes
will otherwise lead to (tail) bootloader corruption.

Tested with Arduino Nano 33 BLE.

Signed-off-by: Heiner Tholen <helloheinertholen@gmail.com>
@HeinerTholen HeinerTholen force-pushed the fix-nano-33-ble-flash-layout branch from a6e2641 to 468eac5 Compare January 17, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0