This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM Compiler 5.06 Cannot Handle __irq

Below code for Cortex-R5 CPU,

__irq void Foo( void ) 

With ARM 5.05, it compiles OK as

PUSH     {r0-r12,lr} ... POP      {r0-r12,lr} SUBS     pc,lr,#4 

With ARM 5.06, it compiles  NOT OK as

PUSH     {r4-r12,lr} ... POP      {r4-r12,pc} 

Hey!!  When IRQ handler ends, the PC return address should be "lr -4 not the "lr"!

This looks to me a serious bug!  Is there any patch to get this problem fixed?

Parents Reply Children
No data