SEEED_XIAO_NRF52 board access to 1 MB Flash
Port, board and/or hardware
XIAO nRF52840 Sense
MicroPython version
MicroPython v1.26.0-preview.527.g593ae04ee on 2025-08-07; XIAO nRF52840 Sense with NRF52840
the same with 1.25.0
Reproduction
stat = os.statvfs("/flash")
(4096, 4096, 64, 59, 59, 0, 0, 0, 0, 255)
So that's 256 kB of memory.
Expected behaviour
No response
Observed behaviour
The board is 256 KB RAM,1MB Flash 2MB onboard Flash
Why does MicroPython only reports 256 kB ?
BTW how do I access both Flash + onboard Flash ? Do I need to make a manual operation in my code?
THanks
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
nrf: Add board definitions for the Seeed XIAO NRF52840 Sense device.
It keeps compatibility with the XIAO bootloader by:
- using Soft Device 7.3.0
- reserving 48k memory for the bootloader.
So on double reset a drive pops for uploading an uf2 image or a nrfutil pkg file. Instructions to create it from a hex file are included.
The script download_ble_stack.sh has been adapted to get the version 7.3.0 soft device files. It may have to be executed once before building.
The CPU file system is set to 256k and the pin definitions are adapted. Besides that, it has the common functionality. The on-board sensors and additional flash can be supported by Python scripts.