<?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 LPC5502 crash on FLASH_Read in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5502-crash-on-FLASH-Read/m-p/2059554#M57875</link>
    <description>&lt;P&gt;On an LPC5502 I try to read 512 bytes from the flash at address 0xF800. This works most of the time but sometimes the FLASH_Read function does not return but either the controller restarts itself or it jumps to 0xdeadbeee.&lt;/P&gt;&lt;P&gt;Watchdog is disabled, FLASH_Init returns with success. There seems to be also a timing involved, because if I put debug output, it does not happen that often anymore. Interrupts are off during the read.&lt;/P&gt;&lt;P&gt;Is it necessary to wait after init or what could be the reason for that?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2025 13:05:56 GMT</pubDate>
    <dc:creator>sigmeh</dc:creator>
    <dc:date>2025-03-11T13:05:56Z</dc:date>
    <item>
      <title>LPC5502 crash on FLASH_Read</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5502-crash-on-FLASH-Read/m-p/2059554#M57875</link>
      <description>&lt;P&gt;On an LPC5502 I try to read 512 bytes from the flash at address 0xF800. This works most of the time but sometimes the FLASH_Read function does not return but either the controller restarts itself or it jumps to 0xdeadbeee.&lt;/P&gt;&lt;P&gt;Watchdog is disabled, FLASH_Init returns with success. There seems to be also a timing involved, because if I put debug output, it does not happen that often anymore. Interrupts are off during the read.&lt;/P&gt;&lt;P&gt;Is it necessary to wait after init or what could be the reason for that?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 13:05:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5502-crash-on-FLASH-Read/m-p/2059554#M57875</guid>
      <dc:creator>sigmeh</dc:creator>
      <dc:date>2025-03-11T13:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5502 crash on FLASH_Read</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5502-crash-on-FLASH-Read/m-p/2059844#M57879</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197211"&gt;@sigmeh&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Yes, it is important to make sure the flash initialization function is fully completed before trying to access any flash addresses.&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Edwin.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 20:51:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5502-crash-on-FLASH-Read/m-p/2059844#M57879</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2025-03-11T20:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5502 crash on FLASH_Read</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5502-crash-on-FLASH-Read/m-p/2060164#M57881</link>
      <description>&lt;P&gt;Does that mean, that the return of FLASH_Init is not enough? How can I be sure it is completed?&lt;/P&gt;&lt;P&gt;However, I changed the FLASH_Read to memcpy which seems to work stable (no crash after a few thousand reads, before it was more or less for sure with 10 reads or so).&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 07:06:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5502-crash-on-FLASH-Read/m-p/2060164#M57881</guid>
      <dc:creator>sigmeh</dc:creator>
      <dc:date>2025-03-12T07:06:51Z</dc:date>
    </item>
  </channel>
</rss>

