<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: Regarding .LCF</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-LCF/m-p/378721#M12397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I'm past these questions right now. Were so many questions popping up at my head at that moment. But now I've managed to create a project where the bootloader is run in RAM :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 10:03:38 GMT</pubDate>
    <dc:creator>freakyfreak</dc:creator>
    <dc:date>2015-03-03T10:03:38Z</dc:date>
    <item>
      <title>Regarding .LCF</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-LCF/m-p/378719#M12395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I recently created another thread but that thread was to general. Thus I'm creating a new one with a more "centralized" question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When your project is being built, the file generated contains all the parts that can be found in MEMORY (in LCF file). For instance &lt;EM&gt;resetvector&lt;/EM&gt;, &lt;EM&gt;init&lt;/EM&gt;, &lt;EM&gt;exception_handlers&lt;/EM&gt;, &lt;EM&gt;internal_flash&lt;/EM&gt; and so on. Correct me if I'm wrong here.&lt;/P&gt;&lt;P&gt;Is this generated file a .s19 format?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The internal_flash contains my program code (main and other functions). I assume?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, so if I want to program the flash with a new set of code I will have to erase all parts mentioned before in the flashmemory and then write the new code, starting from the first address which is &lt;EM&gt;resetvector&lt;/EM&gt;. It's not just enough to erase the main program code, right?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ps. I'm not really sure where I should post this subject..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 16:01:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-LCF/m-p/378719#M12395</guid>
      <dc:creator>freakyfreak</dc:creator>
      <dc:date>2015-02-16T16:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding .LCF</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-LCF/m-p/378720#M12396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which chip?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which IDE? What's generating those files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using CodeWarrior then it might be better to post in the forums specific to CW (which I've never used).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This forum is pretty low traffic now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some general answers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Is this generated file a .s19 format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open it in a text editor. If it is readable text and looks like the following then it is S19:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/SREC_%28file_format%29#16-bit_memory_address" title="http://en.wikipedia.org/wiki/SREC_%28file_format%29#16-bit_memory_address"&gt;http://en.wikipedia.org/wiki/SREC_%28file_format%29#16-bit_memory_address&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the Flash is usually divided up into pages, and since you have to erase an entire page at a time, you would normally erase everything (all pages) and then reprogram it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're trying to update a unit "in the field" where it is reprogramming itself, then that gets tricky. You can't have the cpu run in the flash that it is erasing/programming. It has to run in RAM. You're probably not doing that yet, but you will...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 13:28:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-LCF/m-p/378720#M12396</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2015-02-19T13:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding .LCF</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-LCF/m-p/378721#M12397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I'm past these questions right now. Were so many questions popping up at my head at that moment. But now I've managed to create a project where the bootloader is run in RAM :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 10:03:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-LCF/m-p/378721#M12397</guid>
      <dc:creator>freakyfreak</dc:creator>
      <dc:date>2015-03-03T10:03:38Z</dc:date>
    </item>
  </channel>
</rss>

