cancel
Showing results for 
Search instead for 
Did you mean: 

The STM2 can not jump into ISR

Yqiu.1
Associate II

0693W000005APfYQAW.png0693W000005APfnQAG.pngmy dear guys, I want to take use of STM_2 as a system tick for OS schedule, but when the condition for STM_2 compare interrupt satisfied , the PC can not jump into ISR ,the PC jump into a illegal position.

thanks pretty much for your suggestions.

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
2 REPLIES 2
Yqiu.1
Associate II

by the way ,is there any relationship between clock setting and the ISR here? because I didn't do any clock setting before I began the STM_2 function coding.

Yqiu.1
Associate II

there were several error handlers in the software and I write here for other people's reference .

  1. I didn't cojfig IVPR register correctly,​ IVPR should be set as the start address of interrupt table. but IVPR was 0 at first ,so core2 jumped into 0x00000012(closely to 0x00000000)
  2. we should config as software mode rather than hardware mode.
  3. I should copy the interrupt table from flash to RAM, refer to the picture 1 which shows illegal and in the memory window, the contents are all 0, so we should modify the Ld file and get the start address both from RAM and FLASH and copy the contents from flash to RAM before we access the ISR.