<?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: How to make BDM programmer not to overwrite sections of Flash memory in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-make-BDM-programmer-not-to-overwrite-sections-of-Flash/m-p/165110#M10374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My solution is to concatenate the two S19 files into one (after manually editing out the first's S9 record).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Nov 2010 01:22:29 GMT</pubDate>
    <dc:creator>tonyp</dc:creator>
    <dc:date>2010-11-25T01:22:29Z</dc:date>
    <item>
      <title>How to make BDM programmer not to overwrite sections of Flash memory</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-make-BDM-programmer-not-to-overwrite-sections-of-Flash/m-p/165109#M10373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have my bootloader code from E000 to FFFF. Although I have protected this area in my application code as well, however whenever I try to Program my application code through BDM, it erases my Bootloader code as well. And my application code can not work with no bootloader code into Flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My bootloader code and Application code are two seperate programs and I do not want to program my application code through my bootloader code everytinme as this stage of development.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, can we protect certain Flash areas not to be overwritten through BDM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 01:08:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-make-BDM-programmer-not-to-overwrite-sections-of-Flash/m-p/165109#M10373</guid>
      <dc:creator>Punit</dc:creator>
      <dc:date>2010-11-25T01:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to make BDM programmer not to overwrite sections of Flash memory</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-make-BDM-programmer-not-to-overwrite-sections-of-Flash/m-p/165110#M10374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My solution is to concatenate the two S19 files into one (after manually editing out the first's S9 record).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 01:22:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-make-BDM-programmer-not-to-overwrite-sections-of-Flash/m-p/165110#M10374</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2010-11-25T01:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to make BDM programmer not to overwrite sections of Flash memory</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-make-BDM-programmer-not-to-overwrite-sections-of-Flash/m-p/165111#M10375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I encountered this as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To preserve my bootloader code, I did this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program application code (clicking on Debug in CodeWarrior) as normal.&amp;nbsp; This first time, it will erase all of the flash as you mentioned.&amp;nbsp; When in the True-Time Simulator window,&amp;nbsp;click 'MultilinkCyclonePro' at the top of the window and then click 'AdvancedProgramming/Debug options...'&amp;nbsp;from the list shown.&amp;nbsp; In the section that states 'Preserve this memory range' type in the range that you want to preserve the next time you program your application (E000 to FFFF).&amp;nbsp; Then select 'Done' and close the True-Time Simulator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, open your bootloader and program it as normal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, program the application code again.&amp;nbsp; It should now skip the range you have selected to preserve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should only have to do this once.&amp;nbsp; The range should stay set on subsequent programmings of your application.&amp;nbsp;&amp;nbsp;It appears to save the options in an initialization&amp;nbsp;file in my project called 'BDM_P&amp;amp;E_Multilink_CyclonePro.ini'.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rob&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 23:18:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-make-BDM-programmer-not-to-overwrite-sections-of-Flash/m-p/165111#M10375</guid>
      <dc:creator>AppliedRob</dc:creator>
      <dc:date>2010-12-03T23:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to make BDM programmer not to overwrite sections of Flash memory</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-make-BDM-programmer-not-to-overwrite-sections-of-Flash/m-p/165112#M10376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. You can include bootloader S-records in your application code adding this line to PRM file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HEXFILE bootloader.s19&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This makes *.abs (ELF) file including all the code, both application to be debugged adn bootloader. No need to save/restore bootloader part in flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. You can&amp;nbsp;make CW outputing two variants of S records, full file and only application's S-records. To do so you need to edit burner&amp;nbsp;file (*.bbl). For nonbanked application with bootloader at top of flash it could look as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OPENFILE "%ABS_FILE%.s19"&lt;BR /&gt;format=motorola&lt;BR /&gt;busWidth=1&lt;BR /&gt;origin=0&lt;BR /&gt;len=0xF000&lt;BR /&gt;destination=0&lt;BR /&gt;SRECORD=Sx&lt;BR /&gt;SENDBYTE 1 "%ABS_FILE%"&lt;BR /&gt;CLOSE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OPENFILE "%ABS_FILE%of.s19"&lt;BR /&gt;format=motorola&lt;BR /&gt;busWidth=1&lt;BR /&gt;origin=0&lt;BR /&gt;len=0x1000000&lt;BR /&gt;destination=0&lt;BR /&gt;SRECORD=Sx&lt;BR /&gt;SENDBYTE 1 "%ABS_FILE%"&lt;BR /&gt;CLOSE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should generate two *.s19 files, one with flash addresses from 0 to 0xEFFF (see len=0xF000) and the second one *of.s19 including all codes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Dec 2010 20:13:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-make-BDM-programmer-not-to-overwrite-sections-of-Flash/m-p/165112#M10376</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-12-04T20:13:35Z</dc:date>
    </item>
  </channel>
</rss>

