Skip to content

Rust Embedded HAL for Boufallo BL702 microcontroller

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE-MIT
Unknown
LICENSE-MULAN
Notifications You must be signed in to change notification settings

9names/bl702-hal

Repository files navigation

bl702-hal

Hardware Abstraction Layer for BL702 RISC-V SoC in embedded Rust.

Project status

Working:

  • Basic GPIO is working
  • Clock initialisation (not configurable)
  • UART0 (2MBaud only)

TODO:

  • Everything else

Getting started

Install cargo + rust + riscv32imac-unknown-none-elf + cargo-binutils + llvm-tools-preview
(google for instructions, TODO add step-by-step here)

pip install bflb-mcu-tool

cargo objcopy --release --example blinky -- -O binary blinky.bin
bflb-mcu-tool --chipname bl702 --firmware blinky.bin

Serial demo

cargo objcopy --release --example serial -- -O binary serial.bin
bflb-mcu-tool --chipname bl702 --firmware serial.bin
picocom --lower-rts --lower-dtr --imap lfcrlf /dev/ttyUSB0 -b 2000000

Contributing

We welcome community contributions to this project. Please create a github issue or pull request if you have any issues or wish to contribute.

License

This project is licensed under both MIT or Mulan PSL v2

About

Rust Embedded HAL for Boufallo BL702 microcontroller

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE-MIT
Unknown
LICENSE-MULAN

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •