Skip to content

Bouffaloader is a baremetal bootloader for Bouffalo IoT chips.

License

Notifications You must be signed in to change notification settings

rustsbi/bouffaloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bouffaloader demo

Build this example with:

rustup target install riscv64imac-unknown-none-elf
cargo build --target riscv64imac-unknown-none-elf --release

Convert the elf file to a binary file:

cargo install cargo-binutils
rustup component add llvm-tools-preview
rust-objcopy .\target\riscv64imac-unknown-none-elf\release\bouffaloader -O binary .\target\riscv64imac-unknown-none-elf\release\bouffaloader.bin

Flash the binary file to the board with Bouffalo Lab Dev Cube on Windows:

  1. Connect the board to the computer via UART (Here takes M1s Dock as an example):

  2. Run the BLDevCube.exe, choose BL808, and click Finish.

  3. In MCU page, browse target\riscv64imac-unknown-none-elf\release\bouffaloader.bin as the target of D0 Group. Choose the bigger number serial port, and set uart rate 2000000.

  4. Press BOOT and RST on the board, then release RST first and BOOT after to be into UART burning mode.

  5. Click Create & Download, wait for flash the binary file to success.

  6. After flashing, repower the board and open the serial port monitor to see the output and interact with the CLI:

    • led [<none>|on|off|switch]: operate on LED.

About

Bouffaloader is a baremetal bootloader for Bouffalo IoT chips.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages