Skip to content

Command line flashing with Python #19

@llamaonaskateboard

Description

@llamaonaskateboard

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions