<?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>MCUXpresso IDEのトピックRe: Writing on the Bootloader memory area</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Writing-on-the-Bootloader-memory-area/m-p/1334249#M7367</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You are correct. I missed that point.&lt;/P&gt;&lt;P&gt;After adding the functions&amp;nbsp;FLASH_Erase and&amp;nbsp;FLASH_VerifyErase before the&amp;nbsp;FLASH_Program, the issue was gone.&lt;/P&gt;&lt;P&gt;Thank you very much for the help&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 02 Sep 2021 15:44:47 GMT</pubDate>
    <dc:creator>joao_ribeiro</dc:creator>
    <dc:date>2021-09-02T15:44:47Z</dc:date>
    <item>
      <title>Writing on the Bootloader memory area</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Writing-on-the-Bootloader-memory-area/m-p/1331117#M7348</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to update a part of the bootloader's memory via the app. So I am using the app to read the bootloader configuration part of the memory and then update it for the next reset. The issue is that I can read the memory area without problems, but when writing to it the function FLASH_Program returns a erros (kStatus_FTFx_CommandFailure) .&lt;/P&gt;&lt;P&gt;Can you please help me finding out where is the issue?&lt;/P&gt;&lt;P&gt;In the attachment there is the app. Funny thing is that if I comment the line 24 (where I update the delay with 2) the flashing process does not have any problem.&lt;/P&gt;&lt;P&gt;Also here is the memory layout of the app&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joao_ribeiro_0-1630077498626.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154356i39DB6AAB2F911080/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joao_ribeiro_0-1630077498626.png" alt="joao_ribeiro_0-1630077498626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 15:43:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Writing-on-the-Bootloader-memory-area/m-p/1331117#M7348</guid>
      <dc:creator>joao_ribeiro</dc:creator>
      <dc:date>2021-08-27T15:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Writing on the Bootloader memory area</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Writing-on-the-Bootloader-memory-area/m-p/1331753#M7352</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Sorry to repost, but I am really stuck here.&lt;/P&gt;&lt;P&gt;I have tried a couple of new scenarios that might help figuring out the issue. It should be related with the memory write process:&lt;/P&gt;&lt;P&gt;a. I can read from the bootloader memory section without a problem, so the memory mapping should be ok;&lt;BR /&gt;b. If I write exactly what is in memory , there is no issue;&lt;BR /&gt;c. If I update one of the values in memory and try to write it back in memory it does break at the function FLASH_Program;&lt;BR /&gt;d. If I use the same code in the attachment but without the bootloader it does work fine, but if I change a bit the code in order to add ++1 at the memory value and program it again, it does fail again. And it fails when I reset and try to read the memory that in fact was not correctly written the last time.&lt;/P&gt;&lt;P&gt;It must be a simple fix, but I honestly can't see it right now.&lt;/P&gt;&lt;P&gt;Thank you for the help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 11:42:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Writing-on-the-Bootloader-memory-area/m-p/1331753#M7352</guid>
      <dc:creator>joao_ribeiro</dc:creator>
      <dc:date>2021-08-30T11:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Writing on the Bootloader memory area</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Writing-on-the-Bootloader-memory-area/m-p/1332240#M7359</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/135609"&gt;@joao_ribeiro&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Flash_program only write data to flash. You must erase the whole sector first. Flash is not eeprom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 06:17:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Writing-on-the-Bootloader-memory-area/m-p/1332240#M7359</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-08-31T06:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Writing on the Bootloader memory area</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Writing-on-the-Bootloader-memory-area/m-p/1334249#M7367</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You are correct. I missed that point.&lt;/P&gt;&lt;P&gt;After adding the functions&amp;nbsp;FLASH_Erase and&amp;nbsp;FLASH_VerifyErase before the&amp;nbsp;FLASH_Program, the issue was gone.&lt;/P&gt;&lt;P&gt;Thank you very much for the help&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 15:44:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Writing-on-the-Bootloader-memory-area/m-p/1334249#M7367</guid>
      <dc:creator>joao_ribeiro</dc:creator>
      <dc:date>2021-09-02T15:44:47Z</dc:date>
    </item>
  </channel>
</rss>

