I am working in the example project of ISR. I am using TWRK60N512. I compiled isr library and the project; but, when I tried to debug or run isr.c, Terminal received the next:
====================== ISR Example =======================
Press the SW1 to blink LED1, press it again to turn it off
Install interrupt handler to hardware vector table failed.
So, I can consider that there is a problem in the code in this part:
/* Install the interrupt directly to the vector table in the processor. */
if(! _int_install_kernel_isr(lwgpio_int_get_vector(btn_ptr), btn_kernel_isr))
{
printf("Install interrupt handler to hardware vector table failed.\n");
_task_block();
}
But I don't know where this example is wrong.
Anybody can help me?
I am confused because I have never change anything of example code. I am ataching the example of MQX 4.2
Original Attachment has been moved to: isr.c.zip
Hi
I did a quick check with this demo C:\Freescale\Freescale_MQX_4_2\mqx\examples\isr\build\cw10gcc\isr_twrk60n512. My result is OK.
I set the MQX_ROM_VECTORS macro to zero in the user_config.h file prior to compilation of MQX kernel libraries and the example itself.
I suggest you trace the function _int_install_kernel_isr , and check the error code for further investigation.
Regards
Daniel