<?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>Model-Based Design Toolbox (MBDT)のトピックRe: How to add the FreeRTOS in simulink for S32K</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/1521464#M7683</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Is there any improvement in this regard? (rtos)&lt;/P&gt;&lt;P&gt;Br,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 21:33:28 GMT</pubDate>
    <dc:creator>ahmetsaglam</dc:creator>
    <dc:date>2022-09-13T21:33:28Z</dc:date>
    <item>
      <title>How to add the FreeRTOS in simulink for S32K</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685736#M872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to add the FreeRTOS in simulink for S32K? There is no FreeRTOS block in the toolbox.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 07:11:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685736#M872</guid>
      <dc:creator>eautopower</dc:creator>
      <dc:date>2017-05-19T07:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the FreeRTOS in simulink for S32K</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685737#M873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/eautopower"&gt;eautopower&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed there is not special block for FreeRTOS. Can you explain us what are you trying to achieve ?&lt;/P&gt;&lt;P&gt;Depending on your feedback we may suggests some approaches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you wish to have a block that configures the FreeRTOS ? If so, what type of configuration are you looking for?&lt;/P&gt;&lt;P&gt;Or,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You wish to insert/inject automatic C code generated from Simulink into specific FreeRTOS tasks ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to hearing from you soon!&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Daniel!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 12:14:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685737#M873</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-19T12:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the FreeRTOS in simulink for S32K</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685738#M874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel：&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I mean how to achieve task scheduling in simulink?because I am&amp;nbsp;unfamiliar with the simulimk about&amp;nbsp;&lt;SPAN&gt; task scheduling,but i know, this can be done in simulink, So i wan to know that how to achieve task scheduling like FreeRTOS,or if &amp;nbsp;you have some ways ,pls tell me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;xie&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 02:31:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685738#M874</guid>
      <dc:creator>eautopower</dc:creator>
      <dc:date>2017-05-22T02:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the FreeRTOS in simulink for S32K</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685739#M875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xie,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for delay - i had to do some research. Unfortunately,i could not find any relevant information on this matter.&lt;/P&gt;&lt;P&gt;Still i think that with a bit of persuade it can be done using Stateflow logic to implement the scheduler and a combination of custom code injection to call/initialize/reset and terminate Simulink blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scheduler can easily implemented using the Stateflow like in these examples:&amp;nbsp;&lt;A class="link-titled" href="https://www.mathworks.com/help/stateflow/ug/scheduling-execution-of-simulink-subsystems.html" title="https://www.mathworks.com/help/stateflow/ug/scheduling-execution-of-simulink-subsystems.html"&gt;Schedule Execution of Simulink Subsystems - MATLAB &amp;amp; Simulink&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.: time based scheduller&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://www.mathworks.com/help/stateflow/ug/temporal_logic_scheduler_model.png" style="width: 620px; height: 354px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then within each subsystem you could use S-function block to call a specific RTOS Tasks using this type of approach:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/450605"&gt;https://community.nxp.com/thread/450605&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 04:51:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685739#M875</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-26T04:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the FreeRTOS in simulink for S32K</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685740#M876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create .tlc files for RTW so it knows how to build for FreeRTOS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a ChibiOS/RT (Another RTOS) blockset a few years ago:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/jed-frey/ChibiOS_SimulinkBlockset" title="https://github.com/jed-frey/ChibiOS_SimulinkBlockset"&gt;GitHub - jed-frey/ChibiOS_SimulinkBlockset: ChibiOS Blockset&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In particular look at&amp;nbsp;&lt;A class="link-titled" href="https://github.com/jed-frey/ChibiOS_SimulinkBlockset/blob/master/scripts/chibiOS_customRoutineProcess.tlc" title="https://github.com/jed-frey/ChibiOS_SimulinkBlockset/blob/master/scripts/chibiOS_customRoutineProcess.tlc"&gt;ChibiOS_SimulinkBlockset/chibiOS_customRoutineProcess.tlc&lt;/A&gt;. It shows how to start a Thread based on Simulink task rates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working on just this, a set of FreeRTOS blocksets for the inexpensive MPC57xx devkits. However it is not near completion at this time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 May 2017 07:26:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685740#M876</guid>
      <dc:creator>jfrey</dc:creator>
      <dc:date>2017-05-27T07:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the FreeRTOS in simulink for S32K</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685741#M877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel：&lt;/P&gt;&lt;P&gt;thank you！~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 03:43:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685741#M877</guid>
      <dc:creator>eautopower</dc:creator>
      <dc:date>2017-05-31T03:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the FreeRTOS in simulink for S32K</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685742#M878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jed:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Check this model for me. What's wrong with it?&lt;/P&gt;&lt;P&gt;CAN &amp;nbsp;warning interrupt cannot enter&lt;/P&gt;&lt;P&gt;thank you！~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 03:52:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685742#M878</guid>
      <dc:creator>eautopower</dc:creator>
      <dc:date>2017-05-31T03:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the FreeRTOS in simulink for S32K</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685743#M879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi Xie,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I see that you have a triggered system that is supposed to sent the CAN messages. I guess you can't sent those messages out right ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;This is how i would approach the problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;- step 1: use &amp;nbsp;a simple program to sent a CAN message based on a time interrupt and verify with a CAN viewer that i can receive the messages. This will validate the basic CAN configuration and CAN network&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;- step 2: using S32 Design Studio, i would try to attach to the running target (without reset) when the real application is running but not transmitting CAN. This way you can suspend the processor execution and check where the PC is. Then please a breakpoint in the task you are supposed to sent the CAN messages and check is you ever enter into that or not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In general the S32 Design Studio or any other IDE supporting that processor you are using is the only way to debug the application&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hope this will inspire you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best regards,&lt;BR /&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 12:57:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685743#M879</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-31T12:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the FreeRTOS in simulink for S32K</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685744#M880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dnaiel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;thank you very much,i will try to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 04:36:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/685744#M880</guid>
      <dc:creator>eautopower</dc:creator>
      <dc:date>2017-06-01T04:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the FreeRTOS in simulink for S32K</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/1521464#M7683</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Is there any improvement in this regard? (rtos)&lt;/P&gt;&lt;P&gt;Br,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 21:33:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/1521464#M7683</guid>
      <dc:creator>ahmetsaglam</dc:creator>
      <dc:date>2022-09-13T21:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the FreeRTOS in simulink for S32K</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/1645951#M8209</link>
      <description>希望MATLAB Simulink 生成的C代码，能通过NXP Toolbox 输出为工程文件(Project)，C代码归类到不同的文件夹。可以直接打开工程文件(Project)，并且能象S32 Design Studio for ARM 2.2一样，可以定制FreeRTOS组件，并进行任务调度。</description>
      <pubDate>Sat, 06 May 2023 15:32:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-add-the-FreeRTOS-in-simulink-for-S32K/m-p/1645951#M8209</guid>
      <dc:creator>wjandsq</dc:creator>
      <dc:date>2023-05-06T15:32:52Z</dc:date>
    </item>
  </channel>
</rss>

