<?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: Writing data in FlexNVM Data Flash Memory in MK22FX512AVLQ12 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Writing-data-in-FlexNVM-Data-Flash-Memory-in-MK22FX512AVLQ12/m-p/1259718#M60145</link>
    <description>&lt;P&gt;Thank you so much for your help!&lt;/P&gt;</description>
    <pubDate>Fri, 09 Apr 2021 13:52:45 GMT</pubDate>
    <dc:creator>vaibhavi_padwal</dc:creator>
    <dc:date>2021-04-09T13:52:45Z</dc:date>
    <item>
      <title>Writing data in FlexNVM Data Flash Memory in MK22FX512AVLQ12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Writing-data-in-FlexNVM-Data-Flash-Memory-in-MK22FX512AVLQ12/m-p/1259615#M60139</link>
      <description>Hi, I am using MK22FX512AVLQ12 controller for my custom board design. The controller has 128KB of FlexNVM which I want to use as Data flash to store certain parameters only when a trigger is given. I also have 2 FTM timer interrupts, 2 UART interrupts, 2 DMA channel interrupts and 1 SPI interrupt in my code, but none of these interrupts use the FlexNVM data Flash. Should I disable any or all of the interrupts in my code before I Erase/Write/Read in the FlexNVM dataFlash? Please help in resolving the doubt. Thanks &amp;amp; Regards, Vaibhavi P</description>
      <pubDate>Fri, 09 Apr 2021 10:40:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Writing-data-in-FlexNVM-Data-Flash-Memory-in-MK22FX512AVLQ12/m-p/1259615#M60139</guid>
      <dc:creator>vaibhavi_padwal</dc:creator>
      <dc:date>2021-04-09T10:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data in FlexNVM Data Flash Memory in MK22FX512AVLQ12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Writing-data-in-FlexNVM-Data-Flash-Memory-in-MK22FX512AVLQ12/m-p/1259682#M60141</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;If you can be sure that there is no interrupt code that will try to access the data Flash when it is being written or erased there is no need to disable interrupts.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;BR /&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements&lt;BR /&gt;&lt;BR /&gt;For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key: &lt;A href="https://www.utasker.com/iMX/RT1064.html" target="_blank"&gt;https://www.utasker.com/iMX/RT1064.html&lt;/A&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 12:54:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Writing-data-in-FlexNVM-Data-Flash-Memory-in-MK22FX512AVLQ12/m-p/1259682#M60141</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2021-04-09T12:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data in FlexNVM Data Flash Memory in MK22FX512AVLQ12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Writing-data-in-FlexNVM-Data-Flash-Memory-in-MK22FX512AVLQ12/m-p/1259690#M60142</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am performing erase and write in one of the timer interrupts when I see that a particular GPIO has switched the state. In rest of the interrupts, there is no activity related to Data flash.&lt;/P&gt;&lt;P&gt;So can I be sure that all other interrupts are not using this Data Flash? As per my understanding, these interrupts would be using Program Flash and SRAM during their execution.&lt;/P&gt;&lt;P&gt;Also since I am performing the write operation in one the FTM timer interrupts itself, will it cause some problem?&lt;/P&gt;&lt;P&gt;Can you please confirm?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vaibhavi P&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 13:05:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Writing-data-in-FlexNVM-Data-Flash-Memory-in-MK22FX512AVLQ12/m-p/1259690#M60142</guid>
      <dc:creator>vaibhavi_padwal</dc:creator>
      <dc:date>2021-04-09T13:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data in FlexNVM Data Flash Memory in MK22FX512AVLQ12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Writing-data-in-FlexNVM-Data-Flash-Memory-in-MK22FX512AVLQ12/m-p/1259715#M60143</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;So can I be sure that all other interrupts are not using this Data Flash?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If you wrote the other interrupts code you will know whether they are accessing data flash or not. Very probably not and a naked interrupt won't be doing so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Also since I am performing the write operation in one the FTM timer interrupts itself, will it cause some problem?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Flash operations take some time (eg. 200us for word write or several 10s of ms of sector erase) but the operation itself doesn't care whether called from an interrupt or not. The impact on blocking lower priority interrupts during slow operations is the thing to consider.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 13:38:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Writing-data-in-FlexNVM-Data-Flash-Memory-in-MK22FX512AVLQ12/m-p/1259715#M60143</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2021-04-09T13:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Writing data in FlexNVM Data Flash Memory in MK22FX512AVLQ12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Writing-data-in-FlexNVM-Data-Flash-Memory-in-MK22FX512AVLQ12/m-p/1259718#M60145</link>
      <description>&lt;P&gt;Thank you so much for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 13:52:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Writing-data-in-FlexNVM-Data-Flash-Memory-in-MK22FX512AVLQ12/m-p/1259718#M60145</guid>
      <dc:creator>vaibhavi_padwal</dc:creator>
      <dc:date>2021-04-09T13:52:45Z</dc:date>
    </item>
  </channel>
</rss>

