I was wondering how did the code for blinking the LED from the WD video series work for your HiFive Rev B board. The video series is for HiFive 1 and my understanding that the 2 boards have a very different setup for the LEDs! As a matter of fact I was unable to find the LED pinout in the Rev B documentation. Am I missing something here ?
Sent from my iPhone
Hi Marian!
On August 3, 2020 7:00:34 AM GMT+02:00, "Zaki, Marian Kamal" <mki6@pitt.edu> wrote:
>I was wondering how did the code for blinking the LED from the WD video
>series work for your HiFive Rev B board. The video series is for HiFive
>1 and my understanding that the 2 boards have a very different setup
>for the LEDs! As a matter of fact I was
I honestly don't remember if I had to change some addresses for the LED pins or not.. You can find the addresses I used here:
https://sillymon.ch/cgit/freedom-e-sdk/tree/software/first/gpio.inc?h=useTimerIRQ
> unable to find the LED pinout
>in the Rev B documentation. Am I missing something here ?
I couldn't remember where to get the info but after some investigation I found it again. You can find the GPIOs where the LEDs are connected on the schematics of the Hifive board here:
https://sifive.cdn.prismic.io/sifive%2Fa4546ced-0922-4d87-9334-e97c1a9fd9a5_hifive1.b01.schematics.pdf
Then you can just look up the corresponding GPIO memory addresses in the data sheet.
Hope that helps!
Cheers,
Silvan
>Sent from my iPhone
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.