FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5287 Discussions

Using DE10-nano GPIO1/GPIO0 from Linux

jackhab
New Contributor I
746 Views

I’m trying to use GPIO on DE10-nano evaluation board connectors JP1/JP7. From documentation I assumed these IOs directly accessible from HPS.

 

However, by using various demo C code I only managed to access user LED which also blinks under control of the FPGA. The rest of GPIO remain in high-Z (1.6V).

 

I also tried to operate GPIOs via /sys/class/gpio interface. After exporting all available numbers I have gpio427 to gpio511 directories under /sys/class/gpio. But still writing to gpioX/direction and gpioX/value files has no effect on the lines on JP1/JP7.

 

Do I have to configure anything else before accessing GPIO from HPS?

 

Thanks.

 

0 Kudos
3 Replies
EBERLAZARE_I_Intel
231 Views

Hi,

 

Have you run though the "Example for HPS SoC" in the DE10-nano user manual in Chapter 6?

 

Regards.

jackhab
New Contributor I
231 Views

I finally got it running after I found out the GPIO on JP7 connector are mapped in Linux starting at number 107.

EBERLAZARE_I_Intel
231 Views
Great, please let me know if there is any more problem that you encounter or any questions you want to ask. Thanks.
Reply