<?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>S32 Design StudioのトピックRe: MPC5748G bootloader to application jump issue</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/MPC5748G-bootloader-to-application-jump-issue/m-p/920012#M5044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much Stephen your suggestion is correct Resetting of the used peripherals was the missing thing.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2019 13:01:58 GMT</pubDate>
    <dc:creator>prasad_chormale</dc:creator>
    <dc:date>2019-09-16T13:01:58Z</dc:date>
    <item>
      <title>MPC5748G bootloader to application jump issue</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/MPC5748G-bootloader-to-application-jump-issue/m-p/920010#M5042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am developing serial Bootloader for MPC57485G. flow of the the process is simple ,after every power on controller goes to bootloader code waits for 1sec to receive an file over serial uart. If the new file is received than its writes the file to application area and after completing its jump to application code. If file is not received than its directly jump to&lt;BR /&gt;existing application code.My application is simple of LED toggling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have divided flash in following manner and have made 2 separate projects for bootloader and application files of same&lt;BR /&gt;is also attached .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*BOOTLOADER*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SRAM_SIZE = 256K;&lt;BR /&gt;/* Define SRAM Base Address */&lt;BR /&gt;SRAM_BASE_ADDR = 0x40000000;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;flash_rchw : org = 0x00FA0000, len = 0x4&lt;BR /&gt; cpu0_reset_vec : org = 0x00FA0000+0x10, len = 0x4&lt;BR /&gt; cpu1_reset_vec : org = 0x00FA0000+0x14, len = 0x4&lt;BR /&gt; cpu2_reset_vec : org = 0x00FA0000+0x04, len = 0x4&lt;/P&gt;&lt;P&gt;m_text : org = 0x014C0000, len = 256K&lt;BR /&gt; m_vectors_ram : org = 0x40000000, len = 0xC00&lt;BR /&gt; m_data : org = 0x40000000+0xC00, len = 256K-0xC00&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*APPLICATION*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRAM_SIZE = 256K;&lt;BR /&gt;/* Define SRAM Base Address */&lt;BR /&gt;SRAM_BASE_ADDR = 0x40000000;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;flash_rchw : org = 0x00FA4000, len = 0x4&lt;BR /&gt; cpu0_reset_vec : org = 0x00FA4000+0x10, len = 0x4&lt;BR /&gt; cpu1_reset_vec : org = 0x00FA4000+0x14, len = 0x4&lt;BR /&gt; cpu2_reset_vec : org = 0x00FA4000+0x04, len = 0x4&lt;/P&gt;&lt;P&gt;m_text : org = 0x01000000, len = 4800K&lt;BR /&gt; m_vectors_ram : org = 0x40000000, len = 0xC00&lt;BR /&gt; m_data : org = 0x40000000+0xC00, len = 256K-0xC00&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have used following asm code to jump to application code&lt;BR /&gt;//Jump to app address 0x01000000&lt;BR /&gt; asm("e_lis %r12,0x0100");&lt;BR /&gt; asm("e_or2i %r12,0x0000");&lt;BR /&gt; asm("mtlr %r12");&lt;BR /&gt; asm("se_blrl");&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am using S32 IDE and MPC57485G Devkit board for development purpose and open SDA is used for debugging.&lt;BR /&gt;I have loaded both app and bootloader together by giving bootloader elf object file reference in application code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing an issue that whenever i make execution jump from bootloader to application its take some time to configure&lt;BR /&gt;the core clock in application and whenever I try to configure any other module like uart it goes in hard fault(IVOR6_handler) and remains there only refer below image for details and highlighted code from where its goes to IVOR6_handler. Same is&amp;nbsp;the case whenever I initialize any other module .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83289i915B5BB61DC00477/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However if i removes all modules from application and just keep clock and pin initialization ,though it take some time to&lt;BR /&gt;configure clock here also but application work as expected&lt;BR /&gt;&lt;BR /&gt;Also i have following queries&lt;BR /&gt;1.Is there any restriction that clock speed for the core must me same in both bootloader and application code because&lt;BR /&gt;i need to re initialize complete controller altogether in different manner in application.&lt;BR /&gt;2.Is there any mandatory housekeeping work(like resting some important registers,modules etc ) need to done before&lt;BR /&gt;jumping to application.If there is anything please let me know any reference for the same.&lt;BR /&gt;3.Is it mandatory to divide ram also for this kind of use case if yes than any reference to do it will be really helpful&lt;BR /&gt;4.Is method in which flash is divided is correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2019 06:47:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/MPC5748G-bootloader-to-application-jump-issue/m-p/920010#M5042</guid>
      <dc:creator>prasad_chormale</dc:creator>
      <dc:date>2019-09-13T06:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5748G bootloader to application jump issue</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/MPC5748G-bootloader-to-application-jump-issue/m-p/920011#M5043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is that your application does not like the fact that your UART has already been setup by the bootloader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you reset your UART (and any other peripherals used in the bootloader) before jumping to the application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2019 09:18:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/MPC5748G-bootloader-to-application-jump-issue/m-p/920011#M5043</guid>
      <dc:creator>stephenlangstaf</dc:creator>
      <dc:date>2019-09-16T09:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5748G bootloader to application jump issue</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/MPC5748G-bootloader-to-application-jump-issue/m-p/920012#M5044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much Stephen your suggestion is correct Resetting of the used peripherals was the missing thing.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2019 13:01:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/MPC5748G-bootloader-to-application-jump-issue/m-p/920012#M5044</guid>
      <dc:creator>prasad_chormale</dc:creator>
      <dc:date>2019-09-16T13:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5748G bootloader to application jump issue</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/MPC5748G-bootloader-to-application-jump-issue/m-p/1338626#M7785</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;SPAN&gt;prasad:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; i am facing the same issue, but i have deinit all&amp;nbsp;Peripherals used in bootloader. Could you please share the code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 13:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/MPC5748G-bootloader-to-application-jump-issue/m-p/1338626#M7785</guid>
      <dc:creator>thomasbao</dc:creator>
      <dc:date>2021-09-11T13:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5748G bootloader to application jump issue</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/MPC5748G-bootloader-to-application-jump-issue/m-p/1561981#M9481</link>
      <description>Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188219"&gt;@thomasbao&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I am facing on the same issue with usdhc, have you found how to do that ?</description>
      <pubDate>Wed, 30 Nov 2022 11:30:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/MPC5748G-bootloader-to-application-jump-issue/m-p/1561981#M9481</guid>
      <dc:creator>developer_newbie</dc:creator>
      <dc:date>2022-11-30T11:30:09Z</dc:date>
    </item>
  </channel>
</rss>

