<?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: HCS08 and flash access (writing, erasing, protection...)</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-and-flash-access-writing-erasing-protection/m-p/145767#M7260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sort of task has been discussed many times in the forums. Do a search on "bootloader" using the search box at the bottom left of this web page. Also, search for App Note 2295 (type "AN2295" into the Enter Keyword box at the top right of this web page). It covers a serial bootloader, but it's a good place to start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Oct 2009 19:43:24 GMT</pubDate>
    <dc:creator>J2MEJediMaster</dc:creator>
    <dc:date>2009-10-09T19:43:24Z</dc:date>
    <item>
      <title>HCS08 and flash access (writing, erasing, protection...)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-and-flash-access-writing-erasing-protection/m-p/145765#M7258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a mc9s08aw16 HCS08 based MCU.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to program a bootloader and a firmware.&lt;/P&gt;&lt;P&gt;I choose to place the firmware between 0xC000 and 0xEEEE and the bootloader between 0xF000 and 0xFFAF.&lt;/P&gt;&lt;P&gt;I have made a small function which transfert to RAM the code used to write/erase flash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I still not succed in erasing and writing to flash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I program the 0xFFBF byte (NVOPT) with 0xFE so the MCU should be unsecured (programming via Cyclone Pro)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm lost between all the register related to flash.&lt;/P&gt;&lt;P&gt;More precisly with the NVBACKEY registers, KEYACC bit, SEC0 bits...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To sum up, is there anybody who can explain me what I have to do with those register to succeed in my goal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 17:10:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-and-flash-access-writing-erasing-protection/m-p/145765#M7258</guid>
      <dc:creator>vcz</dc:creator>
      <dc:date>2009-10-09T17:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 and flash access (writing, erasing, protection...)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-and-flash-access-writing-erasing-protection/m-p/145766#M7259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I have forgoten to say that I'm using sdcc to cross compil my project....&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 17:12:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-and-flash-access-writing-erasing-protection/m-p/145766#M7259</guid>
      <dc:creator>vcz</dc:creator>
      <dc:date>2009-10-09T17:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 and flash access (writing, erasing, protection...)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-and-flash-access-writing-erasing-protection/m-p/145767#M7260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sort of task has been discussed many times in the forums. Do a search on "bootloader" using the search box at the bottom left of this web page. Also, search for App Note 2295 (type "AN2295" into the Enter Keyword box at the top right of this web page). It covers a serial bootloader, but it's a good place to start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 19:43:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-and-flash-access-writing-erasing-protection/m-p/145767#M7260</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2009-10-09T19:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 and flash access (writing, erasing, protection...)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-and-flash-access-writing-erasing-protection/m-p/145768#M7261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your answer. I already have the AN2295 but I didn't find what I want in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nevertheless, I have re-written my code and now, it works ! I changed the way to execute from the RAM and it's more efficient and easy understanding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, instead of making a routine writing to ram the opcode dynamically, I use a tab with statical opcode in it and then jump to the tab address in ram... (I find this idea in a page of this forum !)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 21:50:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-and-flash-access-writing-erasing-protection/m-p/145768#M7261</guid>
      <dc:creator>vcz</dc:creator>
      <dc:date>2009-10-20T21:50:10Z</dc:date>
    </item>
  </channel>
</rss>

