<?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: LPC4078 Suspected Faulty MCU in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Suspected-Faulty-MCU/m-p/2106435#M58256</link>
    <description>&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to share a root cause I discovered after spending time debugging a MemManage Fault issue on the LPC4078.&lt;/P&gt;&lt;P&gt;**Problem:**&lt;BR /&gt;When executing the firmware on an LPC4078 MCU, the system would run normally when debugging step-by-step, but would fall into a MemFault loop when running continuously without breakpoints.&lt;/P&gt;&lt;P&gt;**Root Cause:**&lt;BR /&gt;The issue was due to missing initialization of the Flash memory access time register (`LPC_SYSCTL-&amp;gt;FLASHCFG`). By default, this register is not configured with enough wait states for high-speed operation.&lt;/P&gt;&lt;P&gt;In our case, after enabling PLL and running the CPU at higher frequencies, the Flash controller was still configured with its default access time, which was insufficient. This caused the CPU to fetch instructions too quickly from Flash, resulting in a precise bus fault and subsequent MemManage Fault.&lt;/P&gt;&lt;P&gt;**Solution:**&lt;BR /&gt;We resolved the issue by properly configuring the FLASHCFG register based on the CPU clock speed:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chip_SYSCTL_SetFLASHAccess(FLASHTIM_SAFE_SETTING&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;</description>
    <pubDate>Wed, 28 May 2025 16:43:11 GMT</pubDate>
    <dc:creator>michelle2022</dc:creator>
    <dc:date>2025-05-28T16:43:11Z</dc:date>
    <item>
      <title>LPC4078 Suspected Faulty MCU</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Suspected-Faulty-MCU/m-p/2097573#M58191</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have encountered a critical issue where only MCUB consistently triggers a memory management fault (MemFault), while MCUA operates without any issue under identical conditions.&lt;/P&gt;&lt;P&gt;The MMFAR value during failure on MCUB indicates invalid addresses such as 0x123456C0, and the CFSR value is 0x8200.&lt;/P&gt;&lt;P&gt;These fault addresses appear to fall well outside of the valid SRAM or Flash memory map for the LPC4078.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In contrast, MCUA on the same board runs the exact same firmware without any faults or exceptions.&lt;/P&gt;&lt;P&gt;These symptoms strongly suggest that MCUB may be faulty.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michelle2022_0-1747260992131.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/337811iAF035EB2C9DDAC9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="michelle2022_0-1747260992131.jpeg" alt="michelle2022_0-1747260992131.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michelle2022_1-1747261011564.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/337812i00918C766978B692/image-size/medium?v=v2&amp;amp;px=400" role="button" title="michelle2022_1-1747261011564.png" alt="michelle2022_1-1747261011564.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to know:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If this kind of issue is known or expected under any conditions,&lt;/LI&gt;&lt;LI&gt;Whether this behavior may be due to a defective chip,&lt;/LI&gt;&lt;LI&gt;If there are any further diagnostics we should perform before proceeding with a potential RMA&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Please advise me on the appropriate next steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 22:31:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Suspected-Faulty-MCU/m-p/2097573#M58191</guid>
      <dc:creator>michelle2022</dc:creator>
      <dc:date>2025-05-14T22:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4078 Suspected Faulty MCU</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Suspected-Faulty-MCU/m-p/2099794#M58199</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/244493"&gt;@michelle2022&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There is no information indicating that the LPC4078 has a common memory issue. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Only one chip is experiencing problems with the same code ?&amp;nbsp; If so, perhaps this chip is damaged. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also verify whether the programming was done correctly by reading the flash memory.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 10:07:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Suspected-Faulty-MCU/m-p/2099794#M58199</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-05-19T10:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4078 Suspected Faulty MCU</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Suspected-Faulty-MCU/m-p/2106435#M58256</link>
      <description>&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to share a root cause I discovered after spending time debugging a MemManage Fault issue on the LPC4078.&lt;/P&gt;&lt;P&gt;**Problem:**&lt;BR /&gt;When executing the firmware on an LPC4078 MCU, the system would run normally when debugging step-by-step, but would fall into a MemFault loop when running continuously without breakpoints.&lt;/P&gt;&lt;P&gt;**Root Cause:**&lt;BR /&gt;The issue was due to missing initialization of the Flash memory access time register (`LPC_SYSCTL-&amp;gt;FLASHCFG`). By default, this register is not configured with enough wait states for high-speed operation.&lt;/P&gt;&lt;P&gt;In our case, after enabling PLL and running the CPU at higher frequencies, the Flash controller was still configured with its default access time, which was insufficient. This caused the CPU to fetch instructions too quickly from Flash, resulting in a precise bus fault and subsequent MemManage Fault.&lt;/P&gt;&lt;P&gt;**Solution:**&lt;BR /&gt;We resolved the issue by properly configuring the FLASHCFG register based on the CPU clock speed:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chip_SYSCTL_SetFLASHAccess(FLASHTIM_SAFE_SETTING&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 16:43:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Suspected-Faulty-MCU/m-p/2106435#M58256</guid>
      <dc:creator>michelle2022</dc:creator>
      <dc:date>2025-05-28T16:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4078 Suspected Faulty MCU</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Suspected-Faulty-MCU/m-p/2106903#M58262</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/244493"&gt;@michelle2022&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your sharing.&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>Thu, 29 May 2025 07:06:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-Suspected-Faulty-MCU/m-p/2106903#M58262</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-05-29T07:06:52Z</dc:date>
    </item>
  </channel>
</rss>

