meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
arm:cm [2022/07/07 09:17] niziakarm:cm [2023/07/24 21:17] (current) niziak
Line 7: Line 7:
 to PC (without bit zero) so PC value is even and bit 0 is copied into xPSR ''T'' bit. to PC (without bit zero) so PC value is even and bit 0 is copied into xPSR ''T'' bit.
  
 +
 +===== hardfault with PC: 0xfffffffd =====
 +
 +LR = 0xFFFFFFFD means that the return stack is the PSP (not the MSP).
  
 ===== hardfault with PC: 0xfffffffe ===== ===== hardfault with PC: 0xfffffffe =====
  
 Cortex M has only 31:1 bits in PC register (even addresses only). Cortex M has only 31:1 bits in PC register (even addresses only).
-This address is a special `LOCKUPaddress. It means CPU cannot continue.+This address is a special ''LOCKUP'' address. It means CPU cannot continue.
 Probably during handling fault another fault occurs. Probably during handling fault another fault occurs.
  
 +
 +===== hardfault with PC: 0xffffffe9 =====
 +
 +  * [[https://www.sciencedirect.com/topics/engineering/exception-return-mechanism|8.7 EXC_RETURN]]
 +  * [[https://interrupt.memfault.com/blog/cortex-m-rtos-context-switching#exc-return-info|Exception Return]]