<?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: How to write my own data to the flash of K64  ( above the program) in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653693#M39872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code that I referenced to is a higher performance solution than the SDK (works with 9 IDEs, is Kinetis part independent, with many additional functions, including simulation), and so doesn't use the SDK components. It is a complete. industrially proven solution rather than just examples that you need to piece together for your final operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to use SDK I can't help more that to say that it &lt;BR /&gt;- does include the functions that you need to write to Flash&lt;BR /&gt;- you can read back probably using function but it is simpler to just do &lt;STRONG&gt;memcpy(buffer, FlashAddress, size)&lt;/STRONG&gt; since program Flash is memory-mapped&lt;BR /&gt;- there are many people who use such flash writing with SDK so it should basically be no big problem&lt;BR /&gt;- search the forum (also the SDK forum at &lt;A href="https://community.nxp.com/community/kinetis/kinetis-software-development-kit"&gt;https://community.nxp.com/community/kinetis/kinetis-software-development-kit&lt;/A&gt;&amp;nbsp;)&amp;nbsp; for similar topics where potential problems with use of the SDK APIs are discussed and solutions given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2016 14:32:54 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2016-09-27T14:32:54Z</dc:date>
    <item>
      <title>How to write my own data to the flash of K64  ( above the program)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653690#M39869</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;Is it possible to write some userdata( my own data) at the end of the flash for later on to read it back?&lt;/P&gt;&lt;P&gt;I tried to do so with the flash driver API and i cannot read back using the ReadResource function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried both k64 flash driver demo &amp;nbsp;and the bootloader flash driver demo ( they are almost the same, Note that the enum defined there with small and capital letter)&amp;nbsp;&lt;/P&gt;&lt;P&gt;In both i am getting &lt;STRONG&gt;invalid argument&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. is it possible to write and read user data to the flash?&lt;/P&gt;&lt;P&gt;2. can someone test and and show a working example?&lt;/P&gt;&lt;P&gt;3.If it is not possible , &lt;STRONG&gt;where&lt;/STRONG&gt; can i store user data for my firmware without using sdcard?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 05:50:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653690#M39869</guid>
      <dc:creator>eliar</dc:creator>
      <dc:date>2016-09-27T05:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to write my own data to the flash of K64  ( above the program)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653691#M39870</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;Write/read of non-used-program flash is possible (8 byte phrase writes required on the K64).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following, which has a binary for the FRDM-K64F that allows you to do this at any location (with description/example): &lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/831848?commentID=831848#comment-831848" title="https://community.nxp.com/message/831848?commentID=831848#comment-831848"&gt;https://community.nxp.com/message/831848?commentID=831848#comment-831848&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For various K64 boards see:&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-K64F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K64F120M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K64F120M.html&lt;/A&gt;&lt;BR /&gt;where full code is available as well as a Kinetis simulator that allows the operation to be tested and analysed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;BR /&gt;&lt;SPAN&gt;Kinetis for professionals: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 12:38:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653691#M39870</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-09-27T12:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to write my own data to the flash of K64  ( above the program)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653692#M39871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw the the code is author by you, but i am still very much confused.&lt;/P&gt;&lt;P&gt;You send me a code that does not seems to be compatible with kinetis SDK 2.0 and the flash driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me please ask the following:&lt;/P&gt;&lt;P&gt;can you do a write of user data to the flash using flash driver API in the kinetis 2.0 &amp;nbsp;and read it back?&lt;/P&gt;&lt;P&gt;The example used FLASh_Program function , which i assume it write a buffer , but i cannot read it back.&lt;/P&gt;&lt;P&gt;We need to store our own data after the program code and the software need to read it when it start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 13:55:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653692#M39871</guid>
      <dc:creator>eliar</dc:creator>
      <dc:date>2016-09-27T13:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to write my own data to the flash of K64  ( above the program)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653693#M39872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code that I referenced to is a higher performance solution than the SDK (works with 9 IDEs, is Kinetis part independent, with many additional functions, including simulation), and so doesn't use the SDK components. It is a complete. industrially proven solution rather than just examples that you need to piece together for your final operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to use SDK I can't help more that to say that it &lt;BR /&gt;- does include the functions that you need to write to Flash&lt;BR /&gt;- you can read back probably using function but it is simpler to just do &lt;STRONG&gt;memcpy(buffer, FlashAddress, size)&lt;/STRONG&gt; since program Flash is memory-mapped&lt;BR /&gt;- there are many people who use such flash writing with SDK so it should basically be no big problem&lt;BR /&gt;- search the forum (also the SDK forum at &lt;A href="https://community.nxp.com/community/kinetis/kinetis-software-development-kit"&gt;https://community.nxp.com/community/kinetis/kinetis-software-development-kit&lt;/A&gt;&amp;nbsp;)&amp;nbsp; for similar topics where potential problems with use of the SDK APIs are discussed and solutions given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 14:32:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653693#M39872</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-09-27T14:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to write my own data to the flash of K64  ( above the program)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653694#M39873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eli,&lt;/P&gt;&lt;P&gt;Have you tried running the KSDK_v2 for FRDM-K64F Freedom board flash programming example at following path?&lt;/P&gt;&lt;P&gt;C:\NXP\KSDK_v2\SDK_2.0_FRDM-K64F_KDS\boards\frdmk64f\driver_examples\flash\flash_erase_program_verify\kds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run it, the terminal output is as follows:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flash Example Start&lt;/P&gt;&lt;P&gt;Flash Information: &lt;BR /&gt; Total Program Flash Size:1024 KB, Hex: (0x100000)&lt;BR /&gt; Program Flash Sector Size:4 KB, Hex: (0x1000) &lt;BR /&gt; There is no D-Flash (FlexNVM) on this Device.&lt;BR /&gt; There is no Enhanced EEPROM (EEE) on this Device.&lt;BR /&gt; Flash is UNSECURE!&lt;/P&gt;&lt;P&gt;Erase a sector of flash&lt;BR /&gt; Successfully Erased Sector 0xff000 -&amp;gt; 0x100000&lt;/P&gt;&lt;P&gt;Program a buffer to a sector of flash &lt;BR /&gt; Successfully Programmed and Verified Location 0xff000 -&amp;gt; 0xff010&lt;/P&gt;&lt;P&gt;End of Flash Example&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After erasing the flash the Memory Browser showed the 0xff000 flash location to be erased:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14i96094B2153914B8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After FLASH_program Memory Browser showed:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59i54B2390C2B8BFDE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data set size was 16 bytes.&lt;/P&gt;&lt;P&gt;Note the minimum size data set to write/program to flash is 8-bytes.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 17:35:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653694#M39873</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-09-27T17:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to write my own data to the flash of K64  ( above the program)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653695#M39874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes , i just run this exact example.&lt;/P&gt;&lt;P&gt;But lets continue:&lt;/P&gt;&lt;P&gt;I want to read back the value.&lt;/P&gt;&lt;P&gt;So i just did memcpy , ( before i reset the board)&lt;/P&gt;&lt;P&gt;and i do see that i can read using direct access to the flash.&lt;/P&gt;&lt;P&gt;as i understood, i dont need special function to read from the flash because it is already mapped.&lt;/P&gt;&lt;P&gt;BUT here is a problem.&lt;/P&gt;&lt;P&gt;When i reset the device ( just press the reset , or using putty doing a break command) without reprogramming the flash again ( i am using mbed drag and drop)&lt;/P&gt;&lt;P&gt;When the program is starting again and i am doing the read operation only ( because i though the data will be persistance)&lt;/P&gt;&lt;P&gt;The value i am reading is garbage and not the one the example wrote before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain why?&lt;/P&gt;&lt;P&gt;How do i read the data and make sure it stay there afer reset?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 19:09:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653695#M39874</guid>
      <dc:creator>eliarad2</dc:creator>
      <dc:date>2016-09-27T19:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to write my own data to the flash of K64  ( above the program)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653696#M39875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi Eli,&lt;/P&gt;&lt;P&gt;Attached is my source file (&lt;SPAN&gt;flash_erase_program_verify.c&lt;/SPAN&gt;) that has been edited to test for &lt;SPAN&gt;wheter&lt;/SPAN&gt; 0xff000 has been flashed or not.&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;If not flashed, then code continues as normal.&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;If 0xff000 has been flashed, then I &lt;SPAN&gt;memcpy&lt;/SPAN&gt; to get data from 0xff000 and PRINTF it to terminal.&lt;/P&gt;&lt;P&gt;So on first pass of program where 0xff000 has not been flashed I get following:&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;Flash Example Start &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;Flash Information: &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;Total Program Flash Size&lt;SPAN class="GramE"&gt;:1024&lt;/SPAN&gt; KB, Hex: (0x100000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;Program Flash Sector Size&lt;SPAN class="GramE"&gt;:4&lt;/SPAN&gt; KB, Hex: (0x1000) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;There is no D-Flash (&lt;SPAN&gt;FlexNVM&lt;/SPAN&gt;) on this Device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;There is no Enhanced EEPROM (EEE) on this Device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;Flash is UNSECURE!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;Erase a sector of flash&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;Successfully Erased Sector 0xff000 -&amp;gt; 0x100000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;Program a buffer to a sector of flash &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;Successfully Programmed and Verified Location 0xff000 -&amp;gt; 0xff010 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;End of Flash Example &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;On second pass by pressing the reset button on FRDM-K64F, I get following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN&gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 10pt;"&gt;flash_buffer_contents&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt; preserved in flash&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 10pt;"&gt;flash_buffer_&lt;SPAN class="GramE"&gt;contents&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 10pt;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;0] = 0x0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 10pt;"&gt;flash_buffer_&lt;SPAN class="GramE"&gt;contents&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 10pt;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;1] = 0x1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="TEXT-AUTOSPACE: ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 10pt;"&gt;flash_buffer_&lt;SPAN class="GramE"&gt;contents&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 10pt;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;2] = 0x2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 10pt;"&gt;flash_buffer_&lt;SPAN class="GramE"&gt;contents&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 10pt;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;3] = 0x3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;This matches what is in flash memory 0xff000 when I look at it in the Memory Browsers too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;Hope source helps.&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;Look for "//DES" to see locations modified.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:  Courier New ; COLOR: black;"&gt;David &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 22:33:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653696#M39875</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-09-27T22:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to write my own data to the flash of K64  ( above the program)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653697#M39876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data that has been programmed to flash &lt;STRONG&gt;will not&lt;/STRONG&gt; be lost after a reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Make sure that your code is not&lt;/STRONG&gt; (by mistake) re-writing to the Flash the next time that it runs (without first erasing it) since a second write to a phrase, without first erasing the sector that is in, is an invalid operation that can damage the flash and cause it to behave strangely (often causing hard-faults to occur when the corrupted area is read, where debuggers will tend to display the content as "-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 23:24:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653697#M39876</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-09-27T23:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to write my own data to the flash of K64  ( above the program)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653698#M39877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you so much , it is working for me also now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a continues question.&lt;/P&gt;&lt;P&gt;Please tell me if i need to open a new thread or here it is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using MBED ( disk drive D) to drag and drop binary file to burn(flash) the program i am writing.&lt;/P&gt;&lt;P&gt;every time i will do that , all the flash will be erase , including my personal data that we just wrote there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i tell , if possible , to KDS not to overwrite sections in flash?&lt;/P&gt;&lt;P&gt;Or should it be only when using bootloader?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume i need to do something in the linker file, or?&lt;/P&gt;&lt;P&gt;If you dont understand my question please let me know.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 09:52:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653698#M39877</guid>
      <dc:creator>eliar</dc:creator>
      <dc:date>2016-09-28T09:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to write my own data to the flash of K64  ( above the program)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653699#M39878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There are several mbed versions and newer ones only delete the blocks required by the new program. The version from Rev. 220 should stop your parameters being erased each time -you can get it from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fdeveloper.mbed.org%2Fhandbook%2FFirmware-FRDM-K64F" rel="nofollow" target="_blank"&gt;https://developer.mbed.org/handbook/Firmware-FRDM-K64F&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, you can use a boot loader to take over the function of the mbed drag-and-drop loader - available at&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-K64F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Mark&lt;BR /&gt;&lt;SPAN&gt;Kinetis for professionals: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 11:25:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653699#M39878</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-09-28T11:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to write my own data to the flash of K64  ( above the program)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653700#M39879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not think i am going to use the uTasker and its relevent system file.&lt;/P&gt;&lt;P&gt;i am using the Kinetis SDK and everything that NXP provide because this is how i started my project.&lt;/P&gt;&lt;P&gt;Thanks and sorry :smileyhappy:&lt;/P&gt;&lt;P&gt;Eli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 11:28:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653700#M39879</guid>
      <dc:creator>eliar</dc:creator>
      <dc:date>2016-09-28T11:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to write my own data to the flash of K64  ( above the program)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653701#M39880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;I gave a link to the &lt;STRONG&gt;mdeb&lt;/STRONG&gt; web site&lt;/SPAN&gt;, which should solve your drag-and-drop problem. [I did try attaching the file for you but it looks like file attachment is broken since it says a 40k file is TOO LARGE....]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The second link is just in case it doesn't solve your problem and can be used with any SW - not just uTasker.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;BR /&gt;&lt;SPAN&gt;Kinetis for professionals: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. If you &lt;EM&gt;had&lt;/EM&gt; started with uTasker you may have &lt;EM&gt;finished&lt;/EM&gt; the project by now :smileylaugh:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 11:38:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653701#M39880</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-09-28T11:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write my own data to the flash of K64  ( above the program)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653702#M39881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so &amp;nbsp;much it is working with MBed now&amp;nbsp;&lt;/P&gt;&lt;P&gt;(for people that need to replace your file , just push the reset button and plug in the USB , the MBED will start as bootloader) and then it possible to replace the 220 version )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did not heard before about uTasker , next project i will get to know with it.&lt;/P&gt;&lt;P&gt;Thanks for your quick replay.&lt;/P&gt;&lt;P&gt;Eli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 11:43:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-write-my-own-data-to-the-flash-of-K64-above-the-program/m-p/653702#M39881</guid>
      <dc:creator>eliar</dc:creator>
      <dc:date>2016-09-28T11:43:59Z</dc:date>
    </item>
  </channel>
</rss>

