sipeed / bl602-rust-guide

Instructions and examples for BL602 Rust support libraries
MIT License
31 stars 10 forks source link

Getting Started Guide? #3

Open KenjutsuGH opened 3 years ago

KenjutsuGH commented 3 years ago

I'm new to rust and bl602. Is any Getting Started Guide available? When I run:

cargo run --example bl602-gpio-blinky

I get:

error: linking with `rust-lld` failed: exit status: 1
rust-lld: error: undefined symbol: TimerCh1
rust-lld: error: undefined symbol: Gpio
rust-lld: error: undefined symbol: TimerCh0

rustc 1.54.0-nightly (4de757209 2021-05-01) MacOS 10.13.6

mkroman commented 3 years ago

Sorry for the late reply!

There was a change in sipeed/bl602-hal#21 which required some changes here, which were never applied.

I've gone ahead and added it, so if you update your bl602-rust-guide repo, it should work now.