2024-04-22 05:30 AM
I debug up to hear and the flow of the code is blocked in this function,(after adding freeRTOS) in the project. i don't know what is the error. i had used the low level API which is avaliable in the document.
the flow is like this in the main function. at AEK_903D_Init(). it is blocked. and not coming out of that API. please help me out.
2024-04-22 06:25 AM
Hi,
As I have already stated, the code has NOT be written from freeRTOS therefore it requires modification.
In particular all osalThreadDelay() are not working under freeRTOS. They have to be substituted with:
vTaskDelay () specifies a wake time relative to the time at which the function is called
OR
vTaskDelayUntil () specifies the absolute (exact) time at which it wishes to unblock
Example code:
TickType_t xLastWakeTime = xTaskGetTickCount();
vTaskDelayUntil( &xLastWakeTime, 200 );
where 200 are in milliseconds.
Best Regards,
AutoDevKit Team