<?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: Running a coldfire application on internal flash in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213988#M10693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm so sorry but I don't have idea what's happens to your board. Have you tried with another board? Pherhaps is a hardware problem. Are you trying with an example or you are loading your own code? Pherhaps you have a missing pointer which is overwriting a flash section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know. I'm sorry I can't help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Oct 2010 15:09:17 GMT</pubDate>
    <dc:creator>Ardoster</dc:creator>
    <dc:date>2010-10-20T15:09:17Z</dc:date>
    <item>
      <title>Running a coldfire application on internal flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213982#M10687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm starting with Coldfire/CodeWarrior and MQX and I'm having several problems. My hardware and software is a MCF5229, a M5229Demokit, and CodeWarrior Development Studio 7.12. My main question is the next:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I create a whole new project for my hardware, I obtain a minimal application "Hello world". I can run it with no problem when my "Selected target" is "INTERNAL_RAM". My application also run when my target is "CONSOLE_INTERNAL_RAM". But my application doesn't run when my target is "INTERNAL_FLASH". I obtain an message saying "Program "MCF52259_INTERNAL_FLASH.elf" is executing". But my application doen't run, not even with breakpoints.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, could you help me? I suppose the solution is very simple, but after reading a lot of documentation, and searching in the forum, I haven't obtained any solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you in advance.&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Ardoster on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-09-04&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;09:04 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freescale.com%2Ffiles%2Fcommunity_files%2FCWCOMM%2Fmsg3591_ErrorFlash.jpg" rel="nofollow" target="_blank"&gt;ErrorFlash.jpg&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-09-04&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;12:08 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 15:03:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213982#M10687</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2009-09-04T15:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Running a coldfire application on internal flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213983#M10688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ardoster&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologies if I'm telling you something very obvious, but if you're completely new to all this you might not realise...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to 'burn' the program image into the Flash memory before you can run it. It's not sufficient to compile the INTERNAL_FLASH target and then expect to be able to run it - there's the intermediate step of flashing it as well. The sequence is compile-flash-debug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the flash programming step you can use the Flash Programmer from CodeWarrior's tools menu.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 16:14:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213983#M10688</guid>
      <dc:creator>SimonMarsden_de</dc:creator>
      <dc:date>2009-09-04T16:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Running a coldfire application on internal flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213984#M10689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you a lot of. And yes, i'm completely new...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your indications were correct, but I have fixed the problem several minutes before reading your reply. I've solved this "problem" reading a readme_file i've founded in my test project. I copy &amp;amp; paste the solution in this thread thinking in future newbies like me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you a lot of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, the solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//------------------------------------------------------------------------&lt;BR /&gt;//&amp;nbsp; Flashing the code&lt;BR /&gt;//------------------------------------------------------------------------&lt;BR /&gt;1. Select the appropriate project target and build it&lt;BR /&gt;2. Make sure the correct remote connection is selected in the Remote&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Connection debugger panel&lt;BR /&gt;3. In the CodeWarrior IDE menu, select Project &amp;gt; Set Default Project&lt;BR /&gt;&amp;nbsp;&amp;nbsp; and select your project&lt;BR /&gt;4. In the CodeWarrior IDE menu, select Project &amp;gt; Set Default Target&lt;BR /&gt;&amp;nbsp;&amp;nbsp; and select the project target that has the code you want to flash&lt;BR /&gt;5. In the CodeWarrior IDE menu, select Tools &amp;gt; Flash Programmer&lt;BR /&gt;6. Go to the flash programmer Target Configuration panel, click Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Settings&lt;BR /&gt;7. Browse to the &amp;lt;your project location&amp;gt;\cfg sub folder and&lt;BR /&gt;&amp;nbsp;&amp;nbsp; select the flash settings xml file matching your build target&lt;BR /&gt;8. Check that Use Custom Settings checkbox is not selected&lt;BR /&gt;9. Go to the Erase/Blank Check panel, select the All Sectors option and&lt;BR /&gt;&amp;nbsp;&amp;nbsp; click Erase&lt;BR /&gt;10. Go to Program/Verify panel, click Program&lt;BR /&gt;11. Your code should now be flashed&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 16:32:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213984#M10689</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2009-09-04T16:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Running a coldfire application on internal flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213985#M10690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we have to reflash every time we use the demo board?&amp;nbsp; I replugged the usb cable but the board does not run.&amp;nbsp; I assume we only have to flash it once and it will run every time we turn on the board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 01:37:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213985#M10690</guid>
      <dc:creator>FWFan</dc:creator>
      <dc:date>2010-10-14T01:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Running a coldfire application on internal flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213986#M10691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you completely sure you are loading your code into intern Flash and not in RAM??? Probably you are wrong and you are loading your code into RAM. If this is not your case, I don't know what to say you. :smileysad:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&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>Thu, 14 Oct 2010 01:47:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213986#M10691</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2010-10-14T01:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Running a coldfire application on internal flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213987#M10692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ardoster,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed the steps shown above.&amp;nbsp; I used the Internal_Flash target.&amp;nbsp; Is there something else I am missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 07:21:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213987#M10692</guid>
      <dc:creator>FWFan</dc:creator>
      <dc:date>2010-10-20T07:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Running a coldfire application on internal flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213988#M10693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm so sorry but I don't have idea what's happens to your board. Have you tried with another board? Pherhaps is a hardware problem. Are you trying with an example or you are loading your own code? Pherhaps you have a missing pointer which is overwriting a flash section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know. I'm sorry I can't help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 15:09:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213988#M10693</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2010-10-20T15:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Running a coldfire application on internal flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213989#M10694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ardoster,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using my own code.&amp;nbsp; What do you mean by a missing pointer?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 21:54:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213989#M10694</guid>
      <dc:creator>FWFan</dc:creator>
      <dc:date>2010-10-20T21:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Running a coldfire application on internal flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213990#M10695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean that pherhaps in your code, you are overwriting accidentally a Flash section with necessary code to boot the system. I would try before with an example. If with an example works correctly, the problem is your code. If not, there's a problem in your board, or there's something you are not doing correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this and tell me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 22:19:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Running-a-coldfire-application-on-internal-flash/m-p/213990#M10695</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2010-10-20T22:19:16Z</dc:date>
    </item>
  </channel>
</rss>

