<?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>8-bit MicrocontrollersのトピックRe: FLBPR in JK3</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/FLBPR-in-JK3/m-p/136610#M4403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The problem is that the FLBPR at 0xFE09 is already defined in MC68HC908JK3.c, so you define the same memory address twice.&lt;BR /&gt;The only reason why you do not see the error when your MyFLBPR definition is after MC68HC908JK3.c in the link order is that in the linker tab, the following two messages are explicitely disabled:&lt;BR /&gt;-WmsgSd1100 -WmsgSd1912&lt;BR /&gt;&lt;BR /&gt;Otherwise you would get an error for this resource conflict too.&lt;BR /&gt;&lt;BR /&gt;Solutions? Hmm. The simplest is to copy MC68HC908JK3.h and MC68HC908JK3.c to your source directory, and to patch them to not define/declare FLBPR.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 May 2006 21:20:05 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2006-05-21T21:20:05Z</dc:date>
    <item>
      <title>FLBPR in JK3</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/FLBPR-in-JK3/m-p/136609#M4402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi for All &lt;/SPAN&gt;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif"&gt;&lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had used EEPROM emulator easy with QT/QY.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With the simple instruction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;volatile const char MyFLBPR[] @0xFFBE = {0xE1};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I enable the write to first page of flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I try to do it with JK3, it don´t work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;volatile const char MyFLBPR[] @0xFE09 = {0x62};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get an error message if it´s placed in main.c:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L1112: The section has segment type NO_INIT (illegal)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I have no error if placed at other .c file, but looking into debugger, at the 0xFE09 I have 0x00.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Creating a section in .prm don´t work too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I try to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FLPBR = 0x62; // it´s declarated in 60hc908jk3.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It return the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C1019: Incompatible type to previous declaration (found 'int', expected 'FLBPRSTR volatile')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What can I do about this ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2006 10:51:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/FLBPR-in-JK3/m-p/136609#M4402</guid>
      <dc:creator>cicero_ribeiro</dc:creator>
      <dc:date>2006-05-20T10:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: FLBPR in JK3</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/FLBPR-in-JK3/m-p/136610#M4403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The problem is that the FLBPR at 0xFE09 is already defined in MC68HC908JK3.c, so you define the same memory address twice.&lt;BR /&gt;The only reason why you do not see the error when your MyFLBPR definition is after MC68HC908JK3.c in the link order is that in the linker tab, the following two messages are explicitely disabled:&lt;BR /&gt;-WmsgSd1100 -WmsgSd1912&lt;BR /&gt;&lt;BR /&gt;Otherwise you would get an error for this resource conflict too.&lt;BR /&gt;&lt;BR /&gt;Solutions? Hmm. The simplest is to copy MC68HC908JK3.h and MC68HC908JK3.c to your source directory, and to patch them to not define/declare FLBPR.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 May 2006 21:20:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/FLBPR-in-JK3/m-p/136610#M4403</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-05-21T21:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: FLBPR in JK3</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/FLBPR-in-JK3/m-p/136611#M4404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Daniel, Thanks ...&lt;BR /&gt;&lt;BR /&gt;I make a little mistake... (???)&lt;BR /&gt;I put the instruction&lt;BR /&gt;&lt;BR /&gt;FLBPR = 0x62;&lt;BR /&gt;&lt;BR /&gt;into main.h to define a byte to write at record of the firmware.&lt;BR /&gt;&lt;BR /&gt;When I try to do it at main.c, into main (), for my surprise, it´s working very well....&lt;BR /&gt;I say 'for my surprise' because it´s writing at execution time into flash address... maibe 0xFE09 is not a flash....&lt;BR /&gt;I tried this because I see into AN2504D from freescale, an API writing at this address in this way.&lt;BR /&gt;&lt;BR /&gt;Can you explain it to us ??&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2006 22:29:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/FLBPR-in-JK3/m-p/136611#M4404</guid>
      <dc:creator>cicero_ribeiro</dc:creator>
      <dc:date>2006-05-22T22:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: FLBPR in JK3</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/FLBPR-in-JK3/m-p/136612#M4405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;You've basically found the answer. In the JK3, the FLBPR is a normal register that must be written from your code as it executes. While in the QT/QY, FLBPR is a flash location that must be programmed as part of programming your firmware.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;In the JK3 spec: "&lt;FONT face="Helvetica"&gt;The FLASH Block Protect Register is implemented as an 8-bit I/O register."&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Helvetica"&gt;&lt;FONT size="2"&gt;In the QT/QY spec: "&lt;FONT face="Helvetica"&gt;The FLASH block protect register is implemented as a byte within the FLASH memory, and therefore can only be written during a programming sequence of the FLASH memory."&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Helvetica"&gt;&lt;FONT face="Helvetica" size="2"&gt;It is easy to miss. It has been known to trip up the best of us.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Helvetica"&gt;&lt;FONT face="Helvetica"&gt;&lt;FONT size="2"&gt;- Rocky&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Message Edited by RockyRoad on &lt;SPAN class="date_text"&gt;05-22-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:11 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 02:01:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/FLBPR-in-JK3/m-p/136612#M4405</guid>
      <dc:creator>RockyRoad</dc:creator>
      <dc:date>2006-05-23T02:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: FLBPR in JK3</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/FLBPR-in-JK3/m-p/136613#M4406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;That´s it.&lt;BR /&gt;Thanks for your explanation RockyRoad.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 05:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/FLBPR-in-JK3/m-p/136613#M4406</guid>
      <dc:creator>cicero_ribeiro</dc:creator>
      <dc:date>2006-05-23T05:11:14Z</dc:date>
    </item>
  </channel>
</rss>

