<?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>topic Re: Kinetis K20 FlexNVM Read Issue in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-FlexNVM-Read-Issue/m-p/223816#M4209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should have mentioned, I'm also using the flexnvm for EEPROM.&amp;nbsp; I have it partitioned as 224K Data / 32K EEPROM.&amp;nbsp; So you will see in the registers that the bad read has the DEPART and EESIZE set different than the good read registers.&amp;nbsp; This is just because the bad registers were read before my EEPROM initialization.&amp;nbsp; However, like I said, I can restart as many times as I want, and it will not work.&amp;nbsp; So the flash partition doesn't seem to have any affect on this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Mar 2013 19:41:13 GMT</pubDate>
    <dc:creator>jsteve17</dc:creator>
    <dc:date>2013-03-13T19:41:13Z</dc:date>
    <item>
      <title>Kinetis K20 FlexNVM Read Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-FlexNVM-Read-Issue/m-p/223815#M4208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an application running on a Kinetis K20 (MK20DX256VLQ10), with MQX 4.0, compiled with CW 10.3.&amp;nbsp; I have a weird issue with reading the data flash immediately after programming a virgin device.&amp;nbsp; To re-create, I do a full erase of the chip, program my application and data (which goes in the dataflash @ 0x10000000), then execute.&amp;nbsp; When I try to read the data flash I get a bus fault and am returned 0xFF for all values.&amp;nbsp; It doesn't matter how many times I reset the controller, it always fails.&amp;nbsp; However, all I have to do is stop the debugger and start a new debug session, and it magically works from there on out.&amp;nbsp; This is also true if I program the device and then run stand-alone.&amp;nbsp; If I program a virgin device and then try to power it up, the reads don't work.&amp;nbsp; I know this, because my graphics for the display are held in the data flash, so nothing appears on the screen when the reads aren't working.&amp;nbsp; However, I reconnect to the J-Link and reprogram, and everything runs fine from there on out.&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have dumped the registers in both cases, and don't see anything that could explain this.&amp;nbsp; I did notice that the flash bank control registers (FMC_PFB0CR &amp;amp; FMC_PFB1CR) are set to 0x3002001F on the first program attempt, and then 0x30020000 after I stop and restart the debugger.&amp;nbsp; So, I'm wondering what the debugger is doing that is magically solving this issue.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a dump of the register contents of both a failed flash read and a good flash read.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337631"&gt;bad_read.regs.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337631"&gt;good_read.regs.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 19:34:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-FlexNVM-Read-Issue/m-p/223815#M4208</guid>
      <dc:creator>jsteve17</dc:creator>
      <dc:date>2013-03-13T19:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K20 FlexNVM Read Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-FlexNVM-Read-Issue/m-p/223816#M4209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should have mentioned, I'm also using the flexnvm for EEPROM.&amp;nbsp; I have it partitioned as 224K Data / 32K EEPROM.&amp;nbsp; So you will see in the registers that the bad read has the DEPART and EESIZE set different than the good read registers.&amp;nbsp; This is just because the bad registers were read before my EEPROM initialization.&amp;nbsp; However, like I said, I can restart as many times as I want, and it will not work.&amp;nbsp; So the flash partition doesn't seem to have any affect on this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 19:41:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-FlexNVM-Read-Issue/m-p/223816#M4209</guid>
      <dc:creator>jsteve17</dc:creator>
      <dc:date>2013-03-13T19:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K20 FlexNVM Read Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-FlexNVM-Read-Issue/m-p/223817#M4210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't realize that partitioning the FlexNVM did a full erase of the Flex flash.&amp;nbsp; So when I was restarting my debugger, it was reloading the contents, and since it was already partitioned, worked from there on out.&amp;nbsp; So, the solution is to program the partition size using the FCCOB registers with the production programmer, and then load the application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 20:03:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-FlexNVM-Read-Issue/m-p/223817#M4210</guid>
      <dc:creator>jsteve17</dc:creator>
      <dc:date>2013-03-14T20:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K20 FlexNVM Read Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-FlexNVM-Read-Issue/m-p/223818#M4211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mind contributing - or do you know of any - example code that does the program partition. I'm struggling with it, getting an ACCERR. I think it is because I'm not erasing successfully before trying to partition. DPART is 0xb instead of 0xf even after I execute a block erase on the data flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 13:27:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-FlexNVM-Read-Issue/m-p/223818#M4211</guid>
      <dc:creator>rogerfl</dc:creator>
      <dc:date>2013-10-11T13:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K20 FlexNVM Read Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-FlexNVM-Read-Issue/m-p/223819#M4212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am working on the same issue and i need some advice. &lt;BR /&gt;1. Please how did you programmed Data Flash &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(the dataflash @ 0x10000000)&lt;/SPAN&gt; from the workspace or project? I would like to save to Data Flash some pictures for LCD.&lt;BR /&gt;2. How is it possible at program runtime read and write to Data Flash? In other half of Data Flash i need to save at runtime a big amout of data. In flashx driver of MQX is possible &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;just to open a "flashx:bank0" or "flashx:flexram0" but there is no possibility to open FlexNVM (also Data Flash).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have same MXQ4.0 and same CW10.3. I am just working with Kinetis K40 with 256kB FlexNVM (Data Flash).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 10:21:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K20-FlexNVM-Read-Issue/m-p/223819#M4212</guid>
      <dc:creator>big_steve</dc:creator>
      <dc:date>2014-02-27T10:21:39Z</dc:date>
    </item>
  </channel>
</rss>

