I’ve tried several times, but I can’t get MicroPython to work. No problems with CircuitPython, though! Has anyone got MP to work?
Same problem with me too. The Pico2 UF2 file appears to not be compatable. Pico2 board has 4MB flash and Xiao RP2350 has 2MB psram. I’m going to try to build it from source with the proper non-volatile memory size.
I build the UF2 from source, but I get the same error message in linux:
device offline error, dev sda, sector 260 op 0x1:(WRITE) flags 0x100000 phys_seg 1 prio class 0
Buffer I/O error on dev sda1, logical block 259, lost async page write
FAT-fs (sda1): unable to read boot sector to mark fs as dirty
I did update mpconfigboard.h to have:
#define MICROPY_HW_FLASH_STORAGE_BYTES (2 * 1024 * 1024)
This matches the WEACT boards which have various SPI FLASH sizes.
Here are the steps I needed to build from source:
git clone
https://www.github.com/micropython/micropython
cd micropython/
cp -a ports/rp2/boards/RPI_PICO2 ports/rp2/boards/SEEED_XIAO_RP2350
make -C mpy-cross/
git submodule update --init – lib/pico-sdk
git submodule update --init – lib/tinyusb
git submodule update --init – lib/micropython-lib
git submodule update --init – lib/mbedtls
cd lib/pico-sdk
git submodule update --init
cd …/…
cd ports/rp2
make -j8 BOARD=SEEED_XIAO_RP2350
Works now just fine using the Pico 2 uf2 file.