Enabling the sifive GPIO using Aurduino IDE


(Rakesh) #1

hello buddy,

i am using Aurdino IDE to code SIFIVE-G31 ,can any one just help me to enable the GPIO through Aurdino IDE, Example blink the LED which is connected to pin 13.


(Bruce Hoult) #2

Standard Arduino “Blink” program?

void setup() {
  pinMode(13, OUTPUT);
}

void loop() {
  digitalWrite(13, HIGH);
  delay(100);
  digitalWrite(13, LOW); 
  delay(100);
}

(Rakesh) #3

i used the same thing before but ididnt get the output,board i am using is FE31-G000 ie


(Rakesh) #4

hello sir,

Please guide me how to configure the GPIO for sifive boards(FE31-G000) using Aurduino IDE.
if i am using pin 7 to connect LED after uploading i got this message

info : Retrying memory read starting from 0x20400000 with more delays
verified 4708 bytes in 0.215780s (21.307 KiB/s)
** Verified OK **
halted at 0x20400004 due to step
need the solution