Skip to main content
Associate
October 31, 2025
Question

FP-AUD-AEC1 Hard Fault on STM32WB55REV

  • October 31, 2025
  • 1 reply
  • 210 views

Hey everyone,

I'm currently trying to integrate the STM32 FP-AUD-AEC-1 software package in a multithreaded environment (ThreadX) on an STM32wb55rev7 mcu chip. Library compiles and runs but eventually hard faults during thread initializations.

 

Any advice or help would be appreciated, and if there's any additional info needed please lmk.

1 reply

Technical Moderator
November 4, 2025

Hello @coop6 

Did the HardFault occurs without ThreadX? 

Did you try increasing the stack size ? 

Please refer to the document below to debug your HardFault:

How to debug a HardFault on an Arm® Cortex®-M STM3... - STMicroelectronics Community

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question.Saket_Om"
coop6Author
Associate
November 4, 2025

Hey @Saket_Om,

When reading the fault status registers, I'm getting a hard fault (FORCED bit) and usage fault (INVSTATE bit). I'm fairly new to STM, so I'm wondering if this is caused by the AEC library after compiling. When debugging I see that the hard fault occurs during the ThreadX thread scheduling loop.

 

To answer your question yes it did happen with ThreadX.

 

I'm wondering if this may be caused by not setting up the library properly.