Skip to content

HarringayMakerSpace/gd32vf103-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal example of running Rust on Sipeed Longan Nano RISC-V Dev board

Dev board: https://www.seeedstudio.com/Sipeed-Longan-Nano-RISC-V-GD32VF103CBT6-Development-Board-p-4205.html

See: https://pramode.in/2019/10/07/rust-on-riscv-board-sipeed-longan-nano/

Rust Crate: https://crates.io/crates/gd32vf103-hal

Get the RISC-V target for Rust

rustup target add riscv32imac-unknown-none-elf
rustup default nightly
rustup target add riscv32imac-unknown-none-elf

Clone this repo, then:

cargo build
tools\riscv-nuclei-elf-objcopy.exe -O binary target\riscv32imac-unknown-none-elf\debug\gd32vf103-test target\test.bin
tools\dfu-util.exe -a 0 -s 0x08000000:leave -D target\test.bin

the blue LED on the Longan Nano should switch on.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages