~shugyousha/public-inbox

1

HiFive CISE

Zaki, Marian Kamal <mki6@pitt.edu>
Details
Message ID
<965F1EA2-97BE-4F66-9823-B55ACD7B43E8@pitt.edu>
DKIM signature
missing
Download raw message
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
Details
Message ID
<8CA9B763-B175-4037-B26B-805467B9F3E7@sillymon.ch>
In-Reply-To
<965F1EA2-97BE-4F66-9823-B55ACD7B43E8@pitt.edu> (view parent)
DKIM signature
missing
Download raw message
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.
Reply to thread Export thread (mbox)