MPY: can´t not flash #11708
-
How can i enable on STM32WL55 ? |
Beta Was this translation helpful? Give feedback.
Replies: 22 comments 12 replies
-
|
Beta Was this translation helpful? Give feedback.
-
sorry, is about the MPY: can´t moun flash This making not get success to transfer a script to execute on FS Does need a directive during STM32 build to make a automaticly format on FLASH and make a FS ? |
Beta Was this translation helpful? Give feedback.
-
Just curious ... have you tried this image? |
Beta Was this translation helpful? Give feedback.
-
hi |
Beta Was this translation helpful? Give feedback.
-
Yes! 8 k should be enough |
Beta Was this translation helpful? Give feedback.
-
The STM32WL55 is a pretty low-resource device, so it doesn't have a flash filesystem automatically. You don't always need a filesystem in the internal flash, for example if you freeze all of the Python code into the firmware binary and flash it that way. There is support in the default WL55 config for Littlefs2, so you can format a Littlefs image in the available flash space like this: import os, pyb
os.VfsLfs2.mkfs(pyb.Flash(start=0)) ... then when you next restart (for example, with Ctrl-D) this filesystem will be mounted at Note the available flash will be small, on my system it was 24KB. Run Regarding testing the lora functionality from the lora pull requests, you already have lora frozen into the firmware so you are mostly done. You don't even need a filesystem to start testing it (I didn't create any filesystem on my NUCLEO-WL55 board until just now.) To run an example: First edit def get_modem():
from lora import WL55SubGhzModem
# The LoRa configuration will depend on your board and location, see
# README under "Modem Configuration" for some possible examples.
lora_cfg = { 'freq_khz': SEE_README_FOR_CORRECT_VALUE }
return WL55SubGhzModem(lora_cfg) and then run cd ./lib/micropython-lib/micropython/lora/examples/simple_rxtx/
mpremote run simple_rxtx.py .. to run the script over the mpremote link. To make the LoRa code persistent, you can either use the filesystem or freeze your Python code into the firmware build. See the Micropython docs for more about this. Until the PRs merge, the README for the lora driver (with stm32wl55 support) is here. |
Beta Was this translation helpful? Give feedback.
-
i had to modify to MicroPython lora simple_rxtx example - asynchronous API version
|
Beta Was this translation helpful? Give feedback.
-
Tomorrow I will test the communication |
Beta Was this translation helpful? Give feedback.
-
Hi @projectgus I add stm32lorawan arduino example to receive the package from micropython |
Beta Was this translation helpful? Give feedback.
-
time out with 6000 value, syncronized |
Beta Was this translation helpful? Give feedback.
-
one of my problems was the the power supply... |
Beta Was this translation helpful? Give feedback.
-
Angus |
Beta Was this translation helpful? Give feedback.
-
how are going the LoRaWAN tests with STM32W55 ? |
Beta Was this translation helpful? Give feedback.
-
No problems! Just curiuos |
Beta Was this translation helpful? Give feedback.
Great to hear. Please mark my comment as a answer if it helped (you'll find a button under my comment for this.)
I would love to see LoraWAN on Micropython, but for now I want to get the basic LoRa support merged. Then we'll see.