<?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>MPC5xxx中的主题 Re: MPC5744P Clock Monitor using FCCU</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1249356#M17746</link>
    <description>&lt;P&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;Thank you so much for the reply and your inputs &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/13836"&gt;@petervlna&lt;/a&gt; . I was able to test the CMU by removing the XOSC crystal from the board and by providing external frequency from the signal generator which is less than the IROSC frequency and observed that OLRI bit is set and the board was getting reset.&lt;/P&gt;&lt;P&gt;I have one question regarding the crystal failure:&lt;/P&gt;&lt;P&gt;What if the crystal is removed from the board and there is no XOSC ON signal from the MC_ME reg and how to detect the crystal failure condition in this case? Is there any way to detect this using CMU/FCCU or any other feature in MPC?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
    <pubDate>Mon, 22 Mar 2021 06:09:33 GMT</pubDate>
    <dc:creator>sureshkurukundi</dc:creator>
    <dc:date>2021-03-22T06:09:33Z</dc:date>
    <item>
      <title>MPC5744P Clock Monitor using FCCU</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1241586#M17569</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am trying to enable the clock monitor feature in the MPC5744P controller which monitors the external clock(XOSC-&amp;gt;40MHz) using internal clock(IROSC-16MHz) as the reference.&lt;/P&gt;&lt;P&gt;First of all I want to clarify few things regarding the clock monitor like:-&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If the Clock monitor feature is enabled by setting the CMU.CSR.RCDIV and CMU.CSR.CME, the CMU.ISR.OLRI bit should be set if XOSC&amp;lt;IOSC (if RCDIV is 0) right? is there any additional configuration required? whether the OLRI bit is set only if clock is not available in the beginning? what if clock is there in the beginning and later there is some issue in the XOSC clock and it is going unstable after the initialization process? Still the OLRI bit is set in this case?&lt;/LI&gt;&lt;LI&gt;I have tried configuring the FCCU for the above fault(fccu fault id 26), but if we configure short or long reset for the above fault, does the controller reset? If yes, then how to detect it as we would have lost XOSC clock and even watchdog timer(WDT) or WDT toggle would need peripheral clock for its operation which in turn comes from XOSC?&lt;/LI&gt;&lt;LI&gt;How to switch to internal clock(IROSC) immediately when the XOSC is lost? can u please brief the steps to switch to IROSC here(pseudocode would be much appreciated)?&lt;/LI&gt;&lt;LI&gt;Even if the clock is switched to IROSC when XOSC is lost, how is it prescaled? because IROSC is 16MHz and XOSC is 40MHz, and how is it matched so that few peripherals would still continue to work?&lt;/LI&gt;&lt;LI&gt;I have referred the following application note on Clock Monitor and handling the crystal failure form NXP (link here:- &lt;A href="https://www.nxp.com/docs/en/application-note/AN4880.pdf)" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/application-note/AN4880.pdf)&lt;/A&gt; , and also tried the pseudocode here, but the this is not detecting the loss of XOSC and the OLRI bit is not set when I checked in the watch window.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can you please check the above things and clarify &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/13836"&gt;@petervlna&lt;/a&gt; ? Thank you in advance&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 09:36:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1241586#M17569</guid>
      <dc:creator>sureshkurukundi</dc:creator>
      <dc:date>2021-03-08T09:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P Clock Monitor using FCCU</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1242250#M17579</link>
      <description>&lt;P&gt;Please clarify the above topics asap as this feature is crucial for our project. Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 06:08:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1242250#M17579</guid>
      <dc:creator>sureshkurukundi</dc:creator>
      <dc:date>2021-03-09T06:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P Clock Monitor using FCCU</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1244891#M17645</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;If the Clock monitor feature is enabled by setting the CMU.CSR.RCDIV and CMU.CSR.CME, the CMU.ISR.OLRI bit should be set if XOSC&amp;lt;IOSC (if RCDIV is 0) right?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, this is correct in case:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="petervlna_0-1615556765082.png" style="width: 609px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/139504i0438729EA4723BF5/image-dimensions/609x137?v=v2" width="609" height="137" role="button" title="petervlna_0-1615556765082.png" alt="petervlna_0-1615556765082.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="petervlna_1-1615557061119.png" style="width: 717px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/139505i0E8FE115D0342D0D/image-dimensions/717x477?v=v2" width="717" height="477" role="button" title="petervlna_1-1615557061119.png" alt="petervlna_1-1615557061119.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;is there any additional configuration required?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;See above&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;whether the OLRI bit is set only if clock is not available in the beginning?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What do you mean? Could you elaborate closer?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;what if clock is there in the beginning and later there is some issue in the XOSC clock and it is going unstable after the initialization process? Still the OLRI bit is set in this case?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;XOSC clock you mean? Then CMU if enabled and set will trigger OLR line. As picture above represents.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I have tried configuring the FCCU for the above fault(fccu fault id 26), but if we configure short or long reset for the above fault, does the controller reset? If yes, then how to detect it as we would have lost XOSC clock and even watchdog timer(WDT) or WDT toggle would need peripheral clock for its operation which in turn comes from XOSC?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The controller will take configured action in FCCU. FCCU and all safety related features are clock from safety clock (IRC).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;How to switch to internal clock(IROSC) immediately when the XOSC is lost? can u please brief the steps to switch to IROSC here(pseudocode would be much appreciated)?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If your device is clocked from XOSC, and you loose clock, you need to take reset trough FCCU and after reset you will boot from IRC clock and analyze the fault sources.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;Even if the clock is switched to IROSC when XOSC is lost, how is it prescaled? because IROSC is 16MHz and XOSC is 40MHz, and how is it matched so that few peripherals would still continue to work?&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;[Peter] - Safety peripherals are clocked from IRC. So the device will take appropriate action. Which in case of loss of clock is reset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Peter&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 14:10:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1244891#M17645</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2021-03-12T14:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P Clock Monitor using FCCU</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1245440#M17658</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;Thank you for the reply. Have some more clarifications as listed below:-&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What do you mean by "CLKMN0_RMT" is ON as signalled by MC_ME? Should we set some bit in the MC_ME register? Where does that CLKMN0_RMT_ACTIVE come from?&lt;/LI&gt;&lt;LI&gt;"whether the OLRI bit is set only if clock is not available in the beginning?"---&amp;gt; I mean whether the OLRI bit is set or not when the XOSC clock is stable during the initialization process and after that the XOSC clock is going unstable and becoming less than IROSC?&lt;/LI&gt;&lt;LI&gt;Does the clock automatically switch from XOSC to IROSC if short or long functional reset is configured in the FCCU module(fault id 26) when the OLRI bit is set? Any additional configurations are required for clock switching other than FCCU?&lt;/LI&gt;&lt;LI&gt;Does this pseudocode in the application note&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4880.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/application-note/AN4880.pdf&lt;/A&gt; works with those configurations for loss of clock detection and reaction? Any additional configurations required?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 07:16:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1245440#M17658</guid>
      <dc:creator>sureshkurukundi</dc:creator>
      <dc:date>2021-03-15T07:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P Clock Monitor using FCCU</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1245631#M17671</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;What do you mean by "CLKMN0_RMT" is ON as signalled by MC_ME? Should we set some bit in the MC_ME register? Where does that CLKMN0_RMT_ACTIVE come from?&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="petervlna_0-1615802577912.png" style="width: 482px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/139619i90912AFB86040BD7/image-dimensions/482x200?v=v2" width="482" height="200" role="button" title="petervlna_0-1615802577912.png" alt="petervlna_0-1615802577912.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So the clock must be enabled in Mode entry mode in the mode where you doing measurement. (XOSC)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;"whether the OLRI bit is set only if clock is not available in the beginning?"---&amp;gt; I mean whether the OLRI bit is set or not when the XOSC clock is stable during the initialization process and after that the XOSC clock is going unstable and becoming less than IROSC?&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, it is set when you enable CMU, as the schematic represents.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;Does the clock automatically switch from XOSC to IROSC if short or long functional reset is configured in the FCCU module(fault id 26) when the OLRI bit is set? Any additional configurations are required for clock switching other than FCCU?&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, the default clock after reset is IRC clock. As it is considered as safety clock, so you can do safety analyzes on your SW.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;Does this pseudocode in the application note&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4880.pdf" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://www.nxp.com/docs/en/application-note/AN4880.pdf&lt;/A&gt; works with those configurations for loss of clock detection and reaction? Any additional configurations required?&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;I am not author of the AN, but the code looks fine to me. for any safety critical application parts I recommend to not rely on example codes, but rather on your own code.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Best regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Peter&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 10:08:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1245631#M17671</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2021-03-15T10:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P Clock Monitor using FCCU</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1249356#M17746</link>
      <description>&lt;P&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;Thank you so much for the reply and your inputs &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/13836"&gt;@petervlna&lt;/a&gt; . I was able to test the CMU by removing the XOSC crystal from the board and by providing external frequency from the signal generator which is less than the IROSC frequency and observed that OLRI bit is set and the board was getting reset.&lt;/P&gt;&lt;P&gt;I have one question regarding the crystal failure:&lt;/P&gt;&lt;P&gt;What if the crystal is removed from the board and there is no XOSC ON signal from the MC_ME reg and how to detect the crystal failure condition in this case? Is there any way to detect this using CMU/FCCU or any other feature in MPC?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 06:09:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1249356#M17746</guid>
      <dc:creator>sureshkurukundi</dc:creator>
      <dc:date>2021-03-22T06:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P Clock Monitor using FCCU</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1250126#M17778</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;It makes no sense to detect if crystal is removed when it is not turned on in ME.&lt;/P&gt;
&lt;P&gt;The device simply do not use it so it is not affecting safety of the device.&lt;/P&gt;
&lt;P&gt;In the moment you turn it on you will know it is not working, and the clock switch will not pass, so the device will operate with its previous clock.&lt;/P&gt;
&lt;P&gt;best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 06:17:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1250126#M17778</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2021-03-23T06:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P Clock Monitor using FCCU</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1250183#M17780</link>
      <description>&lt;P&gt;Okay, got it. Thank you so much for the support &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/13836"&gt;@petervlna&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 07:20:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Clock-Monitor-using-FCCU/m-p/1250183#M17780</guid>
      <dc:creator>sureshkurukundi</dc:creator>
      <dc:date>2021-03-23T07:20:34Z</dc:date>
    </item>
  </channel>
</rss>

