<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic s32k144 Relation CSEC_DRV_Init and RTOS in S32K</title>
    <link>https://community.nxp.com/t5/S32K/s32k144-Relation-CSEC-DRV-Init-and-RTOS/m-p/1374663#M12865</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I found CSEC_DRV_Init(SDK Functoin) has some relation with RTOS.&lt;/P&gt;&lt;P&gt;I have two project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One is using RTOS which is generated from The Processor Expert component. (Let's Say Project A)&lt;/P&gt;&lt;P&gt;And the other is not using any OS.&amp;nbsp;(Let's Say Project B)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Project A, CSEC_DRV_Init function makes this error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kmh48301_0-1637542998535.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162743i32D34FF9321D9A98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kmh48301_0-1637542998535.png" alt="kmh48301_0-1637542998535.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;kmh48301_0-1637542998535.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;My board is already partitioned for CSEc&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Project B, CSEC_DRV_Init function works well.&lt;/P&gt;&lt;P&gt;and I checked Csec functions all works normally, as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I removed the line "OSIF_TimeDelay(0U);" in CSEC_DRV_Init function in Project A.&lt;/P&gt;&lt;P&gt;and I found It works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you explain me why the&amp;nbsp; "OSIF_TimeDelay(0U);" in CSEC_DRV_Init function makes&amp;nbsp;&lt;/P&gt;&lt;P&gt;this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;i didn't even start the RTOS scheduler.&lt;/P&gt;&lt;P&gt;And Can I remove that line??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Phillip&lt;/P&gt;</description>
    <pubDate>Mon, 22 Nov 2021 01:09:03 GMT</pubDate>
    <dc:creator>kmh48301</dc:creator>
    <dc:date>2021-11-22T01:09:03Z</dc:date>
    <item>
      <title>s32k144 Relation CSEC_DRV_Init and RTOS</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-Relation-CSEC-DRV-Init-and-RTOS/m-p/1374663#M12865</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I found CSEC_DRV_Init(SDK Functoin) has some relation with RTOS.&lt;/P&gt;&lt;P&gt;I have two project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One is using RTOS which is generated from The Processor Expert component. (Let's Say Project A)&lt;/P&gt;&lt;P&gt;And the other is not using any OS.&amp;nbsp;(Let's Say Project B)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Project A, CSEC_DRV_Init function makes this error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kmh48301_0-1637542998535.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162743i32D34FF9321D9A98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kmh48301_0-1637542998535.png" alt="kmh48301_0-1637542998535.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;kmh48301_0-1637542998535.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;My board is already partitioned for CSEc&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Project B, CSEC_DRV_Init function works well.&lt;/P&gt;&lt;P&gt;and I checked Csec functions all works normally, as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I removed the line "OSIF_TimeDelay(0U);" in CSEC_DRV_Init function in Project A.&lt;/P&gt;&lt;P&gt;and I found It works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you explain me why the&amp;nbsp; "OSIF_TimeDelay(0U);" in CSEC_DRV_Init function makes&amp;nbsp;&lt;/P&gt;&lt;P&gt;this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;i didn't even start the RTOS scheduler.&lt;/P&gt;&lt;P&gt;And Can I remove that line??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Phillip&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 01:09:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-Relation-CSEC-DRV-Init-and-RTOS/m-p/1374663#M12865</guid>
      <dc:creator>kmh48301</dc:creator>
      <dc:date>2021-11-22T01:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 Relation CSEC_DRV_Init and RTOS</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-Relation-CSEC-DRV-Init-and-RTOS/m-p/1375487#M12881</link>
      <description>&lt;P&gt;Hi Phillip,&lt;/P&gt;
&lt;P&gt;this is the key point:&lt;/P&gt;
&lt;P&gt;"i didn't even start the RTOS scheduler."&lt;/P&gt;
&lt;P&gt;If a module uses OS services (OSIF is OS service) then it is mandatory to call the functions from tasks after starting the scheduler.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 08:53:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-Relation-CSEC-DRV-Init-and-RTOS/m-p/1375487#M12881</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2021-11-23T08:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 Relation CSEC_DRV_Init and RTOS</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-Relation-CSEC-DRV-Init-and-RTOS/m-p/1375562#M12885</link>
      <description>&lt;P&gt;Hi Lukas&lt;/P&gt;&lt;P&gt;Thank you for replying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need to call "CSEC_DRV_Init" before starting scheduler.&lt;/P&gt;&lt;P&gt;what can I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Phillip&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 10:32:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-Relation-CSEC-DRV-Init-and-RTOS/m-p/1375562#M12885</guid>
      <dc:creator>kmh48301</dc:creator>
      <dc:date>2021-11-23T10:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 Relation CSEC_DRV_Init and RTOS</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-Relation-CSEC-DRV-Init-and-RTOS/m-p/1375736#M12889</link>
      <description>&lt;P&gt;It is common practice to have initialization task to initialize all needed resources and then other application tasks are created and started.&lt;/P&gt;
&lt;P&gt;I can remember this discussion, you can take a look:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.freertos.org/FreeRTOS_Support_Forum_Archive/March_2017/freertos_What_is_normal_method_for_running_initialization_code_in_FreerTOS_92042073j.html" target="_blank"&gt;https://www.freertos.org/FreeRTOS_Support_Forum_Archive/March_2017/freertos_What_is_normal_method_for_running_initialization_code_in_FreerTOS_92042073j.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 15:36:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-Relation-CSEC-DRV-Init-and-RTOS/m-p/1375736#M12889</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2021-11-23T15:36:49Z</dc:date>
    </item>
  </channel>
</rss>

