Skip to content

planet0104/hello-bl602-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BL602 Rust example

BL602 Rust HAL 的简单示例程序。

参考代码:bl602-rust-example

参考文章:Rust on RISC-V BL602: Is It Sunny?

安装环境

获取 bl602 的工具链

rustup target add riscv32imac-unknown-none-elf

安装 cargo-blflash

cargo install cargo-blflash

编译运行

cargo build

按住D8键不放(即GPIO 8 连接至 3.3V),按一下EN键

运行

cargo blflash --port COM4

烧写成功后,松开 D8键,按一下EN键,使用串口工具链接COM4,可看到输出结果。

About

hello-bl602-rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published