<?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: MPC5634M Bootloader: flash program in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bootloader-flash-program/m-p/1240943#M17554</link>
    <description>&lt;P&gt;Flash data and .mot original file are the same, I think the program has been loaded into flash, but I don't know why it is not executed, no response.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jasonhd_1-1614942030831.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138875i030750FC4DD36DEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="jasonhd_1-1614942030831.png" alt="jasonhd_1-1614942030831.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;jasonhd_1-1614942030831.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jasonhd_0-1614941976967.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138874iF876E591829C5F42/image-size/large?v=v2&amp;amp;px=999" role="button" title="jasonhd_0-1614941976967.png" alt="jasonhd_0-1614941976967.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;jasonhd_0-1614941976967.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 11:04:41 GMT</pubDate>
    <dc:creator>jasonhd</dc:creator>
    <dc:date>2021-03-05T11:04:41Z</dc:date>
    <item>
      <title>MPC5634M Bootloader: flash program</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bootloader-flash-program/m-p/1239296#M17522</link>
      <description>&lt;P&gt;Hi, My microcontroller is mpc5634m. I'm developing bootloader. I use the program&amp;nbsp; got from the forum and modify it，now I can use serial port to download bootloader to RAM and run it in BAM mode. When I execute the program in RAM, I can brush the user application program to the flash address of 0x10000. But when I use the program running in RAM to brush bootloader to flash (0x0000), the program will not be executed. I don't know why? I made the following attempts:&lt;BR /&gt;1. Change the address of the user application program to 0x0000, and the program will not be executed&lt;BR /&gt;2. Change the address of the user application program to 0x10000, and the program will be executed&lt;BR /&gt;3. Change the address of the user application program to 0x20000, and the program will be executed&lt;BR /&gt;4. Change the address of bootloader to flash(0x10000), and the program also not&amp;nbsp; execute(like flash address 0x0000)&lt;BR /&gt;Do that need any other settings?&lt;BR /&gt;I noticed in the note that if the program swipes to the flash initialization register:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jasonhd_0-1614766893094.png" style="width: 512px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138601i2446ED23DD469653/image-dimensions/512x333?v=v2" width="512" height="333" role="button" title="jasonhd_0-1614766893094.png" alt="jasonhd_0-1614766893094.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;jasonhd_0-1614766893094.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there anything to do with this register? I compared the user application program with the bootloader program, the operation of this register should be the same, but the application program can run, but the bootloader does not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 10:31:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bootloader-flash-program/m-p/1239296#M17522</guid>
      <dc:creator>jasonhd</dc:creator>
      <dc:date>2021-03-03T10:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bootloader: flash program</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bootloader-flash-program/m-p/1239385#M17528</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have two questions:&lt;/P&gt;
&lt;P&gt;1. Are those applications working when you load them via JTAG, not by the bootloader?&lt;/P&gt;
&lt;P&gt;2 Once the applications are loaded by your bootloader, did you try to check the content of flash by debugger? In other words, is the application loaded correctly?&lt;/P&gt;
&lt;P&gt;I'm asking because I do not understand from the description if it is problem of bootloader loaded by BAM or problem of loaded applications.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 13:10:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bootloader-flash-program/m-p/1239385#M17528</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2021-03-03T13:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bootloader: flash program</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bootloader-flash-program/m-p/1239831#M17531</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;1. I tested to change the startup address of the user application to 0x00000000. After downloading through JTAG, the program can be executed. In the program, I set to print a line of string through the serial port, and I can see the string printed circularly. But the same .mot file, after I download it to flash through bootloader, there is no string printed out, but I feel that the program may have been loaded into flash, because according to previous tests, if there is no program in MCU, when I send characters to MCU at 115200 baudrate, MCU will always reply with a "?"&amp;nbsp; in response, whatever I send is a reply to this character.But now when I send any character, there is no response,&lt;BR /&gt;2. I use CodeWarrior v2.10, I don't know how to debug .mot file loaded into MCU program by upper computer, because once I click "debug", it will reload the program into MCU through JTAG, I'm not very familiar with it.&lt;/P&gt;&lt;P&gt;I send the following program to the ram of MCU for execution through the upper computer.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 02:03:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bootloader-flash-program/m-p/1239831#M17531</guid>
      <dc:creator>jasonhd</dc:creator>
      <dc:date>2021-03-04T02:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bootloader: flash program</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bootloader-flash-program/m-p/1240836#M17550</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;1. I can see you didn't update EraseFlash() function:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1614932413904.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138863iA54645D38DC4B88F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1614932413904.png" alt="lukaszadrapa_0-1614932413904.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;lukaszadrapa_0-1614932413904.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;That means you are not erasing lowest three blocks. If you are going to program an application or whatever to 0x0, it won't work if the flash is not already erased before that.&lt;/P&gt;
&lt;P&gt;2. You can simply run&lt;/P&gt;
&lt;P&gt;c:\Program Files (x86)\Freescale\CW for MPC55xx and MPC56xx 2.10\pemicro\CW_ICDPPCNEXUS.EXE&lt;/P&gt;
&lt;P&gt;and either select "Connect" which will perform reset and enter debug mode, or select "Hotsync" which will not perform reset and it just establishes JTAG communication with running device.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 08:23:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bootloader-flash-program/m-p/1240836#M17550</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2021-03-05T08:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bootloader: flash program</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bootloader-flash-program/m-p/1240943#M17554</link>
      <description>&lt;P&gt;Flash data and .mot original file are the same, I think the program has been loaded into flash, but I don't know why it is not executed, no response.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jasonhd_1-1614942030831.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138875i030750FC4DD36DEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="jasonhd_1-1614942030831.png" alt="jasonhd_1-1614942030831.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;jasonhd_1-1614942030831.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jasonhd_0-1614941976967.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138874iF876E591829C5F42/image-size/large?v=v2&amp;amp;px=999" role="button" title="jasonhd_0-1614941976967.png" alt="jasonhd_0-1614941976967.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;jasonhd_0-1614941976967.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 11:04:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bootloader-flash-program/m-p/1240943#M17554</guid>
      <dc:creator>jasonhd</dc:creator>
      <dc:date>2021-03-05T11:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bootloader: flash program</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bootloader-flash-program/m-p/1241572#M17568</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;once it is loaded to the flash, run CW_ICDPPCNEXUS as mentioned above and step the code to see what happens and where it crashes.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 07:28:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bootloader-flash-program/m-p/1241572#M17568</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2021-03-08T07:28:56Z</dc:date>
    </item>
  </channel>
</rss>

