FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
6355 Discussions

How to configure and use HPSGPI pin as interuppt

snehal_p
New Contributor I
3,981 Views

Hello,

 

How can we configure HPSGPI as interrupt, which flag do I check to use the interrupt.

How can I use HPSGPI as Interrupt?

 

Thanks,

snehal_p

0 Kudos
19 Replies
EBERLAZARE_I_Intel
3,955 Views

Hi,


Do you mean the HPS GPIO pins?


Also, which device are you referring to? Stratix 10 SoC, etc.


0 Kudos
snehal_p
New Contributor I
3,942 Views
Hello,
Yes, HPS GPI pin
I'm using Cyclone 5 SOC
Thanks,
snehal_p
0 Kudos
EBERLAZARE_I_Intel
3,906 Views

Hi,


Thanks for the confirmation, let me check on my side and get back to you.


Apologies for the late responds as it was carried over the weekend, I shall get back to you in a few days as we have public holiday here in Malaysia.


0 Kudos
EBERLAZARE_I_Intel
3,866 Views

Hi,


May I know which environment that you want to do your testing?


Is it in Uboot or Linux env for your board testings?


0 Kudos
snehal_p
New Contributor I
3,857 Views
0 Kudos
EBERLAZARE_I_Intel
3,776 Views

Hi,


I am back, so you can use our GHRD for starters to test the interrupts that are readily available, you may check the documentation here in the "Interrupt Routing":

https://www.rocketboards.org/foswiki/Documentation/CycloneVSoCGSRD


0 Kudos
EBERLAZARE_I_Intel
3,732 Views

Hi,


Do you have any further questions?


0 Kudos
snehal_p
New Contributor I
3,667 Views

Hi,

we we execute commands to determine which of the GPIO entries from /sys/class/gpio/ matches the offsets by searching for the address in the label entry, for PIO we receive the response but for hpsgpi there is no response.

Can you please help on how an I use HPSGPI9 as interrupt.

PFA screenshots.

 

Thanks,

snehal_p

 

0 Kudos
EBERLAZARE_I_Intel
3,620 Views

Hi,


Are you using the GHRD? Have you tried the RBO test using the GHRD?


Also, please share your device tree.


0 Kudos
snehal_p
New Contributor I
3,610 Views

Hello,

No, I'm not using GHRD.

PFA .dts file.

Can you please elaborate on RBO test.

 

Thanks,

snehal_p

0 Kudos
EBERLAZARE_I_Intel
3,554 Views

Hi,


BTW, are you using the Cyclone V SoC Dev Kit? or custom board?


0 Kudos
snehal_p
New Contributor I
3,533 Views
0 Kudos
EBERLAZARE_I_Intel
3,442 Views

Hi,


You may ignore the GHRD's test mentioned previously.


I have checked your device tree, also do you have the .qsys file?


From my knowledge, the HPS GPIO_9 must be unused in the HPS IP settings then assign them according to your board pin out layout:

https://www.intel.com/content/www/us/en/support/programmable/support-resources/devices/lit-dp.html


Then adjust the device tree accordingly.


0 Kudos
snehal_p
New Contributor I
3,427 Views

Hi,

We are using HPSGPI input only pin, pin location is PIN_Y26

PFA block diagram.

We want to configure and use it as interrupt in a c code/ aplication

Can you please share the example code for the same.

 

Thanks,

snehal_p

0 Kudos
EBERLAZARE_I_Intel
3,289 Views

Hi,


We don't have the exact example C code. Could you provide your email?


0 Kudos
snehal_p
New Contributor I
3,276 Views
0 Kudos
EBERLAZARE_I_Intel
3,214 Views

Hi,


Please check your email for the example.


0 Kudos
EBERLAZARE_I_Intel
3,200 Views

Hi,


Do you have any further questions? Could we close the thread?


0 Kudos
EBERLAZARE_I_Intel
3,166 Views

Hi,


If you have further questions on the design, you may file a new thread. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.



p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.



0 Kudos
Reply