Skip to main content
Yqiu.1
Associate II
November 5, 2020
Question

The STM2 can not jump into ISR

  • November 5, 2020
  • 2 replies
  • 863 views

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 topic has been closed for replies.

    2 replies

    Yqiu.1
    Yqiu.1Author
    Associate II
    November 6, 2020

    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
    Yqiu.1Author
    Associate II
    November 16, 2020

    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.