<?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: Bootloader jump problem with MPC5744P using S32 Design Studio</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Bootloader-jump-problem-with-MPC5744P-using-S32-Design-Studio/m-p/994462#M14965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just call this function: PIT_DRV_Deinit(0);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Mar 2020 10:32:44 GMT</pubDate>
    <dc:creator>pierre_theron</dc:creator>
    <dc:date>2020-03-19T10:32:44Z</dc:date>
    <item>
      <title>Bootloader jump problem with MPC5744P using S32 Design Studio</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Bootloader-jump-problem-with-MPC5744P-using-S32-Design-Studio/m-p/994458#M14961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bootloader works correct. The application to be bootloaded works correct on it's own when is it programmed directly onto the micro. When I bootload the application with the bootloader and jump direct to the application from the bootloader I have the following problem:&lt;/P&gt;&lt;P&gt;The application starts up, I enter the same run mode as in the bootloader: &amp;nbsp;&lt;/P&gt;&lt;P&gt;MC_ME_SetPowerMode(MC_ME,POWER_MANAGER_DRUN);&amp;nbsp; //this works correct.&lt;/P&gt;&lt;P&gt;//Then I initialize all the clocks:&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT, g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);//this works correct&lt;BR /&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_FORCIBLE);//this function does not work&lt;/P&gt;&lt;P&gt;The above mentioned function calls:&lt;BR /&gt;CLOCK_DRV_Init(config);&lt;/P&gt;&lt;P&gt;//This function calls:&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Reset();&lt;/P&gt;&lt;P&gt;//which calls:&lt;/P&gt;&lt;P&gt;MC_ME_ResetClockSourcesConfiguration(MC_ME);&lt;/P&gt;&lt;P&gt;//and&lt;/P&gt;&lt;P&gt;MC_ME_ResetPeripheralsConfiguration(MC_ME,(uint32_t)MC_ME_PERIPH_CONFIG_COUNT);&lt;/P&gt;&lt;P&gt;//and&lt;/P&gt;&lt;P&gt;MC_ME_ChangeMode(MC_ME);&lt;/P&gt;&lt;P&gt;//to enable mode transition&lt;/P&gt;&lt;P&gt;//The code then gets stuck in this loop:&lt;/P&gt;&lt;P&gt;for (i= 0U; i &amp;lt; MC_ME_COMPLETE_TRANSITION_TIMEOUT; i++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Check whether transition completed */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (MC_ME_GetTransitionStatus(MC_ME))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retValue = STATUS_SUCCESS;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;//The S_MTRANS bit in the MC_ME-&amp;gt;GS register remains set indicating that mode transition is ongoing and never gets cleared.&lt;/P&gt;&lt;P&gt;Why is this happening? The clock settings in the bootloader and application code is exactly the same.&lt;/P&gt;&lt;P&gt;As an experiment I call the CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_FORCIBLE);&lt;/P&gt;&lt;P&gt;function twice in the application, and that works.&lt;/P&gt;&lt;P&gt;I also made sure the SRAM, FLASH and local data memory does not overlap as specified in the linker files for both applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2020 12:13:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Bootloader-jump-problem-with-MPC5744P-using-S32-Design-Studio/m-p/994458#M14961</guid>
      <dc:creator>pierre_theron</dc:creator>
      <dc:date>2020-01-10T12:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader jump problem with MPC5744P using S32 Design Studio</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Bootloader-jump-problem-with-MPC5744P-using-S32-Design-Studio/m-p/994459#M14962</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 most common reason is that user is trying to disable clocks by Mode Entry which are still used by some peripheral. First thing to check is the MC_ME_DMTS register:&lt;/P&gt;&lt;P&gt;„This register provides the status of different factors which influence mode transitions. It&lt;/P&gt;&lt;P&gt;is used to give an indication of why a mode transition indicated by ME_GS.S_MTRANS&lt;/P&gt;&lt;P&gt;may be taking longer than expected.“&lt;/P&gt;&lt;P&gt;See please reference manual for more deteils about the register.&lt;/P&gt;&lt;P&gt;Next step I usually recommend is to check status of all clocks in MC_ME_GS and compare it with target clock mode configuration to see which clock causes the troubles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 08:01:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Bootloader-jump-problem-with-MPC5744P-using-S32-Design-Studio/m-p/994459#M14962</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-01-16T08:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader jump problem with MPC5744P using S32 Design Studio</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Bootloader-jump-problem-with-MPC5744P-using-S32-Design-Studio/m-p/994460#M14963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The PIT is enabled by the startup file in S32DS. After adding this peripheral to processor expert, and disabling the timer with the de-initialize driver function just before I jump to the bootloaded application solved the problem.&lt;/P&gt;&lt;P&gt;Thank you for steering me into the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 15:48:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Bootloader-jump-problem-with-MPC5744P-using-S32-Design-Studio/m-p/994460#M14963</guid>
      <dc:creator>pierre_theron</dc:creator>
      <dc:date>2020-01-16T15:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader jump problem with MPC5744P using S32 Design Studio</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Bootloader-jump-problem-with-MPC5744P-using-S32-Design-Studio/m-p/994461#M14964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide your code about pit&amp;nbsp;&lt;STRONG style="background-color: #ffffff; color: #51626f; font-weight: 400; "&gt;de-initialize driver function? I&amp;nbsp;&lt;SPAN style="color: #666666; font-weight: normal; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" data-group="3_3" style="color: #666666; font-weight: normal; font-size: 14px;"&gt;facing&lt;/SPAN&gt;&lt;SPAN style="color: #666666; font-weight: normal; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" data-group="4_4" style="color: #666666; font-weight: normal; font-size: 14px;"&gt;the&lt;/SPAN&gt;&lt;SPAN style="color: #666666; font-weight: normal; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" data-group="5_5" style="color: #666666; font-weight: normal; font-size: 14px;"&gt;same&lt;/SPAN&gt;&lt;SPAN style="color: #666666; font-weight: normal; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" data-group="6_6" style="color: #666666; font-weight: normal; font-size: 14px;"&gt;issues&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #51626f; font-weight: 400; "&gt;&lt;SPAN class="" data-group="6_6" style="color: #666666; font-weight: normal; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2020 02:12:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Bootloader-jump-problem-with-MPC5744P-using-S32-Design-Studio/m-p/994461#M14964</guid>
      <dc:creator>erreer</dc:creator>
      <dc:date>2020-03-19T02:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader jump problem with MPC5744P using S32 Design Studio</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Bootloader-jump-problem-with-MPC5744P-using-S32-Design-Studio/m-p/994462#M14965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just call this function: PIT_DRV_Deinit(0);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2020 10:32:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Bootloader-jump-problem-with-MPC5744P-using-S32-Design-Studio/m-p/994462#M14965</guid>
      <dc:creator>pierre_theron</dc:creator>
      <dc:date>2020-03-19T10:32:44Z</dc:date>
    </item>
  </channel>
</rss>

