Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 Discussions

Interrupt Problem over HLGPI

Altera_Forum
Honored Contributor II
1,949 Views

Hello, 

 

I'm very new in developing with Cyclone V SoC and have big problems to recognize an interrupt send from a Button to the HPS.  

 

What I have done so far: 

 

1. Initiate the HPS System with Qsys (enable HLGPI interface) 

 

2. compiled the project with quartus and load the fpga and boot YOCTO Linux 

 

3. I have pushed the button and read out the interrupt with "./devmem2 0x70a000" ( I have checked all 16 bits) but i only got the result 0x00000000 

 

 

What am I doing wrong? 

This is very frustrating. 

 

I appreciate any help
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
800 Views

Hello, 

 

Try reading "./devmem2 0x70a050". That worked for me, but I still can't figure out why reading "./devmem2 0x70a000" (previusly I had set the bits to INPUT) only gives me 0x0. 

 

"./devmem2 0x70a050" is the GPIO2_EXP_PORTA 

 

Regards!
0 Kudos
Altera_Forum
Honored Contributor II
800 Views

Thank You! 

This has helped me a lot. 

 

Best Regards
0 Kudos
Altera_Forum
Honored Contributor II
800 Views

I want to find out, which gpio pin is used for 0xff70a50 under /sys/class/gpio. 

 

The Documentation "Cortex-A9 Microprozessor Unit Subsystem" says Pin 198 (Table 6-2). 

But I don't think so. 

 

Does anyone know the answer?
0 Kudos
Reply