riscv-rust / riscv-rust-quickstart

A template for building Rust applications for HiFive1 boards
205 stars 24 forks source link

Unable to flash examples into the board #23

Closed steewbsd closed 1 year ago

steewbsd commented 1 year ago

image

Hello, after a successful compilation with cargo build --example leds_blink and having JLinkGDBServer running, I am unable to flash any program to a hifive1 rev b (sparkfun red-v) board. As shown in the screenshot above, the process seems to halt after "Starting target CPU...", with no response from the board at all, except after a "Reset" button press which indicates "ERROR: Cannot read register 4096 (X0) while CPU is running". I have ran the hifive1-recover script before, which seemed to run without errors, but to no avail. The board does not show any green led when resetting, as indicated by this repo, which signals any kind of failure of the board if this is intended behavior. The JLink, as well as the riscv SiFive toolchains have been correctly installed and added to my user's PATH.