<?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>CodeWarrior for MCUのトピックRe: HCS12 Bootloader problem</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193885#M7066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I opened AN3275 pdf and found that EEPROM is expected to be at 0x2000! You have it 0x400. Also, since there's dedicated EEPROM menu, I'm not sure if this bootloader is able to program common flash+EEPROM S19 file, but I didn't read whole&amp;nbsp;AN, maybe it's possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2012 21:36:01 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2012-01-11T21:36:01Z</dc:date>
    <item>
      <title>HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193878#M7059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with&amp;nbsp;MC9S12A256B and CW 3.1, and&amp;nbsp;I'm using bootloader from AN3275&lt;/P&gt;&lt;P&gt;The problem is that when I bootload my app (send .s19 via HyperTerminal) the reset vector is erased, inside address 0xFFFE I see 0x0000. So neither the bootloader nor the app runs, unless I manually set the PC = 0xF0C0 (Bootloader reset vector address). The strange thing is that all the other vectors (PLL, TIMER. COP, etc) are correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try with a smallest app, wich doesn't use EEPROM variables and it worked fine, so I guess the problem is somewhere there. I've notice that when I've got a constant variable inside EEPROM page the bootloading process erase the reset vector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've define EEPROM segment as shown&amp;nbsp;&lt;SPAN&gt;and then place variables using &lt;STRONG&gt;#pragma CONST_SEG&amp;nbsp;&lt;SPAN&gt;EEPROM_DATA_PAGE&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SEGMENTS&amp;nbsp;&amp;nbsp;&amp;nbsp; PAGE_EEPROM = READ_ONLY&amp;nbsp; 0x0400 TO 0x0FFF;END

PLACEMENT
&amp;nbsp;&amp;nbsp;&amp;nbsp; EEPROM_DATA_PAGE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PAGE_EEPROM;
END&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;ONLY&lt;/STRONG&gt; diference with the working app and the one that doesn't worksis that one puts variables inside EEPROM_DATA_PAGE and the other does not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could possibly be happening?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: If you need the &lt;EM&gt;.s19&lt;/EM&gt; file or the complete &lt;EM&gt;.prm&lt;/EM&gt; file ask, and I'll post it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:48:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193878#M7059</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2020-10-29T09:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193879#M7060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can&amp;nbsp;I get the .prm, .map and .s19 files for both working and non working case please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 17:51:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193879#M7060</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-01-04T17:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193880#M7061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course you can!! I'll make a rar file and upload it to Megaupload. I think that's better than posting the whole code here. It would be unreadable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the link:&amp;nbsp;&lt;A href="http://www.megaupload.com/?d=H71D3FF7" rel="nofollow" target="_self"&gt;.MAP .s19 .PRM files&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If for some reason you can't download it, I'll upload them to a web-site I'm working on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The bootloader code is the one from AN3275. It's untouched!&lt;/SPAN&gt;&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>Wed, 04 Jan 2012 20:01:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193880#M7061</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2012-01-04T20:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193881#M7062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh! How stupid am I? I forget I can attach a file here...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 02:23:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193881#M7062</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2012-01-05T02:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193882#M7063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any clues here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 21:14:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193882#M7063</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2012-01-10T21:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193883#M7064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I took a quick look at the provided files.&lt;/P&gt;&lt;P&gt;Then look OK from a linker perspective. Also reset vector is correctly initialized after I load them in the simulator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not have the appropriate HW available to be able to test what&amp;nbsp;is happening when downloading the .s19 files in real HW..&lt;/P&gt;&lt;P&gt;There might be a problem with flash programmer some how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 2 things you could try (from my perspective):&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Try to download the .s19 with CodeWarrior HC12 V5.1 (Problem may have been fixed in&amp;nbsp;the mean time).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You do not need to import the whole project in the IDE. Just start Hi/WAVE and try to download from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; there after you have opened the project.ini configuration file.&lt;/P&gt;&lt;P&gt;&amp;nbsp; - Submit a service request to get a support engineer to run some test son real HW.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Note that they might check on the latest release of the software as well. There will be no update to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CodeWarrior V3.1 any more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 15:46:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193883#M7064</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-01-11T15:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193884#M7065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response CrasyCat!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think is a problem related to CodeWarrior? I don't know much, but I don't think that's the problem. Please excuse me if I question what you suggest, it's because my lack of knowledge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loading both apps with HiWave works fine, the problem is when I try to load them sending the .s19 to the bootloader, via RS232.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was thinking that it could be some "error" on the .prm files or something like that.&amp;nbsp;&lt;/SPAN&gt;Or may be I should change something in the bootloader.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try to make it more detailed:&lt;/P&gt;&lt;P&gt;I've got the 3 apps:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;1- Bootloader (the untouch code from AN3275)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;2- My App without EEPROM variables @0x0400 (the "&lt;EM&gt;working&lt;/EM&gt;" version)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;3- My App with EEPROM variables @0x0400 (the "&lt;EM&gt;not working&lt;/EM&gt;" version)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;If I load &lt;STRONG&gt;any&lt;/STRONG&gt; of those 3 apps with HiWave, each app works great.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;Now, I only load the bootloader with HiWave. Enter bootloading mode, send the "working" version .s19 via RS232. It works great! Reset vector points to the bootloader, and there, it decides to execute the bootloader or jump to my app.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;But, if I enter bootloading mode and send the "not working" version .s19 via RS232, it wouldn't work beacuse reset vector points to nothing (0x0000) If, when debbuging, I manually set the Program Counter to the Bootloader address (the value that should be at the reset vector) it works fine, and as before, the bootloader decide what to execute.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;Three things to take note:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;&amp;nbsp; &amp;nbsp;+ When reset vector points to nothing, &lt;STRONG&gt;all&lt;/STRONG&gt; the others vector points to where they should. I found that strange beacuse, if there were some memory overlapping, the others vector wouldn't be pointing to their respective routines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;+ I needed to compile the bootloader using CW v4.6 because inside its .prm file, it set a segment as READ_WRITE and loads code there (the one to be executeted in RAM), and CW 3.1 don't allow a READ_WRITE attribute for a CODE_SEGMENT.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;+ Why when a variable is defined in 0x0400 (EEPROM) the bootloader erase the reset vector? Because that seems to be the problem. I'll attach the AN3275 bootloader code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;&lt;SPAN&gt;Thanks for taking the time to read it!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 20:44:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193884#M7065</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2012-01-11T20:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193885#M7066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I opened AN3275 pdf and found that EEPROM is expected to be at 0x2000! You have it 0x400. Also, since there's dedicated EEPROM menu, I'm not sure if this bootloader is able to program common flash+EEPROM S19 file, but I didn't read whole&amp;nbsp;AN, maybe it's possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 21:36:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193885#M7066</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-01-11T21:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193886#M7067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kef!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I've already read about how the AN3275 re allocate the memory map, but it also says that:&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;In user’s code, registers, RAM, and EEPROM start addresses may be remapped to wherever the user may&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;see fit.&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also try putting EEPROM at that address (0x2000), and the same thing happend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About the dedicated EEPROM menu, I think, maybe the problem is there... I initialize the EEPROM variables, perhaps that's causing the problem. To initialize them I do as follow:&lt;/P&gt;&lt;PRE&gt;#pragma CONST_SEG EEPROM_DATA_PAGE  const byte EEPROM_MSJ_PREGRABADO_1[EEPROMsize_MSJ_PREGRABADO]={"MENSAJE 1"};#pragma CONST_SEG DEFAULT&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Note: I post the code because maybe you find something odd there&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try without initialization... I think I've already try it, but it's worth trying again.&lt;/P&gt;&lt;P&gt;By doing so, the bootloader won't need to erase/write EEPROM, rigth? If so, no EEPROM is touch and this issue about the dedicated EEPROM menu would be dismissed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:48:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193886#M7067</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2020-10-29T09:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193887#M7068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it does the same if no init is done:&lt;/P&gt;&lt;PRE&gt;#pragma CONST_SEG EEPROM_DATA_PAGE  const byte EEPROM_MSJ_PREGRABADO_1[EEPROMsize_MSJ_PREGRABADO];#pragma CONST_SEG DEFAULT&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's driving me crazy! What's doing the bootloader??? I don't understad much about linkers and compilers, but how can this definition interfere with the bootloading process?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I want to do is to stablish that at some defined address (in EEPROM), there is a certain amout of bytes associated to EEPROM_MSJ_PREGRABADO_1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I can do it like this:&lt;/P&gt;&lt;PRE&gt;#define EEPROM_MSJ_PREGRABADO_address      0x0400#define EEPROM_MSJ_PREGRABADO_size           EEPROMsize_MSJ_PREGRABADO&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;And then when I want to access that variable, just do a cast like this:&lt;/P&gt;&lt;PRE&gt;EEPROM_ptr = (byte*) EEPROM_MSJ_PREGRABADO_address;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done this in previous projects, before I learn how to use #pragmas and how to define segments in .prm file.&lt;/P&gt;&lt;P&gt;Besides, if I do it like I used to, I need to keep track of addresses, sizes, and alignment. Be defining a variable, and having always sizes that have modulo 4 equal 0 (%4 =0) the problem solves it self.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this information can help solving this issue!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:48:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193887#M7068</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2020-10-29T09:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193888#M7069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="lia-message-body lia-component-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;#pragma CONST_SEG EEPROM_DATA_PAGE&lt;BR /&gt;&amp;nbsp; const byte EEPROM_MSJ_PREGRABADO_1[EEPROMsize_MSJ_PREGRABADO]​;&lt;BR /&gt;#pragma CONST_SEG DEFAULT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;^^ It won't remove EEPROM addresses from S19 file if EEPROM_DATA_PAGE is defined with READ_ONLY in PRM file. Try changing EEPROM_DATA_PAGE segment definition from READ_ONLY to NO_INIT in PRM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively you can&amp;nbsp;edit BBL file to remove EEPROM addresses from S19 file or to put them&amp;nbsp;to eeprom.S19 or other file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 13:34:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193888#M7069</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-01-12T13:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193889#M7070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And that solve the problem!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much kef! Thak you!&amp;nbsp;&lt;SPAN&gt;Thak you!&amp;nbsp;&lt;SPAN&gt;Thak you!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I'd like to go a little bit further now...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;1- Do you know why that happend?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;2- Can you explain me a little mor about the NO_INIT definition? It doesn't matter if it is READ_WRITE or a READ_ONLY segment? This is only applyable to DATA segements, rigth?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 01:15:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193889#M7070</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2012-01-13T01:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193890#M7071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case you don't specify initializer for object allocated in&amp;nbsp;READ_ONLY segment, object is initialized with&amp;nbsp;zeros and S19 file includes S-record(s) for EEPROM data. NO_INIT makes&amp;nbsp;object not initialized.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 03:50:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193890#M7071</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-01-13T03:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 Bootloader problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193891#M7072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I can see that EEPROM is not initialized, and that's perfect!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't know about it, everytime I worked with EEPROM I've never used NO_INIT, so all variables were initialized to 0x00, and I've to declare them (manually) as 0xFF so EEPROM always begin erased. Now I don't need to do that any more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks one more time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 21:29:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HCS12-Bootloader-problem/m-p/193891#M7072</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2012-01-13T21:29:44Z</dc:date>
    </item>
  </channel>
</rss>

