cancel
Showing results for 
Search instead for 
Did you mean: 

FP-AUD-AEC1 Hard Fault on STM32WB55REV

coop6
Associate

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.

2 REPLIES 2
Saket_Om
ST Employee

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

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.