<?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 Problem with flash update functions of PE in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-flash-update-functions-of-PE/m-p/253030#M7286</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 having some issues with the flash functions of processor expert. I am using TWR-K60F120M tower board.&lt;/P&gt;&lt;P&gt;Some addresses are not getting updated while some others are working properly.&lt;/P&gt;&lt;P&gt;Flash protection bits I have verified, they are all 0xFF meaning the whole flash area is unprotected.&lt;/P&gt;&lt;P&gt;I tried functions like IFsh1_SetLongFlash, IFsh1_SetBlockFlash. For some address they work properly(ie., updates the flash as intended).&lt;/P&gt;&lt;P&gt;But for some addresses like (0x0000A000) they are hanging, and some other lcoations they return success but locations remain as erased state(0xFF).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Configuration of flash module:&lt;/P&gt;&lt;P&gt;Write method : Tried with both destructive write and safe write&lt;/P&gt;&lt;P&gt;Command complete interrupt : enabled with med priority&lt;/P&gt;&lt;P&gt;Read collison interrupt : enabled with med priority&lt;/P&gt;&lt;P&gt;Wait in RAM : no&lt;/P&gt;&lt;P&gt;Events enabled in init : yes&lt;/P&gt;&lt;P&gt;Wait enabled in init : yes (hope this ensures that the code waits until a write or erase is complete)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB: I have verified that the addresses I am writing are not occupied by my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any clues on how to proceed on this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Renjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Feb 2014 11:58:42 GMT</pubDate>
    <dc:creator>renjithvamanan</dc:creator>
    <dc:date>2014-02-23T11:58:42Z</dc:date>
    <item>
      <title>Problem with flash update functions of PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-flash-update-functions-of-PE/m-p/253030#M7286</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 having some issues with the flash functions of processor expert. I am using TWR-K60F120M tower board.&lt;/P&gt;&lt;P&gt;Some addresses are not getting updated while some others are working properly.&lt;/P&gt;&lt;P&gt;Flash protection bits I have verified, they are all 0xFF meaning the whole flash area is unprotected.&lt;/P&gt;&lt;P&gt;I tried functions like IFsh1_SetLongFlash, IFsh1_SetBlockFlash. For some address they work properly(ie., updates the flash as intended).&lt;/P&gt;&lt;P&gt;But for some addresses like (0x0000A000) they are hanging, and some other lcoations they return success but locations remain as erased state(0xFF).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Configuration of flash module:&lt;/P&gt;&lt;P&gt;Write method : Tried with both destructive write and safe write&lt;/P&gt;&lt;P&gt;Command complete interrupt : enabled with med priority&lt;/P&gt;&lt;P&gt;Read collison interrupt : enabled with med priority&lt;/P&gt;&lt;P&gt;Wait in RAM : no&lt;/P&gt;&lt;P&gt;Events enabled in init : yes&lt;/P&gt;&lt;P&gt;Wait enabled in init : yes (hope this ensures that the code waits until a write or erase is complete)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB: I have verified that the addresses I am writing are not occupied by my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any clues on how to proceed on this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Renjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 11:58:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-flash-update-functions-of-PE/m-p/253030#M7286</guid>
      <dc:creator>renjithvamanan</dc:creator>
      <dc:date>2014-02-23T11:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with flash update functions of PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-flash-update-functions-of-PE/m-p/253031#M7287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No replies so far :smileysad: :smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One related doubt I have...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any restriction like in the call to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IFsh1_SetBlockFlash, the destination flash address need to be aligned on 8 bytes and number of bytes to be written also aligned to 8 bytes?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Is this restriction there even if we use PE component driver? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 15:44:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-flash-update-functions-of-PE/m-p/253031#M7287</guid>
      <dc:creator>renjithvamanan</dc:creator>
      <dc:date>2014-02-25T15:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with flash update functions of PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-flash-update-functions-of-PE/m-p/253032#M7288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renjith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please upload your project here for further investigating?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 06:58:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-flash-update-functions-of-PE/m-p/253032#M7288</guid>
      <dc:creator>Rick_Li</dc:creator>
      <dc:date>2014-02-27T06:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with flash update functions of PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-flash-update-functions-of-PE/m-p/253033#M7289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;Uploaded to the service request page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Renjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 11:18:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-flash-update-functions-of-PE/m-p/253033#M7289</guid>
      <dc:creator>renjithvamanan</dc:creator>
      <dc:date>2014-02-28T11:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with flash update functions of PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-flash-update-functions-of-PE/m-p/253034#M7290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be nice to see a follow-up with a resolution description. I'm seeing the exact same behavior on K70FN1M0VMJ12 MCU. IFsh1_SetBlockFlash( &amp;lt;anything&amp;gt;, 0x000A0000, 0x8000) fails with a ERR_VALUE, after writing the previous 0x00030000 bytes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 20:42:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-flash-update-functions-of-PE/m-p/253034#M7290</guid>
      <dc:creator>theobarker</dc:creator>
      <dc:date>2016-05-31T20:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with flash update functions of PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-flash-update-functions-of-PE/m-p/253035#M7291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From examining the source code generated by Processor Expert, it appears that the maximum "block" that the IFsh1_SetBlockFlash() -&amp;gt;IFsh1_SetFlash() functions can destructively write is a single sector, i.e. 4KB. The call to IntFlashLdd1_Erase() receives a size of IntFlashLdd1_ERASABLE_UNIT_SIZE which is defined as 0x1000LU. Upon successful return from IntFlashLdd1_Erase() and IntFlashLdd1_Main(), IFsh1_SetFlash() returns, not erasing any subsequent sectors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 18:35:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-flash-update-functions-of-PE/m-p/253035#M7291</guid>
      <dc:creator>theobarker</dc:creator>
      <dc:date>2016-06-01T18:35:13Z</dc:date>
    </item>
  </channel>
</rss>

