2025-10-31 4:49 PM
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.
2025-11-04 2:20 AM
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
2025-11-04 11:29 AM
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.