<?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 How to flash MPC56 by Jtag the memory &amp;quot;Data Flash 64K&amp;quot; ? in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/How-to-flash-MPC56-by-Jtag-the-memory-quot-Data-Flash-64K-quot/m-p/1009258#M15159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone know how to flash with Jlink by Jtag the memory "Data Flash 64K" on MPC5602D (or Family MPC)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually I flash my .elf for debug with IC5000 that works well. But it need some licence with WinIdea.&lt;/P&gt;&lt;P&gt;With the Jtag I just add a pull down on Nrest and GND.&lt;/P&gt;&lt;P&gt;SWD is not allow on the Nexus 1, so I use Jtag conf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made some .jlinkscript to flash my µC from my .elf file with 3 parts (converted into .srec with srec_cat.exe):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flash Code 256KB : 0x00000000 - 0x00003FFFF&lt;/P&gt;&lt;P&gt;Data Code 64KB : 0x00800000 - 0x0080FFFF&lt;/P&gt;&lt;P&gt;SRAM 16 KB : 0x40000000 - 0x40003FFF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to flash the full .srec, but when flashing there is error of writing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to flash separate 3 parts. Flash Code and SRAM are well flashed, but not Data Code, so my software running, but with bad config data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the datasheet I see that to Flash the Data Flash the Code Flash must be powered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I try to add the "power on perm" command in my script but it changed nothing.&lt;/P&gt;&lt;P&gt;My µC is already externaly powered, so the option Jlink is up but the ITarget still 0mA (because no consumption on JLink)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried too to unlock memory by this option in my script, that's seems to be the only device working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//unlock flash&lt;BR /&gt;unlock LM3Sxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is one of my script.jlinkscript :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;device MPC5602D&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//configure JTAG&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;si jtag&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//Autodetect IRPre and DRPre&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;JTAGConf -1,-1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//1600Khz is the max for MPC5602D, known using command "hwinfo"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;speed 1600&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;erase&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//load 3 parts&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;loadfile ".\BinToFlash\my_file_3parts.srec"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//load part by part, other option to uncomment&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//loadfile ".\BinToFlash\my_file_part_ONE.srec"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//loadfile ".\BinToFlash\my_file_part_SRAM.srec"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//loadfile ".\BinToFlash\my_file_part_DATA.srec"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//reset delay 5ms, made in other script call by my .bat&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//rx 100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//going out the script to run other script&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;exit&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//g made in other script call by my .bat&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone have some issue or any idea to search for.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Nov 2019 13:20:06 GMT</pubDate>
    <dc:creator>tommelou</dc:creator>
    <dc:date>2019-11-06T13:20:06Z</dc:date>
    <item>
      <title>How to flash MPC56 by Jtag the memory "Data Flash 64K" ?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-flash-MPC56-by-Jtag-the-memory-quot-Data-Flash-64K-quot/m-p/1009258#M15159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone know how to flash with Jlink by Jtag the memory "Data Flash 64K" on MPC5602D (or Family MPC)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually I flash my .elf for debug with IC5000 that works well. But it need some licence with WinIdea.&lt;/P&gt;&lt;P&gt;With the Jtag I just add a pull down on Nrest and GND.&lt;/P&gt;&lt;P&gt;SWD is not allow on the Nexus 1, so I use Jtag conf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made some .jlinkscript to flash my µC from my .elf file with 3 parts (converted into .srec with srec_cat.exe):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flash Code 256KB : 0x00000000 - 0x00003FFFF&lt;/P&gt;&lt;P&gt;Data Code 64KB : 0x00800000 - 0x0080FFFF&lt;/P&gt;&lt;P&gt;SRAM 16 KB : 0x40000000 - 0x40003FFF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to flash the full .srec, but when flashing there is error of writing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to flash separate 3 parts. Flash Code and SRAM are well flashed, but not Data Code, so my software running, but with bad config data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the datasheet I see that to Flash the Data Flash the Code Flash must be powered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I try to add the "power on perm" command in my script but it changed nothing.&lt;/P&gt;&lt;P&gt;My µC is already externaly powered, so the option Jlink is up but the ITarget still 0mA (because no consumption on JLink)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried too to unlock memory by this option in my script, that's seems to be the only device working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//unlock flash&lt;BR /&gt;unlock LM3Sxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is one of my script.jlinkscript :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;device MPC5602D&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//configure JTAG&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;si jtag&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//Autodetect IRPre and DRPre&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;JTAGConf -1,-1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//1600Khz is the max for MPC5602D, known using command "hwinfo"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;speed 1600&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;erase&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//load 3 parts&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;loadfile ".\BinToFlash\my_file_3parts.srec"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//load part by part, other option to uncomment&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//loadfile ".\BinToFlash\my_file_part_ONE.srec"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//loadfile ".\BinToFlash\my_file_part_SRAM.srec"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//loadfile ".\BinToFlash\my_file_part_DATA.srec"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//reset delay 5ms, made in other script call by my .bat&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;//rx 100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//going out the script to run other script&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;exit&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//g made in other script call by my .bat&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone have some issue or any idea to search for.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2019 13:20:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-flash-MPC56-by-Jtag-the-memory-quot-Data-Flash-64K-quot/m-p/1009258#M15159</guid>
      <dc:creator>tommelou</dc:creator>
      <dc:date>2019-11-06T13:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to flash MPC56 by Jtag the memory "Data Flash 64K" ?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-flash-MPC56-by-Jtag-the-memory-quot-Data-Flash-64K-quot/m-p/1009259#M15160</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;our support team is able to help with debug probes from Pemicro and with CodeWarrior or S32 Design Studio. Then we also use tools from Lauterbach. But no one from our team has experience with Jlink. Hopefully some other community members can help.&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, 11 Nov 2019 10:41:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-flash-MPC56-by-Jtag-the-memory-quot-Data-Flash-64K-quot/m-p/1009259#M15160</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-11-11T10:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to flash MPC56 by Jtag the memory "Data Flash 64K" ?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-flash-MPC56-by-Jtag-the-memory-quot-Data-Flash-64K-quot/m-p/1009260#M15161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thank you but I can still debug and flash with IC5000 (only 2 parts). The purpose is to use Jlink only to flash during production process (because we have a lot), and so liberate IC5000 only for a developpement debug use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2019 09:31:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-flash-MPC56-by-Jtag-the-memory-quot-Data-Flash-64K-quot/m-p/1009260#M15161</guid>
      <dc:creator>tommelou</dc:creator>
      <dc:date>2019-11-12T09:31:13Z</dc:date>
    </item>
  </channel>
</rss>

