<?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 MKV31F Not able to write/erase to flash address less than 0x40000 (KSDK 1.3 w/PE) in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKV31F-Not-able-to-write-erase-to-flash-address-less-than/m-p/467985#M3676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Attached is the sample project that can easily recreate the issue.&amp;nbsp; I'm trying to write a bootloader for the MKV31F512 but for some reason can not write/erase to anything in the write flash block (my part seems to partition the first and second 256KB).&amp;nbsp; I'm simply using Processor Expert in this case to initialize my CPU configuration as well as create the Flash config and bring in the KSDK driver.&amp;nbsp; If you build and run the code as is it will read prior to erasing, then erase and read, then write 4 bytes and read again.&amp;nbsp; If you step through the code it will work properly.&amp;nbsp; I have a define called FLASH_ADDRESS that is set to 0x40000 at the moment, if you set that to something like 0x10000 it will crash.&amp;nbsp; I have yet to find an explanation for this and I have tried the flash demo on a KV31F tower board and for some reason I am able to write to the lower addresses so there must be something fundamental that I am glossing over.&amp;nbsp; Thanks.&lt;/SPAN&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-338554"&gt;FlashTest.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2016 20:06:15 GMT</pubDate>
    <dc:creator>stevenneves</dc:creator>
    <dc:date>2016-03-10T20:06:15Z</dc:date>
    <item>
      <title>MKV31F Not able to write/erase to flash address less than 0x40000 (KSDK 1.3 w/PE)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKV31F-Not-able-to-write-erase-to-flash-address-less-than/m-p/467985#M3676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Attached is the sample project that can easily recreate the issue.&amp;nbsp; I'm trying to write a bootloader for the MKV31F512 but for some reason can not write/erase to anything in the write flash block (my part seems to partition the first and second 256KB).&amp;nbsp; I'm simply using Processor Expert in this case to initialize my CPU configuration as well as create the Flash config and bring in the KSDK driver.&amp;nbsp; If you build and run the code as is it will read prior to erasing, then erase and read, then write 4 bytes and read again.&amp;nbsp; If you step through the code it will work properly.&amp;nbsp; I have a define called FLASH_ADDRESS that is set to 0x40000 at the moment, if you set that to something like 0x10000 it will crash.&amp;nbsp; I have yet to find an explanation for this and I have tried the flash demo on a KV31F tower board and for some reason I am able to write to the lower addresses so there must be something fundamental that I am glossing over.&amp;nbsp; Thanks.&lt;/SPAN&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-338554"&gt;FlashTest.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 20:06:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKV31F-Not-able-to-write-erase-to-flash-address-less-than/m-p/467985#M3676</guid>
      <dc:creator>stevenneves</dc:creator>
      <dc:date>2016-03-10T20:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: MKV31F Not able to write/erase to flash address less than 0x40000 (KSDK 1.3 w/PE)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKV31F-Not-able-to-write-erase-to-flash-address-less-than/m-p/467986#M3677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I test on my side much times , at the result , i find&amp;nbsp; the workaround .&lt;/P&gt;&lt;P&gt;There is no error on the configuration of the PE, you only disable these code of the file "PE_low_level_init.c" :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22712i4A2B69E2DF4AEB08/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then save , build , debug .&lt;/P&gt;&lt;P&gt;I also attached my result project , it work well on my side , i also erase start at 0x10000, you can&lt;/P&gt;&lt;P&gt;also test it on your project .&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&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>Fri, 11 Mar 2016 08:52:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKV31F-Not-able-to-write-erase-to-flash-address-less-than/m-p/467986#M3677</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-03-11T08:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: MKV31F Not able to write/erase to flash address less than 0x40000 (KSDK 1.3 w/PE)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKV31F-Not-able-to-write-erase-to-flash-address-less-than/m-p/467987#M3678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&amp;nbsp; I have no idea why this fixed it but it did.&amp;nbsp; I created a similar issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/387505"&gt;MKV31F not able to write/erase to flash using baremetal PE (KDS 3.0)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regards to doing the same task without KSDK and am having similar results writing to the same flash addresses.&amp;nbsp; The reason I'm going the baremetal route is the fact that using KSDK has made my bootloader project grow much too large for my liking.&amp;nbsp; If you could perhaps take a look at what I'm doing wrong there when you have a moment I'd greatly appreciate it as well.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKV31F-Not-able-to-write-erase-to-flash-address-less-than/m-p/467987#M3678</guid>
      <dc:creator>stevenneves</dc:creator>
      <dc:date>2016-03-11T15:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: MKV31F Not able to write/erase to flash address less than 0x40000 (KSDK 1.3 w/PE)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKV31F-Not-able-to-write-erase-to-flash-address-less-than/m-p/467988#M3679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at this link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2016/03/09/dealing-with-code-size-in-kinetis-sdk-v2-x-projects/" title="http://mcuoneclipse.com/2016/03/09/dealing-with-code-size-in-kinetis-sdk-v2-x-projects/"&gt;Dealing with Code Size in Kinetis SDK v2.x Projects | MCU on Eclipse&lt;/A&gt; &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;Santiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 13:14:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKV31F-Not-able-to-write-erase-to-flash-address-less-than/m-p/467988#M3679</guid>
      <dc:creator>santiago_gonzal</dc:creator>
      <dc:date>2016-03-13T13:14:41Z</dc:date>
    </item>
  </channel>
</rss>

