wafa_ath
DIIDevHeads IoT Integration Server
•Created by wafa_ath on 9/27/2024 in #firmware-and-baremetal
What causes HardFault_Handler errors and inaccurate predictions in STM32 air quality monitoring Sys?
I'm developing an air quality monitoring system on an
STM32F746
using TinyML
. The system uses a temperature, humidity, and gas sensor to predict the Air Quality Index (AQI) via a model I trained and deployed. While the code works, I sometimes get inaccurate predictions, and occasionally, the STM32 throws a HardFault_Handler
error.
Here’s the simplified inference code:
Could the hard fault be caused by memory issues or model size? How can I resolve the crash and improve prediction consistency?3 replies