Forum Discussion
Altera_Forum
Honored Contributor
12 years agoInterrupts on BareMetal Design
I am trying to trigger an interrupt based on the slider switch(GPIO2 on SoCKIT) toggling, but the code below doesn't seem to work. What could be the problem? Also, what is the difference between GP...
Altera_Forum
Honored Contributor
12 years agoI try run your example in DS-5 debugger, because interesting with interrupts -- with board buttons I not reach result, if enable his -- int request is instantly and persistent.
What documents you read on interrupts theme ? Which examples see ? In attachment picture of debug with return from function alt_int_dist_enable() with error (left ellipse), and ARM processor bit of interrupt enabling is ==1 (right ellipse) -- disabled ! All next travail with buttons will be uselessly, if global interrupt enable bit is disabled. In 2nd picture is status if interrupt pending bit in register CP15.ISR, ==0.