[STM32F103C8T6 + ICM20948] IMU not detected when using FreeRTOS with I2C.
Hi everyone,
I'm working on a project using the STM32F103C8T6 microcontroller and the ICM-20948 IMU sensor, connected via I2C. I'm using STM32CubeIDE with FreeRTOS integration.
In a bare-metal (non-RTOS) project, the IMU communicates correctly. The device address is detected properly, and I get valid accel/gyro data.
When I move to a FreeRTOS-based project using the same I2C configuration, the IMU fails to respond.The device address is not found, and I get errors from HAL_I2C_Mem_Read().I've confirmed that I2C are initialized before osKernelStart().
want to reliably read IMU data (ICM20948) using I2C + FreeRTOS on STM32F103C8T6.
Can anyone who has done this successfully share suggestions or example code?
