Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

break in HAL?

Altera_Forum
Honored Contributor II
1,013 Views

Using NIOSIIIDE 9.1. while running in debug, I am intermittently getting a break in the HAL function alt_irq_entry(). I am not sure what is causing this to occur. I would like to trace it, but I am at a complete loss. I am hoping someone can give me some direction. is there a trick to figuring this out, or a project setting that will give me more of a hint, or anything.. Here is what I see at the break in the disassembly tab: 

0x03800094 <alt_irq_entry+116>: break 0 

0x03800098 <alt_irq_entry+120>: ldw r5,68(sp) 

0x0380009c <alt_irq_entry+124>: ldw ea,72(sp) 

0x038000a0 <alt_irq_entry+128>: ldw ra,0(sp) 

0x038000a4 <alt_irq_entry+132>: wrctl estatus,r5 

 

thanks
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
300 Views

Hi roujesky, 

 

I am having the same problem. Did you have any luck in finding a solution? 

Would be helpful if you could share. 

 

Thank you.
0 Kudos
Altera_Forum
Honored Contributor II
300 Views

The break in alt_irq_entry is commonly hit when an interrupt is received from hardware that you've yet to register an interrupt handler for...otherwise known as a spurious interrupt. The cause for such a thing is generally system specific. 

 

The break can also be hit on an illegal instruction or something along these lines...read the code to see what conditions will bring you here. 

 

Cheers and good luck! 

 

-slacker
0 Kudos
Altera_Forum
Honored Contributor II
300 Views

Hi everyone ,I meet the same problem,has anyone any way to solve it! 

I enter the debug as hardware,and it stop at alt_irq_entry. 

here is the code:could anyone help me? 

0x00040194 <alt_irq_entry+116>: break 0 

0x00040198 <alt_irq_entry+120>: ldw r5,68(sp) 

0x0004019c <alt_irq_entry+124>: ldw ea,72(sp) 

0x000401a0 <alt_irq_entry+128>: ldw ra,0(sp) 

0x000401a4 <alt_irq_entry+132>: wrctl estatus,r5 

0x000401a8 <alt_irq_entry+136>: ldw at,8(sp) 

0x000401ac <alt_irq_entry+140>: ldw r2,12(sp) 

0x000401b0 <alt_irq_entry+144>: ldw r3,16(sp) 

0x000401b4 <alt_irq_entry+148>: ldw r4,20(sp) 

0x000401b8 <alt_irq_entry+152>: ldw r5,24(sp)
0 Kudos
Reply