s32k144 Relation CSEC_DRV_Init and RTOS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s32k144 Relation CSEC_DRV_Init and RTOS

Jump to solution
1,149 Views
kmh48301
Contributor IV

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.

kmh48301_0-1637542998535.png

<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

0 Kudos
Reply
1 Solution
1,105 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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:

https://www.freertos.org/FreeRTOS_Support_Forum_Archive/March_2017/freertos_What_is_normal_method_fo...

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

View solution in original post

3 Replies
1,129 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
1,120 Views
kmh48301
Contributor IV

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

0 Kudos
Reply
1,106 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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:

https://www.freertos.org/FreeRTOS_Support_Forum_Archive/March_2017/freertos_What_is_normal_method_fo...

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