<?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: Coldfire debugging but do not erase all memory before writing code.. in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Coldfire-debugging-but-do-not-erase-all-memory-before-writing/m-p/506501#M12833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ssinfod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the following post created by our colleague Erich Styger might be helpful for you, it explains how to preserve a range of memory using the P&amp;amp;E advanced programming options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/04/27/programming-part-of-flash/" title="http://mcuoneclipse.com/2012/04/27/programming-part-of-flash/"&gt;Programming part of flash | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Mendoza&lt;/P&gt;&lt;P&gt;Technical Support Engineer&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2016 23:10:17 GMT</pubDate>
    <dc:creator>Carlos_Mendoza</dc:creator>
    <dc:date>2016-03-09T23:10:17Z</dc:date>
    <item>
      <title>Coldfire debugging but do not erase all memory before writing code..</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Coldfire-debugging-but-do-not-erase-all-memory-before-writing/m-p/506499#M12831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the Coldfire 52233 MCU with uTasker RTOS and CodeWarrior 10.5.&lt;/P&gt;&lt;P&gt;This MCU has 256K of Flash. I'm using the first 128K for code and the other 128K for webpages and data.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now, every time I start the debugger in CodeWarrior all the 256K of Flash is erased and I have to reload my webpages separately since they are not part of the code.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to erase and load only the first 128K of Flash when I use the debugger in CodeWarrior ?&lt;/P&gt;&lt;P&gt;I think I have to change the "MCF52233_utasker.lcf" file but I am not sure how to change it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the content of my file:&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;MCF52233_utasker.lcf #/* # * File:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; M52235EVB_FLASH.lcf # * Purpose:&amp;nbsp;&amp;nbsp;&amp;nbsp; Linker file for the M52235EVB # * #&amp;nbsp; NOTE: The debugger uses the Illegal Instruction Vector to stop. #&amp;nbsp; A small subroutine is written at the location VBR+0x408-VBR+0x40B #&amp;nbsp; to handle the exception.&amp;nbsp; The Illegal Instruction Vector in #&amp;nbsp; the the vector table at VBR+0x10 is then pointed to it.&amp;nbsp; When the #&amp;nbsp; debugger encounters an illegal instruction, it jumps to this&amp;nbsp; #&amp;nbsp; subroutine, which ends with an RTE, then exits. #&amp;nbsp; Do not overwrite this area of memory otherwise the debugger may not&amp;nbsp; #&amp;nbsp; exit properly. # */&amp;nbsp;&amp;nbsp; MEMORY { &amp;nbsp;&amp;nbsp;&amp;nbsp; flash1&amp;nbsp; (RX)&amp;nbsp;&amp;nbsp; : ORIGIN = 0x00000000, LENGTH = 0x000400 &amp;nbsp;&amp;nbsp;&amp;nbsp; flashconfig&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp;&amp;nbsp; : ORIGIN = 0x00000400, LENGTH = 0x00000018&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; flash2&amp;nbsp; (RX)&amp;nbsp;&amp;nbsp; : ORIGIN = 0x00000420, LENGTH = 0x003FBE0 &amp;nbsp; vectorram(RWX) : ORIGIN = 0x20000000, LENGTH = 0x00000400 &amp;nbsp; sram (RWX)&amp;nbsp; : ORIGIN = 0x20000400, LENGTH = 0x00007C00 &amp;nbsp; ipsbar&amp;nbsp; (RWX)&amp;nbsp; : ORIGIN = 0x40000000, LENGTH = 0x0 }&amp;nbsp;&amp;nbsp; SECTIONS&amp;nbsp; { &amp;nbsp; .ipsbar : {} &amp;gt; ipsbar &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; .flash1 : &amp;nbsp; { &amp;nbsp; startup_s.obj (.text) &amp;nbsp; .&amp;nbsp;&amp;nbsp; = ALIGN(0x10);&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;gt; flash1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; .flashconfig : &amp;nbsp; { &amp;nbsp; flash_config_s.obj (.text) &amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;gt; flashconfig&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; .flash2 : &amp;nbsp; { &amp;nbsp; .&amp;nbsp;&amp;nbsp; = ALIGN(0x10); &amp;nbsp; *(.text) &amp;nbsp; .&amp;nbsp;&amp;nbsp; = ALIGN(0x10);&amp;nbsp;&amp;nbsp; &amp;nbsp; *(.rodata) &amp;nbsp; ___DATA_ROM&amp;nbsp;&amp;nbsp; = .; &amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;gt; flash2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; .data : AT(___DATA_ROM)&amp;nbsp; &amp;nbsp; { &amp;nbsp; ___DATA_RAM&amp;nbsp;&amp;nbsp;&amp;nbsp; = . ;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.exception) &amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ALIGN(0x10); &amp;nbsp; __exception_table_start__ = .; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTION &amp;nbsp; __exception_table_end__&amp;nbsp;&amp;nbsp; = .;&amp;nbsp;&amp;nbsp; &amp;nbsp; ___sinit__&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = .; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATICINIT&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.data) &amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ALIGN (0x10); &amp;nbsp; ___DATA_END&amp;nbsp;&amp;nbsp;&amp;nbsp; = .;&amp;nbsp;&amp;nbsp; &amp;nbsp; __START_SDATA&amp;nbsp; = .; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.sdata) &amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ALIGN (0x10); &amp;nbsp; __END_SDATA&amp;nbsp;&amp;nbsp;&amp;nbsp; = .;&amp;nbsp;&amp;nbsp; &amp;nbsp; __SDA_BASE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = .; &amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ALIGN(0x10); &amp;nbsp; } &amp;gt; sram&amp;nbsp;&amp;nbsp; &amp;nbsp; .bss : &amp;nbsp; { &amp;nbsp; . = ALIGN(0x10); &amp;nbsp; __START_SBSS = .; &amp;nbsp; *(.sbss) &amp;nbsp; *(SCOMMON) &amp;nbsp; __END_SBSS&amp;nbsp;&amp;nbsp; = .;&amp;nbsp;&amp;nbsp; &amp;nbsp; . = ALIGN(0x10); &amp;nbsp; __START_BSS&amp;nbsp; = .; &amp;nbsp; *(.bss) &amp;nbsp; *(COMMON) &amp;nbsp; __END_BSS&amp;nbsp;&amp;nbsp;&amp;nbsp; = .; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___BSS_START = __START_SBSS; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___BSS_END&amp;nbsp;&amp;nbsp; = __END_BSS; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(0x10);&amp;nbsp;&amp;nbsp; &amp;nbsp; } &amp;gt;&amp;gt; sram&amp;nbsp;&amp;nbsp; &amp;nbsp; ___FLASH = ADDR(.flash1); &amp;nbsp; ___FLASH_SIZE = 0x00040000; &amp;nbsp; ___SRAM = 0x20000000; &amp;nbsp; ___SRAM_SIZE = 0x00008000;&amp;nbsp;&amp;nbsp; &amp;nbsp; ___VECTOR_RAM = ___SRAM; &amp;nbsp; ___IPSBAR = ADDR(.ipsbar);&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; __S_romp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ___SP_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x1000; &amp;nbsp; ___HEAP_START = .; &amp;nbsp; ___HEAP_END = ___SRAM + ___SRAM_SIZE - ___SP_SIZE; &amp;nbsp; ___SP_END = ___HEAP_END; &amp;nbsp; ___SP_INIT = ___SP_END + ___SP_SIZE; &amp;nbsp; ___PC_INIT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ___FLASH + 0x8;&amp;nbsp;&amp;nbsp; &amp;nbsp; ___heap_addr = ___HEAP_START; &amp;nbsp; ___heap_size = ___HEAP_END - ___HEAP_START ; &amp;nbsp; __SP_INIT = ___SP_INIT; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time,&lt;/P&gt;&lt;P&gt;ssinfod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 04:19:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Coldfire-debugging-but-do-not-erase-all-memory-before-writing/m-p/506499#M12831</guid>
      <dc:creator>ssinfod</dc:creator>
      <dc:date>2016-03-04T04:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire debugging but do not erase all memory before writing code..</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Coldfire-debugging-but-do-not-erase-all-memory-before-writing/m-p/506500#M12832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 17:01:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Coldfire-debugging-but-do-not-erase-all-memory-before-writing/m-p/506500#M12832</guid>
      <dc:creator>ssinfod</dc:creator>
      <dc:date>2016-03-08T17:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire debugging but do not erase all memory before writing code..</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Coldfire-debugging-but-do-not-erase-all-memory-before-writing/m-p/506501#M12833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ssinfod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the following post created by our colleague Erich Styger might be helpful for you, it explains how to preserve a range of memory using the P&amp;amp;E advanced programming options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/04/27/programming-part-of-flash/" title="http://mcuoneclipse.com/2012/04/27/programming-part-of-flash/"&gt;Programming part of flash | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Mendoza&lt;/P&gt;&lt;P&gt;Technical Support Engineer&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 23:10:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Coldfire-debugging-but-do-not-erase-all-memory-before-writing/m-p/506501#M12833</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2016-03-09T23:10:17Z</dc:date>
    </item>
  </channel>
</rss>

