Exception return value 0xffff fff9 on stack?
When debugging start-up problems, I've found this stack in TrueSTUDIO:
According to the Programming Manual, an exception return value of 0xffff fff9 denotes "Return to Thread mode, exception return uses non-floating-point state from MSP and execution uses MSP after return.".
While I don't know what MSP refers to (m... stack pointer?), I'd be interested in which exception the MCU returned from.
Note that in all my error handlers, I have an infinite loop, so that they show up in the stack, and cannot be left except for interrupts.
void HardFault_Handler(void)
{
volatile uint32_t cfsr = SCB->CFSR;
volatile uint32_t hfsr = SCB->HFSR;
volatile uint32_t mmfar = SCB->MMFAR;
volatile uint32_t bfar = SCB->BFAR;
while (1);
}So which handler could have been left here, if all handlers in stm32f7xx_it.c have infinite loops (with the exception of SysTick_Handler)?
