<?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: CLOCK_SYS_UpdateConfiguration() fails in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/CLOCK-SYS-UpdateConfiguration-fails/m-p/992377#M5681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;An instruction bus error, but hard to say what is the cause.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you changed the optimization level?&lt;/P&gt;&lt;P&gt;You can try to get the PC address of the instruction as explained here:&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-334902"&gt;Fault handling on S32K144&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&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/104763i2C4BB763942F6060/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;A href="http://infocenter.arm.com/help/topic/com.arm.doc.dui0553b/DUI0553.pdf"&gt;Cortex™&amp;nbsp;M4 Devices&amp;nbsp;Generic User Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jan 2020 09:33:01 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2020-01-10T09:33:01Z</dc:date>
    <item>
      <title>CLOCK_SYS_UpdateConfiguration() fails</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/CLOCK-SYS-UpdateConfiguration-fails/m-p/992374#M5678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi together&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a prototype pcb with a S32K148_144 MCU on it.&lt;/P&gt;&lt;P&gt;I took a sample program, which runs without problems on the Eval Board &lt;SPAN class=""&gt;S32K148EVBQ176.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;But on our prototype pcb, the function CLOCK_SYS_UpdateConfiguration() fails with an TIMEOUT. As a result, the program runs into defaultISR (file startup_S32K148.s line 374) after this functioncall.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Does anybody have a hint or a solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Sample project is attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;reagrds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Mario&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 15:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/CLOCK-SYS-UpdateConfiguration-fails/m-p/992374#M5678</guid>
      <dc:creator>EE_CW</dc:creator>
      <dc:date>2019-12-17T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: CLOCK_SYS_UpdateConfiguration() fails</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/CLOCK-SYS-UpdateConfiguration-fails/m-p/992375#M5679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;Sorry for the late response.&lt;BR /&gt;I have just run you project and could reproduce the fault on S32K148_144 EVB.&lt;/P&gt;&lt;P&gt;As you can see below, it is a precise bus fault at address 0x40049068.&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/101727iDAB4F5C68A280636/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/101728i08DA3A92379D6DC6/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;When the PINS driver is initialized, the PORTA PCC clock is gated off.&amp;nbsp;&lt;/P&gt;&lt;P&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/101729i119115B6C29366C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT); function&amp;nbsp;returns STATUS_TIMEOUT&amp;nbsp;because the SOSC module clock cannot&amp;nbsp;be validated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you use an External clock generator or a crystal with the internal SOSC.&lt;/P&gt;&lt;P&gt;Because in the project, you selected external&amp;nbsp;&lt;SPAN&gt;External clock source.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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/101730i203DB858211FCF29/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;BR /&gt;If crystal, then change the configuration to External crystal oscillator instead.&lt;/P&gt;&lt;P&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/101731i4DE6EF6A1A86F5A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 16:17:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/CLOCK-SYS-UpdateConfiguration-fails/m-p/992375#M5679</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-01-07T16:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: CLOCK_SYS_UpdateConfiguration() fails</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/CLOCK-SYS-UpdateConfiguration-fails/m-p/992376#M5680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;I changed the configuration to External crystal oscillator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is still an error present. If I want to step throug the main program, the program runs into default ISR&amp;nbsp;&lt;SPAN class=""&gt;(file startup_S32K148.s line 377)&lt;/SPAN&gt; within CLOCK_SYS_UpdateConfiguration(). If I check then the registers, I can see the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IBUSERR.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/101811i728487A35346AF35/image-size/large?v=v2&amp;amp;px=999" role="button" title="IBUSERR.PNG" alt="IBUSERR.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So there seems to be still a problem with the SOSC module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 09:52:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/CLOCK-SYS-UpdateConfiguration-fails/m-p/992376#M5680</guid>
      <dc:creator>EE_CW</dc:creator>
      <dc:date>2020-01-08T09:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: CLOCK_SYS_UpdateConfiguration() fails</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/CLOCK-SYS-UpdateConfiguration-fails/m-p/992377#M5681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;An instruction bus error, but hard to say what is the cause.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you changed the optimization level?&lt;/P&gt;&lt;P&gt;You can try to get the PC address of the instruction as explained here:&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-334902"&gt;Fault handling on S32K144&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&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/104763i2C4BB763942F6060/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;A href="http://infocenter.arm.com/help/topic/com.arm.doc.dui0553b/DUI0553.pdf"&gt;Cortex™&amp;nbsp;M4 Devices&amp;nbsp;Generic User Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2020 09:33:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/CLOCK-SYS-UpdateConfiguration-fails/m-p/992377#M5681</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-01-10T09:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: CLOCK_SYS_UpdateConfiguration() fails</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/CLOCK-SYS-UpdateConfiguration-fails/m-p/992378#M5682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We checked again the clock settings. Then we found out that we accidentally used a 16MHz crystal instead of a 8MHz crystal.&lt;/P&gt;&lt;P&gt;Another point was to set the correct "HIGH Gain Oscillator Select"-Setting according to the manual.&lt;/P&gt;&lt;P&gt;With these correct settings, we were able to run our program on our prototype PCB.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="clockSettings.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25916i18F2EC6841FE65E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="clockSettings.PNG" alt="clockSettings.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We tried out the fault handling already before. There the PC was always pointing on a library function. But it didn't give a hint about the real error.&lt;/P&gt;&lt;P&gt;But for the moment our problem is solved.&lt;/P&gt;&lt;P&gt;&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;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 12:04:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/CLOCK-SYS-UpdateConfiguration-fails/m-p/992378#M5682</guid>
      <dc:creator>EE_CW</dc:creator>
      <dc:date>2020-01-13T12:04:09Z</dc:date>
    </item>
  </channel>
</rss>

