Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osDelay() from CMSIS don't work in API #23

Open
MageScript opened this issue Jan 8, 2024 · 0 comments
Open

osDelay() from CMSIS don't work in API #23

MageScript opened this issue Jan 8, 2024 · 0 comments

Comments

@MageScript
Copy link

MageScript commented Jan 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant