<?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 FlashProgrammer fails 0x2010 bytes into a 0x4020 byte program on MPC5604B in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/FlashProgrammer-fails-0x2010-bytes-into-a-0x4020-byte-program-on/m-p/710593#M9263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble flashing the MPC5604B.&lt;/P&gt;&lt;P&gt;I tried this on two different chips with the same results.&lt;/P&gt;&lt;P&gt;It also doesn't seem to matter which location in memory is being flashed, it just fails after the Flash Programmer script tries to program 0x4020 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested this by creating a new MPC5604B project and using the default connection for flashing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the Flash Programmer output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;fl::target -lc "LC for Simple Flash (8)"&lt;BR /&gt;fl::target -b 0x40000000 0xa000&lt;BR /&gt;fl::target -v off -l off&lt;BR /&gt;cmdwin::fl::device -d "MPC5604B_CODE_FLASH" -o "512Kx32x1" -a 0x0 0x7ffff&lt;BR /&gt;cmdwin::fl::image -f "C:\\git\\firmware\\build\\BOOT_MPC5604B\\BOOT_MPC5604B_FLASH.mot" -t "Auto Detect" -re on -r 0x0 0x7ffff -oe off&lt;BR /&gt;cmdwin::fl::erase image&lt;BR /&gt; Beginning Operation ... &lt;BR /&gt;------------------------- &lt;BR /&gt;Auto-detection is successful. &lt;BR /&gt; File is of type Motorola S-Record Format. &lt;BR /&gt; &lt;BR /&gt;Performing target initialization ... &lt;BR /&gt;reading SSCM.STATUS ... &lt;BR /&gt;processor in single chip mode. &lt;BR /&gt;searching for boot sectors ... &lt;BR /&gt;found boot sector at 0x0 and entry point at 0xd0. &lt;BR /&gt; Downloading Flash Device Driver ... &lt;BR /&gt; Reading flash ID ...&lt;BR /&gt;Erasing Sector 0x00000000 to 0x00007FFF &lt;BR /&gt;Erasing Sector 0x00008000 to 0x0000BFFF &lt;BR /&gt;Erasing Sector 0x00010000 to 0x00017FFF &lt;BR /&gt; Erasing ...&lt;BR /&gt; Erase Command Succeeded &lt;BR /&gt;cmdwin::fl::write&lt;BR /&gt; Beginning Operation ... &lt;BR /&gt;------------------------- &lt;BR /&gt;Using restricted address range 0x00000000 to 0x0007FFFF &lt;BR /&gt;Programming file C:\git\firmware\build\BOOT_MPC5604B\BOOT_MPC5604B_FLASH.mot &lt;BR /&gt;Auto-detection is successful. &lt;BR /&gt; File is of type Motorola S-Record Format. &lt;BR /&gt; &lt;BR /&gt; Downloading Flash Device Driver ... &lt;BR /&gt; Reading flash ID ...&lt;BR /&gt;Auto-detection is successful. &lt;BR /&gt; File is of type Motorola S-Record Format. &lt;BR /&gt; &lt;BR /&gt;Downloading 0x00000008 bytes to be programmed at 0x00000000 &lt;BR /&gt;Executing program .... &lt;BR /&gt; Program Command Succeeded &lt;BR /&gt;Downloading 0x000000B8 bytes to be programmed at 0x00000010 &lt;BR /&gt;Executing program .... &lt;BR /&gt; Program Command Succeeded &lt;BR /&gt;Downloading 0x00000080 bytes to be programmed at 0x000000D0 &lt;BR /&gt;Executing program .... &lt;BR /&gt; Program Command Succeeded &lt;BR /&gt;Downloading 0x00000194 bytes to be programmed at 0x00000150 &lt;BR /&gt;Executing program .... &lt;BR /&gt; Program Command Succeeded &lt;BR /&gt;Downloading 0x000000F4 bytes to be programmed at 0x00001000 &lt;BR /&gt;Executing program .... &lt;BR /&gt; Program Command Succeeded &lt;BR /&gt;Downloading 0x000000A8 bytes to be programmed at 0x00001100 &lt;BR /&gt;Executing program .... &lt;BR /&gt; Program Command Succeeded &lt;BR /&gt;Downloading 0x00004020 bytes to be programmed at 0x00003000 &lt;BR /&gt;Executing program .... &lt;BR /&gt;Executing program ..... &lt;BR /&gt;Executing program ...... &lt;BR /&gt;Executing program ....... &lt;BR /&gt;Executing program ........ &lt;BR /&gt;Executing program ......... &lt;BR /&gt;Executing program .......... &lt;BR /&gt;Executing program ...........&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;SPAN class="" style="color: #d74444;"&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;It just keeps doing that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I check the memory of the device, I can see it programmed up until 0x00005010, exactly half of the record it was trying to program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is this script stored and how&amp;nbsp;can I modify the behavior of Flash Programmer to get this working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2017 00:36:05 GMT</pubDate>
    <dc:creator>jonah_ryan-davi</dc:creator>
    <dc:date>2017-09-22T00:36:05Z</dc:date>
    <item>
      <title>FlashProgrammer fails 0x2010 bytes into a 0x4020 byte program on MPC5604B</title>
      <link>https://community.nxp.com/t5/MPC5xxx/FlashProgrammer-fails-0x2010-bytes-into-a-0x4020-byte-program-on/m-p/710593#M9263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble flashing the MPC5604B.&lt;/P&gt;&lt;P&gt;I tried this on two different chips with the same results.&lt;/P&gt;&lt;P&gt;It also doesn't seem to matter which location in memory is being flashed, it just fails after the Flash Programmer script tries to program 0x4020 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested this by creating a new MPC5604B project and using the default connection for flashing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the Flash Programmer output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;fl::target -lc "LC for Simple Flash (8)"&lt;BR /&gt;fl::target -b 0x40000000 0xa000&lt;BR /&gt;fl::target -v off -l off&lt;BR /&gt;cmdwin::fl::device -d "MPC5604B_CODE_FLASH" -o "512Kx32x1" -a 0x0 0x7ffff&lt;BR /&gt;cmdwin::fl::image -f "C:\\git\\firmware\\build\\BOOT_MPC5604B\\BOOT_MPC5604B_FLASH.mot" -t "Auto Detect" -re on -r 0x0 0x7ffff -oe off&lt;BR /&gt;cmdwin::fl::erase image&lt;BR /&gt; Beginning Operation ... &lt;BR /&gt;------------------------- &lt;BR /&gt;Auto-detection is successful. &lt;BR /&gt; File is of type Motorola S-Record Format. &lt;BR /&gt; &lt;BR /&gt;Performing target initialization ... &lt;BR /&gt;reading SSCM.STATUS ... &lt;BR /&gt;processor in single chip mode. &lt;BR /&gt;searching for boot sectors ... &lt;BR /&gt;found boot sector at 0x0 and entry point at 0xd0. &lt;BR /&gt; Downloading Flash Device Driver ... &lt;BR /&gt; Reading flash ID ...&lt;BR /&gt;Erasing Sector 0x00000000 to 0x00007FFF &lt;BR /&gt;Erasing Sector 0x00008000 to 0x0000BFFF &lt;BR /&gt;Erasing Sector 0x00010000 to 0x00017FFF &lt;BR /&gt; Erasing ...&lt;BR /&gt; Erase Command Succeeded &lt;BR /&gt;cmdwin::fl::write&lt;BR /&gt; Beginning Operation ... &lt;BR /&gt;------------------------- &lt;BR /&gt;Using restricted address range 0x00000000 to 0x0007FFFF &lt;BR /&gt;Programming file C:\git\firmware\build\BOOT_MPC5604B\BOOT_MPC5604B_FLASH.mot &lt;BR /&gt;Auto-detection is successful. &lt;BR /&gt; File is of type Motorola S-Record Format. &lt;BR /&gt; &lt;BR /&gt; Downloading Flash Device Driver ... &lt;BR /&gt; Reading flash ID ...&lt;BR /&gt;Auto-detection is successful. &lt;BR /&gt; File is of type Motorola S-Record Format. &lt;BR /&gt; &lt;BR /&gt;Downloading 0x00000008 bytes to be programmed at 0x00000000 &lt;BR /&gt;Executing program .... &lt;BR /&gt; Program Command Succeeded &lt;BR /&gt;Downloading 0x000000B8 bytes to be programmed at 0x00000010 &lt;BR /&gt;Executing program .... &lt;BR /&gt; Program Command Succeeded &lt;BR /&gt;Downloading 0x00000080 bytes to be programmed at 0x000000D0 &lt;BR /&gt;Executing program .... &lt;BR /&gt; Program Command Succeeded &lt;BR /&gt;Downloading 0x00000194 bytes to be programmed at 0x00000150 &lt;BR /&gt;Executing program .... &lt;BR /&gt; Program Command Succeeded &lt;BR /&gt;Downloading 0x000000F4 bytes to be programmed at 0x00001000 &lt;BR /&gt;Executing program .... &lt;BR /&gt; Program Command Succeeded &lt;BR /&gt;Downloading 0x000000A8 bytes to be programmed at 0x00001100 &lt;BR /&gt;Executing program .... &lt;BR /&gt; Program Command Succeeded &lt;BR /&gt;Downloading 0x00004020 bytes to be programmed at 0x00003000 &lt;BR /&gt;Executing program .... &lt;BR /&gt;Executing program ..... &lt;BR /&gt;Executing program ...... &lt;BR /&gt;Executing program ....... &lt;BR /&gt;Executing program ........ &lt;BR /&gt;Executing program ......... &lt;BR /&gt;Executing program .......... &lt;BR /&gt;Executing program ...........&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;SPAN class="" style="color: #d74444;"&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;It just keeps doing that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I check the memory of the device, I can see it programmed up until 0x00005010, exactly half of the record it was trying to program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is this script stored and how&amp;nbsp;can I modify the behavior of Flash Programmer to get this working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 00:36:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/FlashProgrammer-fails-0x2010-bytes-into-a-0x4020-byte-program-on/m-p/710593#M9263</guid>
      <dc:creator>jonah_ryan-davi</dc:creator>
      <dc:date>2017-09-22T00:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: FlashProgrammer fails 0x2010 bytes into a 0x4020 byte program on MPC5604B</title>
      <link>https://community.nxp.com/t5/MPC5xxx/FlashProgrammer-fails-0x2010-bytes-into-a-0x4020-byte-program-on/m-p/710594#M9264</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;could you:&lt;/P&gt;&lt;P&gt;- tell me which version of CodeWarrior do you use?&lt;/P&gt;&lt;P&gt;- send me the s-record file which causes the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you try to use another s-record file (just default project with endless loop, for example), is it working?&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, 25 Sep 2017 12:48:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/FlashProgrammer-fails-0x2010-bytes-into-a-0x4020-byte-program-on/m-p/710594#M9264</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-09-25T12:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: FlashProgrammer fails 0x2010 bytes into a 0x4020 byte program on MPC5604B</title>
      <link>https://community.nxp.com/t5/MPC5xxx/FlashProgrammer-fails-0x2010-bytes-into-a-0x4020-byte-program-on/m-p/710595#M9265</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;I'm using CW 10.7&amp;nbsp;&lt;SPAN&gt; &lt;/SPAN&gt; Build Id:160721&lt;/P&gt;&lt;P&gt;It doesn't seem to depend on the S-record&amp;nbsp;file, I tried with other files, including the default project with this added to the top of main (to make sure the programmer had enough bytes that it would try to program 0x4020 bytes):&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; table&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4096&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Attached is the file from that project which fails&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be clear, the default project itself works, but the programmer doesn't program any large sections&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 14:30:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/FlashProgrammer-fails-0x2010-bytes-into-a-0x4020-byte-program-on/m-p/710595#M9265</guid>
      <dc:creator>jonah_ryan-davi</dc:creator>
      <dc:date>2017-09-25T14:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: FlashProgrammer fails 0x2010 bytes into a 0x4020 byte program on MPC5604B</title>
      <link>https://community.nxp.com/t5/MPC5xxx/FlashProgrammer-fails-0x2010-bytes-into-a-0x4020-byte-program-on/m-p/710596#M9266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonah,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it seems to be a bug in the Flash Programmer – I’m able to reproduce the behavior when large s-record file is used. I will report it to CodeWarrior team.&lt;/P&gt;&lt;P&gt;As a workaround, I can see that it works if you use “Debug” button to program the project to MCU instead of Flash Programmer. Could you try if this works on your side?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Lukas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 09:42:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/FlashProgrammer-fails-0x2010-bytes-into-a-0x4020-byte-program-on/m-p/710596#M9266</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-09-26T09:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: FlashProgrammer fails 0x2010 bytes into a 0x4020 byte program on MPC5604B</title>
      <link>https://community.nxp.com/t5/MPC5xxx/FlashProgrammer-fails-0x2010-bytes-into-a-0x4020-byte-program-on/m-p/710597#M9267</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;Thanks for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I forgot to mention it works with the Debug option. However in this case we need to flash an s-record with a slight modification, so we will have to find a different workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 13:51:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/FlashProgrammer-fails-0x2010-bytes-into-a-0x4020-byte-program-on/m-p/710597#M9267</guid>
      <dc:creator>jonah_ryan-davi</dc:creator>
      <dc:date>2017-09-26T13:51:11Z</dc:date>
    </item>
  </channel>
</rss>

