Marvee Amasi
Marvee Amasi
DIIDevHeads IoT Integration Server
Created by Marvee Amasi on 6/24/2024 in #middleware-and-os
How to Handle Time-Critical Sensor Data Interrupts Efficiently in FreeRTOS on STM32F4?
I'm using FreeRTOS on an STM32F4 microcontroller to handle temperature sensor data. The sensor triggers an interrupt, and I need to process the data as quickly as possible within 10 microseconds. I thought creating a new task within the ISR using xTaskCreate would be efficient for memory management cus during testing, I encountered an error during runtime that halted my system. While the exact error message didn't clearly state "attempted to create a task from ISR," it indicated a function call failure. What's the recommended approach for handling time-critical sensor data interrupts in FreeRTOS while maintaining efficient memory management? @Middleware & OS @Helper
9 replies