Upon doing this the debug session starts normally.
2) after the start of debug session I notice the ISR I declare (a 32-bit Timer 0 ISR) does not get invoked at all, and the code keeps jumping into the IntDefaultHandler ISR. This probably means the processor cant find the Timer ISR.
3) this problem seems to exist only when using my own project (LPCOpen C++ Project) where as the code in the samples seems to run and debug correctly.
Is this behavior right? Am I doing something wrong? If so, how do I fix it? Please help.
Content originally posted in LPCWare by R2D2 on Sat Jan 17 07:01:02 MST 2015 Just add 'extern C' for all interrupts, then this interrupt handler name is used...
Content originally posted in LPCWare by safiullahh on Sat Jan 17 06:48:57 MST 2015 Can't view the link from my phone, but if it's C++ name mangling, should declaring the ISR as "extern C" solve the issue?
May need to modify declarations in cr_startup_lpc13xx.cpp.
Content originally posted in LPCWare by R2D2 on Sat Jan 17 04:02:09 MST 2015 Quote: safiullahh 2) after the start of debug session I notice the ISR I declare (a 32-bit Timer 0 ISR) does not get invoked at all, and the code keeps jumping into the IntDefaultHandler ISR. This probably means the processor cant find the Timer ISR.
Correct :)
Quote: safiullahh
3) this problem seems to exist only when using my own project (LPCOpen C++ Project) where as the code in the samples seems to run and debug correctly.
Content originally posted in LPCWare by TheFallGuy on Sat Jan 17 03:24:16 MST 2015 1. Check the spelling of your Timer ISR - if you have misspelt it, the default will be used IntDefault). Check the name in the vector table matches the name you have provided. 2. This also explains why you got the crash on debug startup. Your code will have been unused and so removed and setting a breakpoint on removed code causes the crash