<?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: Can't download code to the MCU (MCF51JM) in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211707#M10316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try to unsecure your chip? P&amp;amp;E unsecure tool may help.&lt;/P&gt;&lt;P&gt;Erased NVOPT byte (SEC bits&amp;nbsp;= 11) at 0x40F means secured part. While flashing new codes, if reset occurs after mass erase but before writing&amp;nbsp;NVOPT back to unsecured state, then part will be secured.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Aug 2009 13:54:26 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2009-08-30T13:54:26Z</dc:date>
    <item>
      <title>Can't download code to the MCU (MCF51JM)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211706#M10315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everydoy!&lt;/P&gt;&lt;P&gt;I've got a DEMO JM Board wich I was using withou problem till just a few seconds ago. Now I can't download the code to the MCU. The MCU is MCF51JM128 (red daugther card), and I've got no other harware.&lt;/P&gt;&lt;P&gt;I was testing the MSCAN module, writing some code, then downloading it... the I did a few changes to the code and when I went to download it, some error windows appears and this is what they say:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WINDOW TITLE:&lt;/EM&gt; NVM Programming&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MESSAGE:&lt;/EM&gt; The operation has been canceled&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WINDOW TITLE:&lt;/EM&gt; Elf Loader&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MESSAGE:&lt;/EM&gt; Error while writing to 0..200&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Information: No memory at this address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WINDOW TITLE:&lt;/EM&gt; Hi-Wave&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MESSAGE:&lt;/EM&gt; Failed to load &amp;lt;project path&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in the&amp;nbsp; &lt;STRONG&gt;command window&lt;/STRONG&gt; this is what I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;Loading Target ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;IO registers loaded for MCF51JM128 from C:\Archivos de programa\Freescale\CodeWarrior for Microcontrollers V6.1\prog\REG\MCU7003.REG&lt;/SPAN&gt;&lt;BR /&gt;USB-ML-12 detected - Flash Version 5.74&lt;BR /&gt;Frequency change to ~8693077hz.&lt;BR /&gt;Frequency change to ~23906250hz.&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;executing .\cmd\CFV1_BDM_P&amp;amp;E_Multilink_CyclonePro_startup.cmd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;!// At startup the commands written below will be executed&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;Target Ready&lt;BR /&gt;done .\cmd\CFV1_BDM_P&amp;amp;E_Multilink_CyclonePro_startup.cmd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Startup command file correctly executed.&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;executing CFV1_BDM_P&amp;amp;E_Multilink_CyclonePro.hwc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;done CFV1_BDM_P&amp;amp;E_Multilink_CyclonePro.hwc&lt;BR /&gt;&lt;BR /&gt;executing .\cmd\CFV1_BDM_P&amp;amp;E_Multilink_CyclonePro_preload.cmd&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;!// Before load the commands written below will be executed&lt;BR /&gt;Warning - Exception Occured. (PE.34)&lt;BR /&gt;Exception Message :&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;No Link To Target&lt;BR /&gt;done .\cmd\CFV1_BDM_P&amp;amp;E_Multilink_CyclonePro_preload.cmd&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Preload command file correctly executed.&lt;BR /&gt;Warning - Exception Occured. (PE.438)&lt;BR /&gt;Exception Message :&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #c0c0c0;"&gt;Device trimming not successful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Error: No connection read byte memory access.&lt;BR /&gt;FP: No valid FPP file loaded!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;executing .\cmd\CFV1_BDM_P&amp;amp;E_Multilink_CyclonePro_postload.cmd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;!// After load the commands written below will be executed&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;done .\cmd\CFV1_BDM_P&amp;amp;E_Multilink_CyclonePro_postload.cmd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Postload command file correctly executed.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2009 08:47:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211706#M10315</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2009-08-30T08:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can't download code to the MCU (MCF51JM)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211707#M10316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try to unsecure your chip? P&amp;amp;E unsecure tool may help.&lt;/P&gt;&lt;P&gt;Erased NVOPT byte (SEC bits&amp;nbsp;= 11) at 0x40F means secured part. While flashing new codes, if reset occurs after mass erase but before writing&amp;nbsp;NVOPT back to unsecured state, then part will be secured.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2009 13:54:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211707#M10316</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-08-30T13:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can't download code to the MCU (MCF51JM)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211708#M10317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! Thanks for your reply... I was thinking about doing that (unsecure) but I don't know how to do it for the MCF51JM... In Hi-Wave there's not that option (or at least I couldn't find it)... I'm working with Codewarrior v6.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And where can I download the P&amp;amp;E Unsecure tool?... I couldn't find it neither.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 07:53:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211708#M10317</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2009-08-31T07:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't download code to the MCU (MCF51JM)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211709#M10318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've download the UNSECURE CF application from &lt;A href="http://www.pemicro.com/products/product_viewDetails.cfm?product_id=98&amp;amp;CFID=606497&amp;amp;CFTOKEN=5f6f7438bb4c4bb4-6DEF95C5-AAF5-CC19-CFEBF0A3630E6884" rel="nofollow" target="_blank"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I guess it's only for the MCF5213, and mine is MCF51JM... When I press the &lt;STRONG&gt;JTAG Unsecure&lt;/STRONG&gt; button, I get a message that says:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Device not found. Please make sure that JTAGEN=1 and Retry&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And above, where it says &lt;EM&gt;PORT&lt;/EM&gt;, and I press &lt;STRONG&gt;Refresh List&lt;/STRONG&gt;, nothing happens. (As if it couldn't find the board)... But the strange thing is that in Hi-Wave when I enter in &lt;STRONG&gt;CONNECTION&lt;/STRONG&gt;, and press the &lt;STRONG&gt;Refresh List&lt;/STRONG&gt; button, it detects the board...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 09:44:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211709#M10318</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2009-08-31T09:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't download code to the MCU (MCF51JM)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211710#M10319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, UNSECURE CF won't work with V1 Coldfires. I thought P&amp;amp;E have already separate download for V1 unsecure. I have DEMOQE kit, and it includes CF V1 Unsecure utility. I believe this utility also should work with JM. So please try downloading DEMOQE Toolkit. Hope this url should list it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.pemicro.com/support/download_processor.cfm?family=14" rel="nofollow" target="_blank"&gt;http://www.pemicro.com/support/download_processor.cfm?family=14&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 13:12:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211710#M10319</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-08-31T13:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can't download code to the MCU (MCF51JM)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211711#M10320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kef!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You were right, the Unsecure CF V1 application was on DEMOQE toolkit. I ran it now I can load the code again!&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea why did that happend? Why did I need to unsecure the device?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 03:49:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211711#M10320</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2009-09-01T03:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can't download code to the MCU (MCF51JM)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211712#M10321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Noooooooo!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think maybe the debugger/programmer module on the DEMO board it's dead... After last reply, when I succesfully unsecure the JM and manage to re-load the code, I try to program it again and the same thing as before happened... I thought it may need to be unsecure again, so I ran Usecure CF V1 application, it said:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Interface Cable Detected.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Device Unsecure.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then I pressed the reset button on the board and my program (the one inside the MCU, the one that should be erased by unsecuring) was running!!!!! So it didn't unsecure it at all...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I try connecting the BDM interface to other project of mine and couldn't program it neither (till last week I could)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So maybe it's broken... any ideas on what to look for on the boad? everything seems right at simple view...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 07:23:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211712#M10321</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2009-09-01T07:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can't download code to the MCU (MCF51JM)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211713#M10322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Part could get secured for two reasons.&amp;nbsp;1) Either your code specifies NVOPT value with security bits set to secured state, or 2) for some reasons reset happens after mass erase, but before reprogramming security bits in NVOPT to unsecured state.&amp;nbsp;Mass erase sets all flash bits, also security bits to all ones. And&amp;nbsp;security&amp;nbsp;bits&amp;nbsp;both set (11) mean&amp;nbsp;secured state.&lt;/P&gt;&lt;P&gt;To my knowledge,&amp;nbsp;after mass erase and code download, true time debugger tries to reprogram security bits to unsecured state (10). I guess this security bits reprogramming is done only in case your code doesn't specify NVOPT value (byte at 0x40F).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you should make sure your code doesn't specify&amp;nbsp;value for byte at 0x40F(NVOPT), or this value should have least signifiand bits set to 10 for debugging. Probably True Time Simulator could be used to check if your code specifies NVOPT or not. But I'm not sure about detail instructions how to, I must try it later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure why 2nd unsecure attempt&amp;nbsp;failed. BDM pod shouldnt get broken due software. To check it is still alive I would check /RESET and BKGD pins. As I remember (and I could be wrong), JM parts have reset pin always enabled? If so, then when&amp;nbsp;connecting, BKGD and /RESET pins first both must be pulled high. Then debugger should pull BKGD low,&amp;nbsp;then pulse pulling /RESET pin low, then release BKGD. After that you should see some communications on BKGD pin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 11:16:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211713#M10322</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-09-01T11:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't download code to the MCU (MCF51JM)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211714#M10323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for misleading message. I was sure UNsecured state is SEC = 10, like in S12/S12X. On CF V1 it is reversed, SEC = 10 is secured and all other bit combinations - unsecured. So mass erase followed by reset won't make part secured. The only likely way to get secured part when you don't expect it - NVOPT location should be&amp;nbsp;overwritten with something.&amp;nbsp;Didn't you modify *.lcf file so that code starts below 0x410?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried securing my DEMOQE board adding this line to the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;char&amp;nbsp; nvval @ NVOPT = 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But CodeWarrior 6.2 detects when part is secured and&amp;nbsp;dialog box popups asking permission to unsecure: "Device is secure. Erase to unsecure?". Automatic CW unsecure seems to working well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 03:01:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Can-t-download-code-to-the-MCU-MCF51JM/m-p/211714#M10323</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-09-02T03:01:57Z</dc:date>
    </item>
  </channel>
</rss>

