<?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 Can't erase sector after burn serial number in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-erase-sector-after-burn-serial-number/m-p/1794575#M55222</link>
    <description>&lt;P&gt;Hey All,&lt;BR /&gt;&lt;BR /&gt;I'm using LPC11u67 nxp MCU, I wrote a secondary bootloader that will upgrade the FW via BLE communication. In addition I burn the serial number in the last sector of the flash which locate in address 0x18000.&amp;nbsp;&lt;BR /&gt;The issue after I burn the serial once or the new FW, I can't erase again the flash using the same function I used at the first time. I thought that might be a problem with the board but when I'm trying to erase the sector using J-Flash I succeeded.&lt;BR /&gt;Attached the two function once that erase the sector from 6 to 23 and function that erase the the last sector. In both cases the functions return true (success), but when I explore the memory there is no change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please any one can help me understand why I can't delete the sectors after I write them once, and the solve this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2024 10:15:30 GMT</pubDate>
    <dc:creator>Guy_mego</dc:creator>
    <dc:date>2024-01-24T10:15:30Z</dc:date>
    <item>
      <title>Can't erase sector after burn serial number</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-erase-sector-after-burn-serial-number/m-p/1794575#M55222</link>
      <description>&lt;P&gt;Hey All,&lt;BR /&gt;&lt;BR /&gt;I'm using LPC11u67 nxp MCU, I wrote a secondary bootloader that will upgrade the FW via BLE communication. In addition I burn the serial number in the last sector of the flash which locate in address 0x18000.&amp;nbsp;&lt;BR /&gt;The issue after I burn the serial once or the new FW, I can't erase again the flash using the same function I used at the first time. I thought that might be a problem with the board but when I'm trying to erase the sector using J-Flash I succeeded.&lt;BR /&gt;Attached the two function once that erase the sector from 6 to 23 and function that erase the the last sector. In both cases the functions return true (success), but when I explore the memory there is no change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please any one can help me understand why I can't delete the sectors after I write them once, and the solve this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 10:15:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-erase-sector-after-burn-serial-number/m-p/1794575#M55222</guid>
      <dc:creator>Guy_mego</dc:creator>
      <dc:date>2024-01-24T10:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can't erase sector after burn serial number</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-erase-sector-after-burn-serial-number/m-p/1796640#M55244</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/205229"&gt;@Guy_mego&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about test it in flashiap demo?&amp;nbsp; Add the erase last sector code into it.&lt;/P&gt;
&lt;P&gt;Take a screenshot about the data before erase and after. BTW. If have the same issue, send your project and results to me. BTW, how do you read flash memory?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 07:13:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-erase-sector-after-burn-serial-number/m-p/1796640#M55244</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-01-29T07:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can't erase sector after burn serial number</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-erase-sector-after-burn-serial-number/m-p/1797465#M55265</link>
      <description>&lt;P&gt;Hi Alice,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your respond.&lt;BR /&gt;I'm not familiar with flashiap demo, is it a feature on MCUXpresso IDE?&lt;BR /&gt;In order to read the flash memory is a assign a pointer with the specific address of the flash I want read.&lt;BR /&gt;&lt;BR /&gt;In order to view the memory before and after erase I use the MCUXpresso tool during debug that can show the memory per a given address.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 06:50:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-erase-sector-after-burn-serial-number/m-p/1797465#M55265</guid>
      <dc:creator>Guy_mego</dc:creator>
      <dc:date>2024-01-30T06:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't erase sector after burn serial number</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-erase-sector-after-burn-serial-number/m-p/1798401#M55285</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/205229"&gt;@Guy_mego&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;" flashiap" is an example under LPCopen, which supports MCUXpresso IDE.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Download from&amp;nbsp;&lt;A href="https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools-/lpcopen-libraries-and-examples:LPC-OPEN-LIBRARIES" target="_blank"&gt;https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools-/lpcopen-libraries-and-examples:LPC-OPEN-LIBRARIES&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 07:10:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-t-erase-sector-after-burn-serial-number/m-p/1798401#M55285</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-01-31T07:10:43Z</dc:date>
    </item>
  </channel>
</rss>

