Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 2 months ago.
Interrupt LLW_IRQHandler and KL25
Good morning,
I work on the VLLS on KL25, and at the end of the sleep the uC make an interrupt : LLW_IRQn
With Code warrior all is OK and the vector table is in : , but with mbed i do know how atribute the good vector for my interrupt code.
I try :
NVIC_SetVector(LLW_IRQn, (uint32_t)&llw_isr); NVIC_EnableIRQ(LLW_IRQn);
void llw_isr(void) { my interrupt code }
My adress code of llw_Isr is 0x10F6 and if i look the vector table of this interrupt at the adress : 0x5C, i can see a bad adress 0x03DF.
With mbed the interrupt code LLW_IRQn is never call !
I thinks is some like startup "startup_MKL25Z4.s" with the vector table but i have no idea how with the mbed library
Thanks you so much for your help.
Hello Michael Durand,
can you look at the address 0x5C+0x1FFFF000, because SetVector function reallocates vectors to RAM . Thus your vector (LLWU) is placed at the address 0x1FFFF05C. I wonder why your ISR is not invoked, probably share a snippet which I can test.
Regards,
posted by Martin Kojtal 07 Sep 20130xc0170