🎺Introducing mpflash: Your Ultimate MicroPython Flashing Companion #14395
Replies: 12 comments 42 replies
-
Nice! Is there a way to select and flash a custom built firmware from a local file system? |
Beta Was this translation helpful? Give feedback.
-
Looks really impressive, great job. I look forward to testing it more when I've got a supported board connected :-D |
Beta Was this translation helpful? Give feedback.
-
Looks great @Josverl! Just installed (on WSL2/Win10) using I put it through a very tough test case: Traceback (most recent call last):
[snip]
File "/root/.local/pipx/venvs/mpflash/lib/python3.10/site-packages/mpflash/mpremoteboard/__init__.py", line 119, in get_mcu_info
if board_name := find_board_id(descr, short_descr):
File "/root/.local/pipx/venvs/mpflash/lib/python3.10/site-packages/mpflash/mpboard_id/board_id.py", line 22, in find_board_id
boards = find_board_by_description(
File "/root/.local/pipx/venvs/mpflash/lib/python3.10/site-packages/mpflash/mpboard_id/board_id.py", line 55, in find_board_by_description
raise MPFlashError(f"No board info found for description {descr}")
mpflash.errors.MPFlashError: No board info found for description ESP32C6 module with ESP32C6 Message could be friendlier but the raised exception is correct. :) I'll continue trying it out... |
Beta Was this translation helpful? Give feedback.
-
I like it! It doesn't seem to be able to download Pico W firmware, though:
|
Beta Was this translation helpful? Give feedback.
-
Has anyone been able to test this on MacOS ? |
Beta Was this translation helpful? Give feedback.
-
Interesting tool. It doesn't exactly match my usecase (I grab a custom image from a specific URL and flash it) so I started some tinkering. I extended both the download and flash commands with a --raw option. Worked fine for my rp2040. Weeding through the code is a bit frustrating, it is very much tuned to the specific usecase of first downloading and then flashing multiple boards of multiple types. After the rp2040 I tried an esp32, but the tool doesn't recognise the particular board "ESP32_UNKNOWN_BOARD". Correcting that seems to require a deeper dive that I want to commit to today. For now, I give up. |
Beta Was this translation helpful? Give feedback.
-
Not sure if this is of any help. I'm quite new to Micropython. This is a cut / paste from the Command Prompt: C:\Users\Owner>mpflash list
┏━━━━━━┳━━━━━━━━━━━┳━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━┓ C:\Users\Owner>mpflash download Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): C:\Users\Owner> |
Beta Was this translation helpful? Give feedback.
-
Interesting utility. I gave it a quick try to see what it could provide me. |
Beta Was this translation helpful? Give feedback.
-
Thanks for talking about this at the meetup! I'm on a Mac and have a bunch of ports that I don't want it to scan... so I set
|
Beta Was this translation helpful? Give feedback.
-
A note on downloading the new v1.23.0 release. In v0.8.1 I have improved the version regex used to extract the version and build from the downloadable firmware filenames, |
Beta Was this translation helpful? Give feedback.
-
Has anyone tried mpflash with a pyboard?
I suppose it is a problem of the pyboard, but would like to get feedback before inquiring how |
Beta Was this translation helpful? Give feedback.
-
Wow! This really takes the pain out of the firmware flashing process. Nice work! Tested successfully on Raspberry Pi Bookworm (64-bit) with an ESP32C3, if you're keeping track. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello fellow MicroPythonista
Are you tired of juggling different boards and struggling to remember the exact flashing procedures for each one? I feel your pain. That's why I created mpflash, a simple but powerful tool designed to simplify the entire process.
What is mpflash?
Features:
Tested and Approved:
Your Mission:
Can you help by testing and providing feedback?
Let's make mpflash even better!
Installation:
To get started, simply install mpflash using pip(x):
pipx install mpflash #or pip install mpflash
Basic Usage:
Here's how you can use mpflash:
Dive Deeper:
For detailed documentation, visit our [GitHub page](https://github.com/Josverl/micropython-stubber/tree/main/src/mpflash).
https://pypi.org/project/mpflash/ ""
Got Issues?
mpflash resides in the [micropython-stubber repository](https://github.com/Josverl/micropython-stubber/issues%29). If you encounter any bugs or issues, report them in the [issue tracker](https://github.com/Josverl/micropython-stubber/issues) (select MPFlash feedback).
Let's make MicroPython flashing a breeze! 💡🚀
Beta Was this translation helpful? Give feedback.
All reactions