<?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: Can anyone help with assembler code to program Flash from within the application.</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-anyone-help-with-assembler-code-to-program-Flash-from-within/m-p/455739#M21626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know about the particular application note but usually address is passed in the HX register and data in the A register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(You can also have a look at my &lt;A href="http://aspisys.com/asm8.htm"&gt;ASM8&lt;/A&gt;​​ version inside the ZIP archive file code/lib/flash.sub, or here: &lt;A href="http://aspisys.com/code/hc08/flash.html" title="http://aspisys.com/code/hc08/flash.html"&gt;http://aspisys.com/code/hc08/flash.html&lt;/A&gt;​ to get an idea.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2015 19:32:55 GMT</pubDate>
    <dc:creator>tonyp</dc:creator>
    <dc:date>2015-07-06T19:32:55Z</dc:date>
    <item>
      <title>Can anyone help with assembler code to program Flash from within the application.</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-anyone-help-with-assembler-code-to-program-Flash-from-within/m-p/455738#M21625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help with assembler code to program Flash from within the application. I have used routines from AN3942 and HCS08 reference manual.&amp;nbsp; I have entered sub routines "FlashErase1", "FlashProg1", "DoOnStack", and "SpSub".&amp;nbsp; But I am not sure how to pass the memory address and the data when calling these routines.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 12:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-anyone-help-with-assembler-code-to-program-Flash-from-within/m-p/455738#M21625</guid>
      <dc:creator>cwt</dc:creator>
      <dc:date>2015-07-06T12:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help with assembler code to program Flash from within the application.</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-anyone-help-with-assembler-code-to-program-Flash-from-within/m-p/455739#M21626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know about the particular application note but usually address is passed in the HX register and data in the A register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(You can also have a look at my &lt;A href="http://aspisys.com/asm8.htm"&gt;ASM8&lt;/A&gt;​​ version inside the ZIP archive file code/lib/flash.sub, or here: &lt;A href="http://aspisys.com/code/hc08/flash.html" title="http://aspisys.com/code/hc08/flash.html"&gt;http://aspisys.com/code/hc08/flash.html&lt;/A&gt;​ to get an idea.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 19:32:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-anyone-help-with-assembler-code-to-program-Flash-from-within/m-p/455739#M21626</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2015-07-06T19:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help with assembler code to program Flash from within the application.</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-anyone-help-with-assembler-code-to-program-Flash-from-within/m-p/455740#M21627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tony,&lt;/P&gt;&lt;P&gt;Thanks for the reply. Your 'flash.sub' will take me some time to digest.&amp;nbsp; It looks similar to the App note but more comprehensive.&lt;/P&gt;&lt;P&gt;I tried running mine in CodeWarrior simulator, but it never exits the subroutine running on the stack. I guess this is because the simulator cannot actually simulate the flash memory erase or write.&amp;nbsp; There seams to be some time critical operations (flash clock has limited range) and this probably limits the use of Back Ground Debug operation as well. Any comment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 14:16:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-anyone-help-with-assembler-code-to-program-Flash-from-within/m-p/455740#M21627</guid>
      <dc:creator>cwt</dc:creator>
      <dc:date>2015-07-07T14:16:18Z</dc:date>
    </item>
  </channel>
</rss>

