<?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)のトピックPIL Simulation Error - Soft Reset</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PIL-Simulation-Error-Soft-Reset/m-p/944218#M3551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using MPC5744P DEVKIT, MBD Toolbox 2.0.0, with MATLAB 2016b to do PIL test. I was able to perform this in hard reset mode, but when it try to make this to soft reset by modifying&lt;STRONG&gt;&amp;nbsp;mcu_init.c&lt;/STRONG&gt; in src folder of MBD_Toolbox. I get error after the code flashes to the board [Invalid Payload Size].Could you tell us what is going wrong here or we missing something to do here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also attached a sample model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Mode transition to apply the PLL0 setup and set Normal mode with PLL running */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MC_ME.MCTL.R = 0x30005AF0; /* DRUN Mode &amp;amp; Key */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MC_ME.MCTL.R = 0x3000A50F; /* DRUN Mode &amp;amp; Key */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modification Done:&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Mode transition to apply the PLL0 setup and set Normal mode with PLL running */&lt;BR /&gt; MC_ME.MCTL.R = 0x00005AF0; /* DRUN Mode &amp;amp; Key */&lt;BR /&gt; MC_ME.MCTL.R = 0x0000A50F; /* DRUN Mode &amp;amp; Key */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PIL_error.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90476i749E992ABAA0E376/image-size/large?v=v2&amp;amp;px=999" role="button" title="PIL_error.JPG" alt="PIL_error.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jul 2019 13:21:10 GMT</pubDate>
    <dc:creator>sundarnatarajan</dc:creator>
    <dc:date>2019-07-05T13:21:10Z</dc:date>
    <item>
      <title>PIL Simulation Error - Soft Reset</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PIL-Simulation-Error-Soft-Reset/m-p/944218#M3551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using MPC5744P DEVKIT, MBD Toolbox 2.0.0, with MATLAB 2016b to do PIL test. I was able to perform this in hard reset mode, but when it try to make this to soft reset by modifying&lt;STRONG&gt;&amp;nbsp;mcu_init.c&lt;/STRONG&gt; in src folder of MBD_Toolbox. I get error after the code flashes to the board [Invalid Payload Size].Could you tell us what is going wrong here or we missing something to do here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also attached a sample model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Mode transition to apply the PLL0 setup and set Normal mode with PLL running */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MC_ME.MCTL.R = 0x30005AF0; /* DRUN Mode &amp;amp; Key */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MC_ME.MCTL.R = 0x3000A50F; /* DRUN Mode &amp;amp; Key */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modification Done:&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Mode transition to apply the PLL0 setup and set Normal mode with PLL running */&lt;BR /&gt; MC_ME.MCTL.R = 0x00005AF0; /* DRUN Mode &amp;amp; Key */&lt;BR /&gt; MC_ME.MCTL.R = 0x0000A50F; /* DRUN Mode &amp;amp; Key */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PIL_error.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90476i749E992ABAA0E376/image-size/large?v=v2&amp;amp;px=999" role="button" title="PIL_error.JPG" alt="PIL_error.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 13:21:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PIL-Simulation-Error-Soft-Reset/m-p/944218#M3551</guid>
      <dc:creator>sundarnatarajan</dc:creator>
      <dc:date>2019-07-05T13:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: PIL Simulation Error - Soft Reset</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PIL-Simulation-Error-Soft-Reset/m-p/944219#M3552</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/sundarnatarajan"&gt;sundarnatarajan&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;For the MPC57xx&amp;nbsp;we have released a newer version:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-342724"&gt;https://community.nxp.com/docs/DOC-3427&lt;/A&gt;&amp;nbsp;The latest one is based on S32 SDK for Power Architecture so you would probably find in the SDK a method which will help you. We recommend you to switch to the latest release.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;However, I was investigating your problem and I don't quite understand your scenario. Inside the mcu_init.c file there are a lot of lines with the comment you've mentioned and I can't find the exact spot where you switch the state. Can you give us more details about why and when you need a 'functional' reset?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Maybe the functional reset you set, is faster than applying the PLL settings and this propagates to the UART clockconfiguration which later affects the baudrate, and the PIL crashes due to a mismatched serial configuration between host and target.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Marius&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 15:05:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PIL-Simulation-Error-Soft-Reset/m-p/944219#M3552</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-07-05T15:05:31Z</dc:date>
    </item>
  </channel>
</rss>

