Skip to content

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

@MageScript

Description

@MageScript

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions