BMI270_SensorAPI icon indicating copy to clipboard operation
BMI270_SensorAPI copied to clipboard

osDelay() from CMSIS don't work in API

Open MageScript opened this issue 1 year ago • 0 comments

I'm using osDelay function since I'm using FreeRTOS to run my application. So in the bmi API I implemented my delay as below void coines_delay_usec(uint32_t delay_us){ uint32_t ticks = (uint32_t)(delay_us/1000); osDelay(ticks); }

But it's actually not working, I'm getting an error right after executing this line: rslt = bmi270_context_init(&bmi2_dev);

Indeed rslt value turn '0xfd' instead of '0x00'

When I try with a simple HAL_Delay() in a No-OS application it works fine. My OS tick rate is 1000Hz.

MageScript avatar Jan 08 '24 11:01 MageScript