Hi
I found CSEC_DRV_Init(SDK Functoin) has some relation with RTOS.
I have two project.
One is using RTOS which is generated from The Processor Expert component. (Let's Say Project A)
And the other is not using any OS. (Let's Say Project B)
In Project A, CSEC_DRV_Init function makes this error.
<My board is already partitioned for CSEc>
In Project B, CSEC_DRV_Init function works well.
and I checked Csec functions all works normally, as well.
and I removed the line "OSIF_TimeDelay(0U);" in CSEC_DRV_Init function in Project A.
and I found It works.
Can you explain me why the "OSIF_TimeDelay(0U);" in CSEC_DRV_Init function makes
this problem?
i didn't even start the RTOS scheduler.
And Can I remove that line??
Thanks
Best Regards
Phillip
解決済! 解決策の投稿を見る。
It is common practice to have initialization task to initialize all needed resources and then other application tasks are created and started.
I can remember this discussion, you can take a look:
If you want to initialize CSE before starting the scheduler, the only option is to modify the driver. However, this is not recommended by us.
Regards,
Lukas
Hi Phillip,
this is the key point:
"i didn't even start the RTOS scheduler."
If a module uses OS services (OSIF is OS service) then it is mandatory to call the functions from tasks after starting the scheduler.
Regards,
Lukas
Hi Lukas
Thank you for replying.
But I need to call "CSEC_DRV_Init" before starting scheduler.
what can I do?
Thanks
Best Regards
Phillip
It is common practice to have initialization task to initialize all needed resources and then other application tasks are created and started.
I can remember this discussion, you can take a look:
If you want to initialize CSE before starting the scheduler, the only option is to modify the driver. However, this is not recommended by us.
Regards,
Lukas