Close

Simplifying the development process by activating the USB mass storage functionality in MicroPython

A project log for RP2040 MiniPill LoRa

Raspberry Pi Pico based LoRa Board

dominik-kuhnDominik Kuhn 01/11/2025 at 12:380 Comments

We have activated the USB mass storage function (in the mpconfigureport.h file) for our board in the MicroPython port, so we can copy Python files to the board in the same way as a USB stick.

#define MICROPY_HW_FLASH_STORAGE_BYTES          (1024 * 1024)

This and the abstraction of the LoRaWAN class (see previous Log)  makes development possible without just any IDE. When the RP2040 MiniPill LoRa Board is connected to your PC, tablet or smartphone it will power on and enter the start up process (the boot process). 

Your PC should now recognise the RP2040 MiniPill LoRa Board. It depends on the type of PC you have as to what happens next:

Okay, so you should now have the RP2040 MiniPill LoRa Board connected as a USB flash drive, and a window (or command line) should be showing the files on the RP2040 MiniPill LoRa  drive.

The drive typically contains the following files:

Notice:

The description above is based on the official documentation of MicroPython, for more details please follow the link. The USB mass storage function also works very well with a tablet or smartphone. We did some tests in the forest and edited parameters in our Python script with an android smartphone without any IDE or so. For workshops, we don't have to install IDEs, libraries, etc. on each participant's device as before. We can start directly with the LoRa(WAN) itself, even in the field. This is great and makes the first steps in development much easier. 

Discussions