<?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: Flash signature does not change after flash erase or write in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562647#M16536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by schisanoa on Wed Feb 18 06:29:44 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure to pass the correct address to the function that calculate the signature? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:05:23 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:05:23Z</dc:date>
    <item>
      <title>Flash signature does not change after flash erase or write</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562643#M16532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by remcopoelstra on Mon Dec 08 03:30:10 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;HI,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm testing the flash signature generator on the LPC812.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've written the following simple app:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
int main(void) {
uint32_t signature1,signature2;
char buffer[1024];
int i;
uint8_t Result;

SystemCoreClockUpdate();

for (i=0;i&amp;lt;1024;i++)
buffer&lt;I&gt;=i;

Chip_FMC_ComputeSignature(0x3c00,0x3fff);
while (Chip_FMC_IsSignatureBusy());
signature1=Chip_FMC_GetSignature(0);

Result=Chip_IAP_PreSectorForReadWrite(15,15);
Result=Chip_IAP_EraseSector(15,15);

Chip_FMC_ComputeSignature(0x3c00,0x3fff);
while (Chip_FMC_IsSignatureBusy());
signature1=Chip_FMC_GetSignature(0);

Result=Chip_IAP_PreSectorForReadWrite(15,15);
Result=Chip_IAP_CopyRamToFlash(15*1024,buffer,1024);

Chip_FMC_ComputeSignature(0x3c00,0x3fff);
while (Chip_FMC_IsSignatureBusy());
signature2=Chip_FMC_GetSignature(0);

&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0 ;
}
&lt;/I&gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The memory browser shows that the flash contents are updated as expected, but the signature is always the same. Did I do something wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remco Poelstra&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:05:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562643#M16532</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Flash signature does not change after flash erase or write</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562644#M16533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by remcopoelstra on Wed Feb 18 04:11:49 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried the same code on a LPC824 and it gives the same results, i.e. three times the same signature, while the flash has changed considerably.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be highly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remco Poelstra&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:05:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562644#M16533</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Flash signature does not change after flash erase or write</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562645#M16534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Wed Feb 18 04:20:50 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What 'signature' are you talking about? The checksum at address 0x1c is not a signature it is a simple checksum of the first few words in the vector table. See&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fimage-checksums" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/image-checksums&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:05:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562645#M16534</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Flash signature does not change after flash erase or write</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562646#M16535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by remcopoelstra on Wed Feb 18 05:08:10 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm referring to the signature as calculated by the flash memory controller (FMSW0 register). I want to use it in a secondary bootloader to verify the user application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remco Poelstra&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:05:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562646#M16535</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Flash signature does not change after flash erase or write</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562647#M16536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by schisanoa on Wed Feb 18 06:29:44 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure to pass the correct address to the function that calculate the signature? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:05:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562647#M16536</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Flash signature does not change after flash erase or write</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562648#M16537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by remcopoelstra on Thu Feb 19 06:19:54 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I provide address 0x3c00 to 0x3FFF, which should correspond with sector 15 (the one I erase and write in the sample code).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Chip_FMC_ComputeSignature() function does a &amp;gt;&amp;gt; by 4, to align to 32-bit boundaries. I believe that's all correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remco Poelstra&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:05:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562648#M16537</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Flash signature does not change after flash erase or write</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562649#M16538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out this thread, possibly this was the problem:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/433409"&gt;LPC4337 IAP erase flash hang&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one version of LpcOpen,&amp;nbsp;LPC_FMC is being declared as a pointer to a pointer but it is not. It is a pointer to a struct.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;EM style="border: 0px; font-weight: inherit;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;#define LPC_FMC ((LPC_FMC_T * *) LPC_FMCA_BASE)&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Let me know if this has helped, as I was facing some similar issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 21:39:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Flash-signature-does-not-change-after-flash-erase-or-write/m-p/562649#M16538</guid>
      <dc:creator>stype</dc:creator>
      <dc:date>2017-11-23T21:39:44Z</dc:date>
    </item>
  </channel>
</rss>

