<?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: Erasing flash block in MKL25Z32VFM4 controller. in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Erasing-flash-block-in-MKL25Z32VFM4-controller/m-p/437127#M25529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mateusz Paczynski:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any flash memory location that you want to write must be in erased state (0xFF). Also for KL25 you can only write 4-bytes at a time to a longword aligned address in Flash. The minimum erase operation is of 1 flash sector, which in this case is 1 KB and again the sectors are aligned, e.g. the first sector is from address 0x0000_0000 to 0x0000_03FF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For flash read/write/erase operations you can use the &lt;STRONG&gt;C90TFS&lt;/STRONG&gt; driver, available in the same link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe" title="http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe"&gt;http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an example for KL25 using this driver but it is for CodeWarrior:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-94593"&gt;EEPROM emulation on KL25 using C90TFS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead I recommend you to go with the latest tools. &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS-SDK&amp;amp;tid=redKINETIS_SDK"&gt;&lt;STRONG&gt;KSDK&lt;/STRONG&gt;&lt;/A&gt; integrates the same C90TFS driver and there is an example for KL25 in this path once you install it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Freescale\KSDK_1.2.0\examples\frdmkl25z\demo_apps\flash_demo&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2015 17:28:07 GMT</pubDate>
    <dc:creator>Jorge_Gonzalez</dc:creator>
    <dc:date>2015-06-09T17:28:07Z</dc:date>
    <item>
      <title>Erasing flash block in MKL25Z32VFM4 controller.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Erasing-flash-block-in-MKL25Z32VFM4-controller/m-p/437125#M25527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Recently I am fighting with erasing flash problem. I have got program where I have to save some data in flash memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In new chip every block of flash is filled with 0xFF. After my first upload of data, they correctly change the flash memory. But if I would like to save new data (after reprogramming cpu)&amp;nbsp; in the same place I can't do that.&lt;/P&gt;&lt;P&gt;Do you know how can I erase data (in some blocks) after programming?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 10:07:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Erasing-flash-block-in-MKL25Z32VFM4-controller/m-p/437125#M25527</guid>
      <dc:creator>paczkaexpres</dc:creator>
      <dc:date>2015-06-08T10:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Erasing flash block in MKL25Z32VFM4 controller.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Erasing-flash-block-in-MKL25Z32VFM4-controller/m-p/437126#M25528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mateusz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me you use which IDE ? thank !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 02:39:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Erasing-flash-block-in-MKL25Z32VFM4-controller/m-p/437126#M25528</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-06-09T02:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Erasing flash block in MKL25Z32VFM4 controller.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Erasing-flash-block-in-MKL25Z32VFM4-controller/m-p/437127#M25529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mateusz Paczynski:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any flash memory location that you want to write must be in erased state (0xFF). Also for KL25 you can only write 4-bytes at a time to a longword aligned address in Flash. The minimum erase operation is of 1 flash sector, which in this case is 1 KB and again the sectors are aligned, e.g. the first sector is from address 0x0000_0000 to 0x0000_03FF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For flash read/write/erase operations you can use the &lt;STRONG&gt;C90TFS&lt;/STRONG&gt; driver, available in the same link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe" title="http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe"&gt;http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an example for KL25 using this driver but it is for CodeWarrior:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-94593"&gt;EEPROM emulation on KL25 using C90TFS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead I recommend you to go with the latest tools. &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS-SDK&amp;amp;tid=redKINETIS_SDK"&gt;&lt;STRONG&gt;KSDK&lt;/STRONG&gt;&lt;/A&gt; integrates the same C90TFS driver and there is an example for KL25 in this path once you install it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Freescale\KSDK_1.2.0\examples\frdmkl25z\demo_apps\flash_demo&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:28:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Erasing-flash-block-in-MKL25Z32VFM4-controller/m-p/437127#M25529</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-06-09T17:28:07Z</dc:date>
    </item>
  </channel>
</rss>

