No Filesystem on STM32WL Nucleo board #12983
-
Dear Sirs, `duane@HP-Spectre:~$ mpremote repl
` Sincerely, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Does the Nucelo get mounted on the host? Just tried your commands on a STM32F411 BlackPill and same result. Change to |
Beta Was this translation helpful? Give feedback.
-
The STM32WL55 is pretty constrained on flash space, so it doesn't create any filesystem by default. You can still create one in the available space, take a look at this comment here which has the steps to do that: Note that the filesystem will be pretty small (in the linked post it was 24KB, in the latest master branch versions we "freeze" the lora driver into the STM32WL55 build so the available space for the filesystem will be even less - but on the plus side you now don't have to find a place to put the LoRa driver!) Suggest pre-compiling any sizeable Python files with mpy-cross and then copy the .mpy file instead of the .py file to the filesystem. This can save a lot of file size. If it turns out that there's still not enough space for all the code you need to include, a possible workaround is to build a custom firmware that "freezes" in the code. |
Beta Was this translation helpful? Give feedback.
The STM32WL55 is pretty constrained on flash space, so it doesn't create any filesystem by default.
You can still create one in the available space, take a look at this comment here which has the steps to do that:
https://github.com/orgs/micropython/discussions/11708#discussioncomment-6118083
Note that the filesystem will be pretty small (in the linked post it was 24KB, in the latest master branch versions we "freeze" the lora driver into the STM32WL55 build so the available space for the filesystem will be even less - but on the plus side you now don't have to find a place to put the LoRa driver!)
Suggest pre-compiling any sizeable Python files with mpy-cross and then copy the .mpy file …