<?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: S32K324: clock initialization when jump from Boot into Appli in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K324-clock-initialization-when-jump-from-Boot-into-Appli/m-p/1787033#M30520</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/179750"&gt;@Drifter22&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The clock configuration is not correct.&lt;/P&gt;
&lt;P&gt;The dividers between the clocks must be configured according to one of the clock options.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1704962439886.png" style="width: 695px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/257719i7EBBF241D24A8177/image-dimensions/695x92?v=v2" width="695" height="92" role="button" title="danielmartynek_0-1704962439886.png" alt="danielmartynek_0-1704962439886.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;We can't guarantee the specified functionality of the MCU otherwise.&lt;/P&gt;
&lt;P&gt;It is recommended to use one of the options precisely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure this is the root cause, but it should be fixed first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 08:42:57 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2024-01-11T08:42:57Z</dc:date>
    <item>
      <title>S32K324: clock initialization when jump from Boot into Appli</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-clock-initialization-when-jump-from-Boot-into-Appli/m-p/1784340#M30369</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm using the&amp;nbsp;MCTPTX1AK324 demoboard with the related example code as a starting point for implementing a Bootloader code that jumps to an Application.&lt;BR /&gt;Clock initialization now is present (with same configuration) both into Boot code and Appli code: if I call jump function before executing clock initialization (into Boot code) the jump is correctly executed, otherwise it doesn't work.&lt;BR /&gt;Is this problem related to the fact that the clock inizialization would be done two times? How can I fix this (because I need to set clock configuration/initialization into Boot code before jumping into Appli)?&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 10:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-clock-initialization-when-jump-from-Boot-into-Appli/m-p/1784340#M30369</guid>
      <dc:creator>Drifter22</dc:creator>
      <dc:date>2024-01-08T10:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K324: clock initialization when jump from Boot into Appli</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-clock-initialization-when-jump-from-Boot-into-Appli/m-p/1784496#M30385</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/179750"&gt;@Drifter22&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;What do you mean by it does not work?&lt;/P&gt;
&lt;P&gt;Do you see a fault exception or is the application stuck in a loop?&lt;/P&gt;
&lt;P&gt;Is the HSE_FW installed on that MCU?&lt;/P&gt;
&lt;P&gt;Do you set all the clocks precisely to one of the clock options available in the RM, Section 24.7.2 Clocking use case examples?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 14:29:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-clock-initialization-when-jump-from-Boot-into-Appli/m-p/1784496#M30385</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-01-08T14:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: S32K324: clock initialization when jump from Boot into Appli</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-clock-initialization-when-jump-from-Boot-into-Appli/m-p/1786186#M30489</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;, thanks for the answer.&lt;/P&gt;&lt;P&gt;I see a Hard Fault exception because of a timeout expiration into a clock initialization function, as you can see below:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clk_init_fault_01.png" style="width: 451px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/257565i22B93131CADA05B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="clk_init_fault_01.png" alt="clk_init_fault_01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The fault is raised by&amp;nbsp;Clock_Ip_ReportClockErrors(CLOCK_IP_REPORT_TIMEOUT_ERROR, Config-&amp;gt;Name); into the following function (i didn't copy the last part of the function):&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static void Clock_Ip_CompleteSxoscOsconEocv(Clock_Ip_XoscConfigType const* Config)
{
    boolean TimeoutOccurred = FALSE;
    uint32 StartTime;
    uint32 ElapsedTime;
    uint32 TimeoutTicks;
    uint32 SxoscStatus;
    uint32 Instance;

    if (NULL_PTR != Config)
    {
        Instance = Clock_Ip_au8ClockFeatures[Config-&amp;gt;Name][CLOCK_IP_MODULE_INSTANCE];

        if (Config-&amp;gt;Enable != 0U)
        {
            if(0U == Config-&amp;gt;BypassOption)
            {
                Clock_Ip_StartTimeout(&amp;amp;StartTime, &amp;amp;ElapsedTime, &amp;amp;TimeoutTicks, CLOCK_IP_TIMEOUT_VALUE_US);
                /* Wait until xosc is locked */
                do
                {
                    SxoscStatus = ((Clock_Ip_apxXosc[Instance]-&amp;gt;STAT &amp;amp; SXOSC_SXOSC_STAT_OSC_STAT_MASK) &amp;gt;&amp;gt; SXOSC_SXOSC_STAT_OSC_STAT_SHIFT);
                    TimeoutOccurred = Clock_Ip_TimeoutExpired(&amp;amp;StartTime, &amp;amp;ElapsedTime, TimeoutTicks);
                }
                while ((0U == SxoscStatus) &amp;amp;&amp;amp; (FALSE == TimeoutOccurred));

                if (TimeoutOccurred)
                {
                    /* Report timeout error */
                    Clock_Ip_ReportClockErrors(CLOCK_IP_REPORT_TIMEOUT_ERROR, Config-&amp;gt;Name);
                }&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;HSE is not installed.&lt;/P&gt;&lt;P&gt;I use clock configuration based on a RTD Motor Control example. Here is my configuration:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxp_clock_cfg1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/257566i900161561C8A1B45/image-size/large?v=v2&amp;amp;px=999" role="button" title="nxp_clock_cfg1.png" alt="nxp_clock_cfg1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxp_clock_cfg2.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/257568iA1971BEA6E9C0F3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="nxp_clock_cfg2.png" alt="nxp_clock_cfg2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxp_clock_cfg3.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/257567i5BB89DA315A43552/image-size/large?v=v2&amp;amp;px=999" role="button" title="nxp_clock_cfg3.png" alt="nxp_clock_cfg3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 16:20:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-clock-initialization-when-jump-from-Boot-into-Appli/m-p/1786186#M30489</guid>
      <dc:creator>Drifter22</dc:creator>
      <dc:date>2024-01-10T16:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: S32K324: clock initialization when jump from Boot into Appli</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-clock-initialization-when-jump-from-Boot-into-Appli/m-p/1787033#M30520</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/179750"&gt;@Drifter22&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The clock configuration is not correct.&lt;/P&gt;
&lt;P&gt;The dividers between the clocks must be configured according to one of the clock options.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1704962439886.png" style="width: 695px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/257719i7EBBF241D24A8177/image-dimensions/695x92?v=v2" width="695" height="92" role="button" title="danielmartynek_0-1704962439886.png" alt="danielmartynek_0-1704962439886.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;We can't guarantee the specified functionality of the MCU otherwise.&lt;/P&gt;
&lt;P&gt;It is recommended to use one of the options precisely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure this is the root cause, but it should be fixed first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 08:42:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-clock-initialization-when-jump-from-Boot-into-Appli/m-p/1787033#M30520</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-01-11T08:42:57Z</dc:date>
    </item>
  </channel>
</rss>

