Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8597

Other RP2040 boards • Re: RP2350 internal filesystem accidentally erased by USB host?

$
0
0
I had not considered that, because we aren't using bluetooth in our app, and therefore we have no code enabling it.
One of the first things MicroPython does is initialise wireless and upload the firmware but I'm not sure exactly what it does beyond that.

You might be right. It's the only thing I could think of which would explain what you experienced.
The device is powered off most of the time actually.
Thanks for the clarifications - So basically a battery powered device with an on-off switch.
The one thing I am unclear about it whether or not I will have to customize the the current 1.26.0 distribution of MicroPython with additional drivers to enable all the onboard peripherals on the Sparkfun RP2350 Thing Plus, or if I can just use the plain vanilla release.
I believe it should just be a standard build - It's only Pimoroni I think who ship a customised MicroPython.

My recommendation would be, and you might have done some of this already -

Code:

cd ~/picogit clone https://github.com/micropython/micropython.gitcd micropythongit submodule update --initmake -C mpy-cross

Code:

cd portscp -r rp2 your_rp2_productcd your_rp2_product
Then copy all your python programs and modules into ./modules (~/pico/micropython/ports/your_rp2_product/modules)

Code:

mkdir buildcd buildcmake -DMICROPY_BOARD=SPARKFUN_THINGPLUS_RP2350 ..make
Upload your UF2 and job done.

The build worked for me so fingers crossed.

Statistics: Posted by hippy — Fri Aug 29, 2025 1:51 pm



Viewing all articles
Browse latest Browse all 8597

Trending Articles