<?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: nvm sample code</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/nvm-sample-code/m-p/412977#M11644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks, but I'm totally ignorant on C projects in CW.&lt;/P&gt;&lt;P&gt;I write pure assembler and there doesn't seem to be an extension "xx.mcp" for the C project you attached.&lt;/P&gt;&lt;P&gt;As versed with trying to teach me something I won't use, may I please beg your indulgence to attach the disassembly as text?&lt;/P&gt;&lt;P&gt;Thanks, Kevin Sargent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's 6/23 and I still can't figure out how to open the example, let alone compile &amp;amp; disassemble it.&lt;/P&gt;&lt;P&gt;Am I the only assembler writer that can't decipher the nvm register descriptions enough to use them? (Very frustrating)&lt;/P&gt;&lt;P&gt;I've been deciphering good -&amp;gt; obtuse module register descriptions since Z80 &amp;amp; 68000 peripheral chips (back before uP-&amp;gt;uC).&lt;/P&gt;&lt;P&gt;Even a decent overview of nvm archetecture would help a lot (not the flow chart).&amp;nbsp; TNX &amp;lt;&amp;lt;&amp;lt;)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's 6/29 and I'm yet to be convinced this isn't the worst written module behavior description yet.&lt;/P&gt;&lt;P&gt;Parts of AN4570 claim that b7 of the "global address" have to be 1 to hit EEPROM.&lt;/P&gt;&lt;P&gt;Yet there's Nothing in the reference manual to corroborate this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the code snips are written in C code, using library functions.&lt;/P&gt;&lt;P&gt;Who In HELL thinks this is an acceptable tutorial of the modules' behavior??&lt;/P&gt;&lt;P&gt;I'm begining to think nobody can properly code it at assembler level, because they CAN'T.&lt;/P&gt;&lt;P&gt;Sorry, but I've "decoded" bad datasheets before, this is a new low, Very Frustrated.&lt;/P&gt;&lt;P&gt;That this falls prey to the same dearth of response, means I stop any forum use and go upscale...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now 6/30. I found app note AN4347 gives unambiguous examples of direct register values required to erase, write, etc.&lt;/P&gt;&lt;P&gt;Interesting quirks popped up, but I have worked around them. &lt;/P&gt;&lt;P&gt;AN4347 should have a tag for queries on NVM &amp;amp; flash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Jun 2015 17:27:17 GMT</pubDate>
    <dc:creator>CustomSarge</dc:creator>
    <dc:date>2015-06-20T17:27:17Z</dc:date>
    <item>
      <title>nvm sample code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/nvm-sample-code/m-p/412975#M11642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe it's age, but I'm finding the PA4 section on using NVM really confusing.&lt;/P&gt;&lt;P&gt;Anybody got an assembler snippet of erasing &amp;amp; writing then reading 2 bytes from the EEPROM area?&lt;/P&gt;&lt;P&gt;If I become the first, I'll post it.&lt;/P&gt;&lt;P&gt;I've got 12 bytes to save in this project, and EEPROM looks like it's meant for that.&lt;/P&gt;&lt;P&gt;I get the index register part, it's the real addressing of $3100 into a 24 bit "global" address that I don't.&lt;/P&gt;&lt;P&gt;TNX K.Sargent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2015 13:09:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/nvm-sample-code/m-p/412975#M11642</guid>
      <dc:creator>CustomSarge</dc:creator>
      <dc:date>2015-05-31T13:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: nvm sample code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/nvm-sample-code/m-p/412976#M11643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look to the following application note that explains how to use this module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4570.pdf" title="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4570.pdf"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4570.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a S08PT60 flash demo for your reference, the flash/eeprom management method is the same for all 9S08P family. You can use the "Disassemble" option in CodeWarrior to view the generated assembly instructions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Mendoza&lt;/P&gt;&lt;P&gt;Technical Support Engineer&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 17:19:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/nvm-sample-code/m-p/412976#M11643</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2015-06-01T17:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: nvm sample code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/nvm-sample-code/m-p/412977#M11644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks, but I'm totally ignorant on C projects in CW.&lt;/P&gt;&lt;P&gt;I write pure assembler and there doesn't seem to be an extension "xx.mcp" for the C project you attached.&lt;/P&gt;&lt;P&gt;As versed with trying to teach me something I won't use, may I please beg your indulgence to attach the disassembly as text?&lt;/P&gt;&lt;P&gt;Thanks, Kevin Sargent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's 6/23 and I still can't figure out how to open the example, let alone compile &amp;amp; disassemble it.&lt;/P&gt;&lt;P&gt;Am I the only assembler writer that can't decipher the nvm register descriptions enough to use them? (Very frustrating)&lt;/P&gt;&lt;P&gt;I've been deciphering good -&amp;gt; obtuse module register descriptions since Z80 &amp;amp; 68000 peripheral chips (back before uP-&amp;gt;uC).&lt;/P&gt;&lt;P&gt;Even a decent overview of nvm archetecture would help a lot (not the flow chart).&amp;nbsp; TNX &amp;lt;&amp;lt;&amp;lt;)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's 6/29 and I'm yet to be convinced this isn't the worst written module behavior description yet.&lt;/P&gt;&lt;P&gt;Parts of AN4570 claim that b7 of the "global address" have to be 1 to hit EEPROM.&lt;/P&gt;&lt;P&gt;Yet there's Nothing in the reference manual to corroborate this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the code snips are written in C code, using library functions.&lt;/P&gt;&lt;P&gt;Who In HELL thinks this is an acceptable tutorial of the modules' behavior??&lt;/P&gt;&lt;P&gt;I'm begining to think nobody can properly code it at assembler level, because they CAN'T.&lt;/P&gt;&lt;P&gt;Sorry, but I've "decoded" bad datasheets before, this is a new low, Very Frustrated.&lt;/P&gt;&lt;P&gt;That this falls prey to the same dearth of response, means I stop any forum use and go upscale...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now 6/30. I found app note AN4347 gives unambiguous examples of direct register values required to erase, write, etc.&lt;/P&gt;&lt;P&gt;Interesting quirks popped up, but I have worked around them. &lt;/P&gt;&lt;P&gt;AN4347 should have a tag for queries on NVM &amp;amp; flash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 17:27:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/nvm-sample-code/m-p/412977#M11644</guid>
      <dc:creator>CustomSarge</dc:creator>
      <dc:date>2015-06-20T17:27:17Z</dc:date>
    </item>
  </channel>
</rss>

