Home > other >  STM32 disassembly code
STM32 disassembly code

Time:09-17


Use keil 4 view STM32 interrupt function disassembly code, found the entrance to the first sentence is BX lr,
Why is this excuse me?
Not should in the interrupt function using BX lr returned? According to the LR value judgment model and use the stack back?
Thank you very much!

CodePudding user response:

This explanation did not write your own interrupt function, directly in the system at a empty, see if the interrupt function name wrong,

CodePudding user response:

Interruption has its own register, processed to return to the point of interrupt response recovery state continues to run

CodePudding user response:



As shown in figure, the interrupt function in the program, is not empty, why is the first sentence BX LR?

CodePudding user response:

reference no1xizhong reply: 3/f


As shown in figure, the interrupt function in the program, is not empty, why is the first sentence BX LR?
my feeling is that two levels of assembly line after causing instruction pre-fetch, PC pointer is automatically + 4, the interrupt trigger PC need to back up, otherwise the pressure behind the stack is not live,

CodePudding user response:

With Level0 compile a try

CodePudding user response:

reference 5 floor hhhh63 reply:
try the Level0 compile the
screenshot is Level0 compiled?
  • Related