Skip to main content
debugme
Associate II
November 17, 2022
Question

_unhandled_exception but nothing in fault analyzer

  • November 17, 2022
  • 1 reply
  • 843 views

Hi,

I'm working on a c++ project and encountering the _unhandled_exception error. I'm trying to look cause for this error but fault analyzer in stm32cube ide is showing as No Fault Detected.

I've looked into call stack and observed that "<signal handler called>() at 0xfffffffd" is executed just before the "VectorFC() at vectors.S:1,021 0x80002da".

I'm not sure what signal handler is and hence unable to identify the root cause.

I've tried varying the stack size, but error remains the same.

This topic has been closed for replies.

1 reply

Pavel A.
Super User
November 18, 2022

Values like 0xfffffffd on stack are symptoms of Cortex-M exceptions.

These are hardware exceptions, not C++. There are various exceptions, not only HardFault.

Try to go to the stack frame of the "signal handler" then view in disassembly the location pointed by LR.