Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line flashing with Python #19

Closed
llamaonaskateboard opened this issue Jan 31, 2023 · 1 comment
Closed

Command line flashing with Python #19

llamaonaskateboard opened this issue Jan 31, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@llamaonaskateboard
Copy link

Not an issue but figured this would be the best way to share with the community.

Bouffalolab has some official Python packages for flashing and so the full DevCube is not actually needed:
https://pypi.org/project/bflb-mcu-tool/
https://pypi.org/project/bflb-iot-tool/

For whatever reason, the MCU tool doesn't provide any options to flash group1 (the D0 core) even though the included underlying libraries have the capability to do so.
I've created a fork over at https://github.com/llamaonaskateboard/bflb-mcu-tool which adds support for group1.

Example usage:

bflb-mcu-tool --chipname bl808 --port /dev/ttyUSB0 --baudrate 115200 --firmware m0_lowload_bl808_m0.bin --firmware-group1 d0_lowload_bl808_d0.bin
bflb-iot-tool --chipname bl808 --port /dev/ttyUSB0 --baudrate 115200 --single --addr 0xD2000 --firmware whole_img_linux.bin
@gamelaster
Copy link
Member

This is amazing! I kept note of this, and eventually it might be good idea to put it into README.

@gamelaster gamelaster added the enhancement New feature or request label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants