<?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のトピックQuestions about MPC5748G Bootloader</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665230#M7435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're&amp;nbsp;developing a&amp;nbsp;bootloader based on CAN. Now the application code is programmed into the flash successfully. But the controller stops when trying to jump to application from the boot, using function pointer:&amp;nbsp;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;(*(void (*)(void))(0x01000000))();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same jumping method works in our MPC5643L boot. Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question: Is it possible for S32DS to output an aligned s-record, instead of using a hex tool to convert it afterwards?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Feb 2017 07:57:58 GMT</pubDate>
    <dc:creator>jeromeli</dc:creator>
    <dc:date>2017-02-25T07:57:58Z</dc:date>
    <item>
      <title>Questions about MPC5748G Bootloader</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665230#M7435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're&amp;nbsp;developing a&amp;nbsp;bootloader based on CAN. Now the application code is programmed into the flash successfully. But the controller stops when trying to jump to application from the boot, using function pointer:&amp;nbsp;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;(*(void (*)(void))(0x01000000))();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same jumping method works in our MPC5643L boot. Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question: Is it possible for S32DS to output an aligned s-record, instead of using a hex tool to convert it afterwards?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2017 07:57:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665230#M7435</guid>
      <dc:creator>jeromeli</dc:creator>
      <dc:date>2017-02-25T07:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about MPC5748G Bootloader</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665231#M7436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerome,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this function pointer should work. Have you checked the asm code?&lt;/P&gt;&lt;P&gt;Another idea - do you use correct address? If standard boot header is used for user application, the reset vector is at address 0x01000004...&lt;/P&gt;&lt;P&gt;I have checked with S32DS expert and he told me that there's no such config option. So, it is necessary to use some kind of converter. I shared one in this application note (included in the zip file):&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/files/microcontrollers/doc/app_note/AN5319.pdf"&gt;http://www.nxp.com/files/microcontrollers/doc/app_note/AN5319.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/files/microcontrollers/doc/app_note/AN5319SW.zip"&gt;http://www.nxp.com/files/microcontrollers/doc/app_note/AN5319SW.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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>Mon, 27 Feb 2017 11:50:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665231#M7436</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-02-27T11:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about MPC5748G Bootloader</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665232#M7437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried 0x01000004, but it still didn't work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14166i26C13228F2251CE6/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I suspended the debug, it stopped at IVOR1 (sometimes at IVOR6):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14201i998AD6FB762630C1/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For the application project, I use default S32DS config, which means boot header is at 0xFA0000, reset vector for core0 is at 0xFA0010 and code for core0 starts from 0x1000000. In this case where should I jump to?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14127i73797F85F6A5F615/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to use&amp;nbsp;asm code directly&amp;nbsp;in the C file (just like how you jump&amp;nbsp;in the startup code of AN5319), but&amp;nbsp;it stopped at IVOR1 too.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14128iDBB0E2031F98C459/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, if I also do it in the startup code, it jumps correctly. But what we want is to run the bootloader first, and in there we decide whether jump to app or stay in boot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 01:30:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665232#M7437</guid>
      <dc:creator>jeromeli</dc:creator>
      <dc:date>2017-02-28T01:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about MPC5748G Bootloader</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665233#M7438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerome, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it jumps correctly in the startup code then it has to jump correctly also later in main code. This leads me to question - have you disabled all the interrupts before jump? You have to either configure all the features to its default state or the user application must be aware that some features are not in default reset state. It is important to disable interrupts. The rest is application dependent. Please give this a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 12:22:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665233#M7438</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-02-28T12:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about MPC5748G Bootloader</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665234#M7439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I run asm("wrteei 0") before jump code. Is this enough?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 14:06:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665234#M7439</guid>
      <dc:creator>jeromeli</dc:creator>
      <dc:date>2017-02-28T14:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about MPC5748G Bootloader</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665235#M7440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you step the asm code? What is the content of LR or CTR register before executing se_blrl or se_bctrl instruction? That's the first thing you need to check.&lt;/P&gt;&lt;P&gt;There are three levels to enabled or disable interrupts - MSR[EE] bit, priority registers and local enable bits in peripherals. The best way is to disable all interrupts on all levels...&lt;/P&gt;&lt;P&gt;Not sure what's wrong, it requires some extensive debugging...&lt;/P&gt;&lt;P&gt;&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>Wed, 01 Mar 2017 13:23:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665235#M7440</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-03-01T13:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about MPC5748G Bootloader</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665236#M7441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the S32DS Power PC v1.1 .&lt;/P&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeromeli"&gt;jeromeli&lt;/A&gt;‌ , &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/lukaszadrapa"&gt;lukaszadrapa&lt;/A&gt;‌, I am also facing similar problem(getting IVOR1 and IVOR6 error when suspend debug session) in MPC5777M,&lt;/P&gt;&lt;P&gt;But I have some doubt that , Currently I am getting .srec file from the build options ,And&amp;nbsp; i dont know how to align this srec file , if you have any idea , please suggest .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my boot loader memory sections in linker file are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MEMORY&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flash_rchw &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; : org = 0x00FD0000,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; len = 0x4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu0_reset_vec &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; : org = 0x00FD0000+0x10,&amp;nbsp;&amp;nbsp; len = 0x4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu1_reset_vec &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; : org = 0x00FD0000+0x14,&amp;nbsp;&amp;nbsp; len = 0x4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu2_reset_vec &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; : org = 0x00FD0000+0x04,&amp;nbsp;&amp;nbsp; len = 0x4&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpuc_reset_vec &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; : org = 0x00FD0000+0x18,&amp;nbsp;&amp;nbsp; len = 0x4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_text :&amp;nbsp;&amp;nbsp; &amp;nbsp;org = 0x1000000, len = 256K &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_data :&amp;nbsp;&amp;nbsp; &amp;nbsp;org = 0x40000000,&amp;nbsp;&amp;nbsp; len = 128K&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int_iram&amp;nbsp; : org = 0x50000000,&amp;nbsp;&amp;nbsp; len = 16K&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int_dram&amp;nbsp; : org = 0x50800000,&amp;nbsp;&amp;nbsp; len = 64K&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my Application memory secctions in linker file is&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flash_rchw : org = 0x00FC0000,&amp;nbsp;&amp;nbsp; len = 0x4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu0_reset_vec : org = 0x00FC0000+0x10,&amp;nbsp;&amp;nbsp; len = 0x4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu1_reset_vec : org = 0x00FC0000+0x14,&amp;nbsp;&amp;nbsp; len = 0x4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu2_reset_vec : org = 0x00FC0000+0x04,&amp;nbsp;&amp;nbsp; len = 0x4&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpuc_reset_vec : org = 0x00FC0000+0x18,&amp;nbsp;&amp;nbsp; len = 0x4&amp;nbsp;&amp;nbsp; &amp;nbsp;&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; m_text :&amp;nbsp;&amp;nbsp; &amp;nbsp;org = 0x10C0000, len = 2560K &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_data :&amp;nbsp;&amp;nbsp; &amp;nbsp;org = 0x40000000,&amp;nbsp;&amp;nbsp; len = 256K&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_data_nocache :&amp;nbsp;&amp;nbsp; &amp;nbsp;org = 0x4003E000,&amp;nbsp;&amp;nbsp; len = 8K&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int_iram&amp;nbsp; : org = 0x50000000,&amp;nbsp;&amp;nbsp; len = 16K&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int_dram&amp;nbsp; : org = 0x50800000,&amp;nbsp;&amp;nbsp; len = 64K&amp;nbsp; &amp;nbsp;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I am flashing the application at address 0x010C0000&lt;/P&gt;&lt;P&gt;and I am jumping to the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ((void (*)(void)) 0x010C0004)();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me , Whats wrong I am doing ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 11:25:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Questions-about-MPC5748G-Bootloader/m-p/665236#M7441</guid>
      <dc:creator>yalamandadosaky</dc:creator>
      <dc:date>2017-07-21T11:25:34Z</dc:date>
    </item>
  </channel>
</rss>

