<?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: ADC_read model error with S32DS 1.2</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709615#M1277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ernestoinoa"&gt;ernestoinoa&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for your gmake error is that you are using the -ansi flag instead of&amp;nbsp;-std=c99.&lt;/P&gt;&lt;P&gt;However from your log we observed that you have a lot of warnings and you are using a toolchain different that we do. In order to help you solving this, please send us an archive containing the model and the ADC_read_mbd_rtw generated folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Oct 2017 09:39:59 GMT</pubDate>
    <dc:creator>mariuslucianand</dc:creator>
    <dc:date>2017-10-18T09:39:59Z</dc:date>
    <item>
      <title>ADC_read model error with S32DS 1.2</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709614#M1276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="201756_201756.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123197i10DC50493BC1F0EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="201756_201756.png" alt="201756_201756.png" /&gt;&lt;/span&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/32786iBC2120F8F170D700/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 style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am going over the excellent &lt;A _jive_internal="true" data-containerid="11546" data-containertype="14" data-objectid="7766" data-objecttype="1100" href="https://community.nxp.com/videos/7766"&gt;videos about Motor Control&lt;/A&gt; MBD with the MPC5744. Nevertheless, when I try to build the example shown in the screenshot above I get the following error:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;adc_pnt_library.c:293:5: error: expected expression before '/' token&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// while(ADC[adc_num]-&amp;gt;MSR.B.NSTART == 0){}&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;^&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gmake: *** [adc_pnt_library.obj] Error 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-weight: normal;"&gt;Although in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px;"&gt;Target Compiler Opts&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px;"&gt;Configuration&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;block (please refer to screenshot) the system is calling out the C99 ISO standard, the gcc compiler is complaining about the double forward slash being used for comments.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-weight: normal;"&gt;I am using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px;"&gt;S32DS 1.2&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;instead of&amp;nbsp;&lt;STRONG style="border: 0px;"&gt;S32DS 1.1.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-weight: normal;"&gt;&lt;STRONG style="border: 0px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;I am attaching&amp;nbsp;&lt;SPAN style="font-size: 11.0pt;"&gt;the full log of the Code Generation from the Diagnostic Viewer of the model I am trying to build.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-weight: normal;"&gt;&amp;nbsp;Any ideas will be highly appreciated.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-weight: normal;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-weight: normal;"&gt;Regards,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-weight: normal;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-weight: normal;"&gt;Ernesto.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339049"&gt;ADC_read_20171018_005115.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 08:08:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709614#M1276</guid>
      <dc:creator>ernestoinoa</dc:creator>
      <dc:date>2017-10-18T08:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_read model error with S32DS 1.2</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709615#M1277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ernestoinoa"&gt;ernestoinoa&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for your gmake error is that you are using the -ansi flag instead of&amp;nbsp;-std=c99.&lt;/P&gt;&lt;P&gt;However from your log we observed that you have a lot of warnings and you are using a toolchain different that we do. In order to help you solving this, please send us an archive containing the model and the ADC_read_mbd_rtw generated folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 09:39:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709615#M1277</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2017-10-18T09:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_read model error with S32DS 1.2</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709616#M1278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marius,&amp;nbsp;&lt;BR /&gt;Thanks a lot for your reply.&amp;nbsp;&lt;BR /&gt;In order to get C99 generated code I have to select this option for the standard math library, as shown below:&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/31875i9A87154D258ABC4F/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;Nevertheless, when I do this the number of errors increases quite a bit. &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am attaching&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; border: 0px; font-size: 11pt;"&gt;the full log of the Code Generation from the Diagnostic Viewer of the model I am trying to build when C99 is selected for the standard math library,&lt;/SPAN&gt;&amp;nbsp;the model, and the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;mbd_rtw generated folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Your help will be highly appreciated.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Ernesto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 06:01:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709616#M1278</guid>
      <dc:creator>ernestoinoa</dc:creator>
      <dc:date>2017-10-19T06:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_read model error with S32DS 1.2</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709617#M1279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ernestoinoa"&gt;ernestoinoa&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have successfully compiled your model using our setup. The generated makefile &lt;BR /&gt; from your archive looks completely different than ours(I have attatched our output folder), so I believe there is something broken trough your settings. &lt;BR /&gt;What I suggest is to set to default your Matlab path from "HOME -&amp;gt; Set Path -&amp;gt; Default" and then reinstall the toolbox as in this &lt;A _jive_internal="true" href="https://community.nxp.com/videos/7525"&gt;video&lt;/A&gt;&amp;nbsp; but download the toolbox from &lt;A href="https://nxp.flexnetoperations.com/control/frse/download?element=8549377"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Please be sure that you have the correct path as in video.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:38:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709617#M1279</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2017-10-19T09:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_read model error with S32DS 1.2</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709618#M1280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your helpful comments. It turns out that I had the &lt;SPAN style="color: #3c3c3c; background-color: #ffffff; font-size: 15.0000009536743px;"&gt;MinGW GCC&lt;/SPAN&gt; compiler that comes with Matlab. So, during code generation the Simulink Model was somehow using this compiler instead of the S32DS compiler. After&amp;nbsp;uninstalling&amp;nbsp;the&amp;nbsp;&lt;SPAN style="color: #3c3c3c; background-color: #ffffff; font-size: 15.0000009536743px;"&gt;MinGW GCC&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;compiler I was able to build the model and download it to the target (&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;MPC5744P DevKit)&lt;/SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I am facing another problem, though.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I try to read the potentiometer from the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;MPC5744P DevKit I get the following error:&lt;/SPAN&gt;&lt;BR /&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/5417iC3B582CCBC512C4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To troubleshoot this issue I loaded the generated elf file with S32DS in Debug Mode, and looks like the program running in the target goes wrong after the System Timer Module gets enabled (instruction &lt;STRONG&gt;STM_0.CR.B.TEN = 1&lt;/STRONG&gt;; in the generated C code). I am attaching a Microsoft Word file with screenshots of S32DS at every debugging step. I am also attaching my compilation result, in case it might help.&lt;BR /&gt;&lt;BR /&gt;I would really appreciate your help debugging this issue.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Ernesto.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 07:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709618#M1280</guid>
      <dc:creator>ernestoinoa</dc:creator>
      <dc:date>2017-10-26T07:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_read model error with S32DS 1.2</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709619#M1281</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/ernestoinoa"&gt;ernestoinoa&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;S32 Design Studio 1.2 was released after we have release the toolbox 2.0.0 for MPC5744P. In the V1.2 of S32 DS the linker files were changed. Please apply this patch to make it work:&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/451804#comment-916493" title="https://community.nxp.com/thread/451804#comment-916493"&gt;https://community.nxp.com/thread/451804#comment-916493&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 09:13:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709619#M1281</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-10-26T09:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_read model error with S32DS 1.2</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709620#M1282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dumitru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your suggestion... it worked like a charm!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ernesto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 18:22:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-read-model-error-with-S32DS-1-2/m-p/709620#M1282</guid>
      <dc:creator>ernestoinoa</dc:creator>
      <dc:date>2017-11-02T18:22:45Z</dc:date>
    </item>
  </channel>
</rss>

