<?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>S32 Design StudioのトピックRe: How can I use S32 DS to compile the C code generated from Simulink model？</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807521#M3522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please share output from build console?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2018 10:09:08 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2018-12-18T10:09:08Z</dc:date>
    <item>
      <title>How can I use S32 DS to compile the C code generated from Simulink model？</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807520#M3521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I bought a Devkit-MPC5744 recently, and downloaded the Model-based Design Toolbox for MPC5744P from the NXP website.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70518i1B779A3FF04A39D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I&amp;nbsp;open the example model file from the&amp;nbsp;&lt;SPAN&gt;M&lt;/SPAN&gt;&lt;SPAN&gt;odel-based&lt;/SPAN&gt; &lt;SPAN&gt;D&lt;/SPAN&gt;&lt;SPAN&gt;esign&lt;/SPAN&gt; &lt;SPAN&gt;T&lt;/SPAN&gt;&lt;SPAN&gt;oolbox. The model is "uart_model_pnt".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70659i50BE0E2E763E94B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;After that I&amp;nbsp;configure the parameter and build the model, and then the Simulink generate the C code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70612i7E140E785E1DA70E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70733i0DA97ED22AF7655C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After that I created a new project in &lt;STRONG&gt;S32 design studio&lt;/STRONG&gt; and replace the source&amp;nbsp;file and header file with the C code generated from Simulink.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But when I import the C code into the S32 Design Studio, and build the project, it always failed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The building operation always abort ,and a red cross occured.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70471i97A3924A6D80EE26/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&amp;nbsp;my project in S32 ds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The everyone process before the building seems OK. But I cannot build the code generated from the simulink.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could anyone please help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2018 05:44:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807520#M3521</guid>
      <dc:creator>1506840872</dc:creator>
      <dc:date>2018-12-18T05:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use S32 DS to compile the C code generated from Simulink model？</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807521#M3522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please share output from build console?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2018 10:09:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807521#M3522</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-12-18T10:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use S32 DS to compile the C code generated from Simulink model？</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807522#M3523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply. The console is as fellow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70142iEDF554A12F689686/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It says cannot open the *.s file, but in fact the Simulink generated the&amp;nbsp;&lt;SPAN&gt;*.s file and I put them into the &lt;STRONG&gt;"src" folder&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70198i8EB67883645BFB66/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So how can I solve the problem? thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 00:51:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807522#M3523</guid>
      <dc:creator>1506840872</dc:creator>
      <dc:date>2018-12-19T00:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use S32 DS to compile the C code generated from Simulink model？</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807523#M3524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for some reason is S32DS using files from temporary folder. It is possible share your project?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 07:48:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807523#M3524</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-12-19T07:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use S32 DS to compile the C code generated from Simulink model？</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807524#M3525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem. The project and the code generated from the Simulink are as fellow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I tried after your last reply.&lt;/P&gt;&lt;P&gt;I tried to delete the *.s file in the "src" folder, it&amp;nbsp;is not ok.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70459iB797B0C908152ECF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And then I put the *.s file which contains the 'e200zx_interrupt_setup' function, &lt;STRONG&gt;into the "include" folder,&lt;/STRONG&gt; it is ok to read. But then new problem occur.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70521i66CD5C7E2A80D8A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So I put the all *.s files into the "include" folder.&lt;/STRONG&gt; But the problem is still here, and new problem occurs:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70567iDFA1A1F1AC479652/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please show me how to compile the code generated from the Simulink?&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 09:17:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807524#M3525</guid>
      <dc:creator>1506840872</dc:creator>
      <dc:date>2018-12-19T09:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use S32 DS to compile the C code generated from Simulink model？</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807525#M3526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for sharing your project. So - there was couple issues - you need to use linker script file from Simulink project. Second one - Simulink project already contains startup code. I excluded from build default startup.S. Also some assembly code are used for include (in include), some others are dedicated to build (in src)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fixed project is in attachment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 13:40:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807525#M3526</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-12-19T13:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use S32 DS to compile the C code generated from Simulink model？</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807526#M3527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Jiri. I do appreciate your help.&lt;/P&gt;&lt;P&gt;The fixed project has been successful to compile, but with a warning.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70253i7D96CBFB4B2F06FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the problem is that the program doesn't run.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When I click "resume" button and start the program, it will stop somewhere in&amp;nbsp;configure_flash.s file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70349i9C26C398956F4572/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70405iB99FFDF8B5D8683C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I reclick the&amp;nbsp;"resume" button, the program seems running, but actually not running.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sure the program are not running because I add some sentences to turn on the LED. However, it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70443i3C81AFFBF078396C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The console text is in attachment.&lt;/P&gt;&lt;P&gt;I do appreciate if you could help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2018 12:49:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807526#M3527</guid>
      <dc:creator>1506840872</dc:creator>
      <dc:date>2018-12-20T12:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use S32 DS to compile the C code generated from Simulink model？</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807527#M3528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this question is more related to Model-based design toolbox than S32DS and I'm not familiar with this stuff. Better idea is place your question to this community -&amp;nbsp;&lt;A href="https://community.nxp.com/community/mbdt/diy"&gt;https://community.nxp.com/community/mbdt/diy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2018 13:47:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807527#M3528</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-12-20T13:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use S32 DS to compile the C code generated from Simulink model？</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807528#M3529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you soooooooooooo much, Jiri.&lt;/P&gt;&lt;P&gt;I will place the question in the community which you mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2018 01:17:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-can-I-use-S32-DS-to-compile-the-C-code-generated-from/m-p/807528#M3529</guid>
      <dc:creator>1506840872</dc:creator>
      <dc:date>2018-12-21T01:17:34Z</dc:date>
    </item>
  </channel>
</rss>

