<?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 Re: SAFE-Mode, Error Analysis: MPC5643L in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/SAFE-Mode-Error-Analysis-MPC5643L/m-p/341120#M409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;[Peter] – Ok, the micro can transition directly from RESET to SAFE mode via mode entry module.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;STRONG style="color: #0070c0;"&gt;RGM[DES]&lt;/STRONG&gt;&lt;SPAN style="color: #0070c0;"&gt; seems to me ok -&amp;gt; power on reset. If you are not handling POR flag in your application SW this flag will remain set.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG style="color: #0070c0;"&gt;RGM[DES]&lt;/STRONG&gt;&lt;SPAN style="color: #0070c0;"&gt; – Here I see the issue. First indication is flag &lt;/SPAN&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="color: #0070c0;"&gt;F_FCCU_SAFE -&amp;gt; FCCU detected fault and forced the micro to SAFE mode.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #0070c0;"&gt;F_FL_ECC_RCC -&amp;gt; Flash, ECC event or RCC error.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48167i187BE65A3F4E069D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #0070c0;"&gt;To exclude RCC error it is good to know the mode of microcontroller.&lt;/SPAN&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="color: #0070c0;"&gt;Is it Lock-step mode?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #0070c0;"&gt;Or Parallel Decoupled mode&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #0070c0;"&gt;To exclude the Flash error I can send you my example code which is also handling FCCU.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;But I have a feeling that the safe mode is caused by your SW as there is not issue with voltage.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jan 2015 14:15:42 GMT</pubDate>
    <dc:creator>petervlna</dc:creator>
    <dc:date>2015-01-20T14:15:42Z</dc:date>
    <item>
      <title>SAFE-Mode, Error Analysis: MPC5643L</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SAFE-Mode-Error-Analysis-MPC5643L/m-p/341117#M406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en-US"&gt;The MCU on our board starts &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;at SAFE-Mode, on the Eva-board the Code switches the current mode from DRUN to R&lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;UN&lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;1 &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;without problems&lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;. The Code previously worked on our board. Which functions can we test? Can the voltage supply be the problem? Programming over the JTAG-interface is possible and the &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;it looks like the &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;Debugging &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;is&lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt; working. &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;The FCCU seems to switch the MCU in SAVE-Mode. &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;Should the xosc switch &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;by&lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt; the code be possible in SAVE-Mode? &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;Witch procedure is recommended for an error-analysis. Where can I find detailed informations.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 16:40:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SAFE-Mode-Error-Analysis-MPC5643L/m-p/341117#M406</guid>
      <dc:creator>nilsschroeder</dc:creator>
      <dc:date>2015-01-13T16:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAFE-Mode, Error Analysis: MPC5643L</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SAFE-Mode-Error-Analysis-MPC5643L/m-p/341118#M407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nils.,&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Nils Schroeder wrote:&lt;/P&gt;
&lt;SPAN&gt;The Code previously worked on our board. Which functions can we test? Can the voltage supply be the problem? Programming over the JTAG-interface is possible and the &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;it looks like the &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;Debugging &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;is&lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt; working. &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;The FCCU seems to switch the MCU in SAVE-Mode. &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;Should the xosc switch &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;by&lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt; the code be possible in SAVE-Mode? &lt;/SPAN&gt;&lt;SPAN lang="en-US"&gt;Witch procedure is recommended for an error-analysis. Where can I find detailed informations.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="padding: 0px 0px 1pt;"&gt;&lt;SPAN style="color: #0070c0;"&gt;[Peter] – Yes, it can be problem. If you are using for example BIST self-test after power on than Leopard can cause the safe mode. So first of all make sure you are in Leopard datasheet spec and also make sure your power supply is strong enough to deliver the requested current in proper time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0px 0px 1pt;"&gt;&lt;SPAN style="color: #0070c0;"&gt;To exclude the weak power supply issue you can apply external power supply to your board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0px 0px 1pt;"&gt;&lt;SPAN style="color: #0070c0;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;[Peter] – The first thing to do is to check the RGM registers DES and FES in order to identify the root cause of SAFE mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;Are you in safe mode directly after reset? Place breakpoint or while(1) loop at the start of your code to make sure no other code is executed after reset and check the Mode entry for Mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;Share with me the concept of RGM[FES], RGM[DES], and FCCU[CFSx], FCCU[NCFSx] registers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;Do not forget that you need to read FCCU via OPx bit set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;All the informations required for SAFE mode analyses are in MPC5643L reference manual. However this require wide experiences with this micro to fully understand how to find the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0px 0px 1pt;"&gt;&lt;SPAN style="color: #0070c0;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 13:54:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SAFE-Mode-Error-Analysis-MPC5643L/m-p/341118#M407</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2015-01-14T13:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAFE-Mode, Error Analysis: MPC5643L</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SAFE-Mode-Error-Analysis-MPC5643L/m-p/341119#M408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, thanks for the advises. The device is directly in SAFE-Mode after reset. With JTAG debugging we read the following register contents:&lt;/P&gt;&lt;P&gt;RGMFES&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xd480&amp;nbsp; &lt;/P&gt;&lt;P&gt;RGMDES&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x8000&lt;/P&gt;&lt;P&gt;we figured out a flash, ECC or lock-step error event has occured (FFLECCRCC) is set to 1.&lt;/P&gt;&lt;P&gt;FCCU_STATE tells us the FCCU is in normal state. Sweitching to config state by writing key for OP1 and setting OPR in FCCU_CTRL to 1 results to Poeration statur Aborted.&lt;/P&gt;&lt;P&gt;We tried to switch the FCCU mode to OP 9 or 10 (FCCU.CTRL.B.OPR=9/10). But the [CFSx] and [NCFSx] Register dont change.&lt;/P&gt;&lt;P&gt;FCCUCFS0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FCCUCFS1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FCCUCFS2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FCCUCFS3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FCCUNCFS0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FCCUNCFS1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FCCUNCFS2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&amp;nbsp; &lt;/P&gt;&lt;P&gt;FCCUNCFS3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;Are there any steps to do to run operations of the FCCU?&lt;/P&gt;&lt;P&gt;How can we investigate the problem reportet by FFLECCRCC.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 13:37:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SAFE-Mode-Error-Analysis-MPC5643L/m-p/341119#M408</guid>
      <dc:creator>nilsschroeder</dc:creator>
      <dc:date>2015-01-20T13:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAFE-Mode, Error Analysis: MPC5643L</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SAFE-Mode-Error-Analysis-MPC5643L/m-p/341120#M409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;[Peter] – Ok, the micro can transition directly from RESET to SAFE mode via mode entry module.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;STRONG style="color: #0070c0;"&gt;RGM[DES]&lt;/STRONG&gt;&lt;SPAN style="color: #0070c0;"&gt; seems to me ok -&amp;gt; power on reset. If you are not handling POR flag in your application SW this flag will remain set.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG style="color: #0070c0;"&gt;RGM[DES]&lt;/STRONG&gt;&lt;SPAN style="color: #0070c0;"&gt; – Here I see the issue. First indication is flag &lt;/SPAN&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="color: #0070c0;"&gt;F_FCCU_SAFE -&amp;gt; FCCU detected fault and forced the micro to SAFE mode.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #0070c0;"&gt;F_FL_ECC_RCC -&amp;gt; Flash, ECC event or RCC error.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48167i187BE65A3F4E069D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #0070c0;"&gt;To exclude RCC error it is good to know the mode of microcontroller.&lt;/SPAN&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="color: #0070c0;"&gt;Is it Lock-step mode?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #0070c0;"&gt;Or Parallel Decoupled mode&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #0070c0;"&gt;To exclude the Flash error I can send you my example code which is also handling FCCU.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;But I have a feeling that the safe mode is caused by your SW as there is not issue with voltage.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 14:15:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SAFE-Mode-Error-Analysis-MPC5643L/m-p/341120#M409</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2015-01-20T14:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAFE-Mode, Error Analysis: MPC5643L</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SAFE-Mode-Error-Analysis-MPC5643L/m-p/341121#M410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the microcontroller is in Lock-step mode (verfied by project settings and bit in System Status Register)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our SW works on the Evalboard but not on a self designed board. This board design already worked before with the same SW.&lt;/P&gt;&lt;P&gt;Power Supply and soldering was already checked. As written before JTAG and debugging is working. So we think the SW&lt;/P&gt;&lt;P&gt;have be correct and there might be an HW Fault detected by the controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to distinguish between Flash,ECC,RCC faults to come closer to the origin of the fault?&lt;/P&gt;&lt;P&gt;Did we understand the procedure to read the FCCU (N)CF status registers right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We would be very grateful if you could send us your example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&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;Nils&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 16:30:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SAFE-Mode-Error-Analysis-MPC5643L/m-p/341121#M410</guid>
      <dc:creator>nilsschroeder</dc:creator>
      <dc:date>2015-01-20T16:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re: SAFE-Mode, Error Analysis: MPC5643L</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SAFE-Mode-Error-Analysis-MPC5643L/m-p/341122#M411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;[Peter] – &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;Hi Nils,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;Attached is my example code for dealing with safe mode and correct startup sequence.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;I have a feeling that this code will run fine even on your board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;I did not saw your startup code, but the problem can be here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;Before we will proceed let me know if my example is working as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Tip: In the LSM the core registers must be initialized by 64-bit. If not then as soon as you use one of them the redundancy checker will trigger F_FL_ECC_RCC flag and force reset and put micro in SAFE mode.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0;"&gt;Check also my startup file (startup.c) for comparism.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 11:16:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SAFE-Mode-Error-Analysis-MPC5643L/m-p/341122#M411</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2015-01-21T11:16:42Z</dc:date>
    </item>
  </channel>
</rss>

