<?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>LPC MicrocontrollersのトピックRe: Hard fault Handle error LPC54606 Microcontroller</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1738235#M54368</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi XiangJun Rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think problem in ROM Address because Showing error &lt;FONT color="#FF0000"&gt;"Memory access error".&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/*! @brief FROHF clock setting API address in ROM. */&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;#define CLOCK_FROHF_SETTING_API_ROM_ADDRESS (0x030091DFU)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;/*showing Hard fault error when reach this function*/&lt;/P&gt;&lt;P&gt;#define set_fro_frequency(iFreq) (*((void (*)(uint32_t iFreq))(CLOCK_FROHF_SETTING_API_ROM_ADDRESS)))(iFreq)&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2023 05:02:09 GMT</pubDate>
    <dc:creator>vijay_123</dc:creator>
    <dc:date>2023-10-12T05:02:09Z</dc:date>
    <item>
      <title>Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1733695#M54269</link>
      <description>&lt;P&gt;I Run the sample code of USB_CDC_VCOM_BM. In IAR Showing Hard fault Handle error and Accessing Illegal memory address, When Debugging the code. Kindly If anyone find the solution let me know&lt;/P&gt;&lt;P&gt;/*! @brief FROHF clock setting API address in ROM. */&lt;BR /&gt;#define CLOCK_FROHF_SETTING_API_ROM_ADDRESS (0x030091DFU)&lt;/P&gt;&lt;P&gt;/*showing Hard fault error when reach this function*/&lt;/P&gt;&lt;P&gt;#define set_fro_frequency(iFreq) (*((void (*)(uint32_t iFreq))(CLOCK_FROHF_SETTING_API_ROM_ADDRESS)))(iFreq)&lt;/P&gt;&lt;P&gt;i'm not sure, why its showing error, SO I attached Example code&lt;/P&gt;&lt;P&gt;##SDK version - 2.13.0&lt;/P&gt;&lt;P&gt;Using ##Lpc54606j256 microcontroller, IAR TOO&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 11:21:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1733695#M54269</guid>
      <dc:creator>vijay_123</dc:creator>
      <dc:date>2023-10-04T11:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1735421#M54298</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Regarding your question of hard-fault error when the code is executed.&lt;/P&gt;
&lt;P&gt;Pls check the following items:&lt;/P&gt;
&lt;P&gt;1)disable interrupt before you call the api function, after calling, enable interrupt.&lt;/P&gt;
&lt;P&gt;__STATIC_FORCEINLINE void __enable_irq(void)&lt;BR /&gt;{&lt;BR /&gt;__ASM volatile ("cpsie i" : : : "memory");&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;__disable_irq();&lt;/P&gt;
&lt;P&gt;set_fro_frequency(96000000);&lt;/P&gt;
&lt;P&gt;__enable_irq();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="xiangjun_rong_0-1696817653773.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/244016i21D85A481E8B1660/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1696817653773.png" alt="xiangjun_rong_0-1696817653773.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2)enable ROM bit in SYSCON-&amp;gt;AHBCLKCTRL0|=1&amp;lt;&amp;lt;1; in this way, you can call the ROM code&lt;/P&gt;
&lt;P&gt;3)Because set_fro_frequency(96000000); function configure the FRO to output 96MHz clock, it is unnecessary to configure the SYSCON-&amp;gt;FROCTROL in application code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pls have a try&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 02:33:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1735421#M54298</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-10-09T02:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1737220#M54344</link>
      <description>&lt;P&gt;Hi XiangJun Rong,&lt;BR /&gt;Thank you for your reply.&lt;BR /&gt;Again, Same Error and same line but I Changed code as per your suggestion.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 07:37:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1737220#M54344</guid>
      <dc:creator>vijay_123</dc:creator>
      <dc:date>2023-10-11T07:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1737350#M54349</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Pls try to use the SDK example to set the 96MHz clock as main clock&lt;/P&gt;
&lt;P&gt;void BOARD_BootClockFROHF96M(void)&lt;BR /&gt;{&lt;BR /&gt;/*!&amp;lt; Set up the clock sources */&lt;BR /&gt;/*!&amp;lt; Set up FRO */&lt;BR /&gt;POWER_DisablePD(kPDRUNCFG_PD_FRO_EN); /*!&amp;lt; Ensure FRO is on */&lt;BR /&gt;CLOCK_AttachClk(kFRO12M_to_MAIN_CLK); /*!&amp;lt; Switch to FRO 12MHz first to ensure we can change voltage without accidentally&lt;BR /&gt;being below the voltage for current speed */&lt;BR /&gt;POWER_SetVoltageForFreq(96000000U); /*!&amp;lt; Set voltage for the one of the fastest clock outputs: System clock output */&lt;BR /&gt;CLOCK_SetFLASHAccessCyclesForFreq(96000000U); /*!&amp;lt; Set FLASH wait states for core */&lt;/P&gt;
&lt;P&gt;/*!&amp;lt; Need to make sure ROM and OTP has power(PDRUNCFG0[17,29]= 0U) &lt;BR /&gt;before calling this API since this API is implemented in ROM code */&lt;BR /&gt;CLOCK_SetupFROClocking(96000000U); /*!&amp;lt; Set up high frequency FRO output to selected frequency */&lt;/P&gt;
&lt;P&gt;/*!&amp;lt; Set up dividers */&lt;BR /&gt;CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false); /*!&amp;lt; Reset divider counter and set divider to value 1 */&lt;/P&gt;
&lt;P&gt;/*!&amp;lt; Set up clock selectors - Attach clocks to the peripheries */&lt;BR /&gt;CLOCK_AttachClk(kFRO_HF_to_MAIN_CLK); /*!&amp;lt; Switch MAIN_CLK to FRO_HF */&lt;BR /&gt;/* Set SystemCoreClock variable. */&lt;BR /&gt;SystemCoreClock = BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pls have a try&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 09:16:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1737350#M54349</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-10-11T09:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1737363#M54350</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi XiangJun Rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In SDK Example, Previously I'm using 96MHz clock as main clock, you&amp;nbsp;can see the Main code for USB, I attached below.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 09:39:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1737363#M54350</guid>
      <dc:creator>vijay_123</dc:creator>
      <dc:date>2023-10-11T09:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1737536#M54355</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi XiangJun Rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please find the usb example code for your reference, if&amp;nbsp;any changes required let me know&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 13:30:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1737536#M54355</guid>
      <dc:creator>vijay_123</dc:creator>
      <dc:date>2023-10-11T13:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1738235#M54368</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi XiangJun Rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think problem in ROM Address because Showing error &lt;FONT color="#FF0000"&gt;"Memory access error".&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/*! @brief FROHF clock setting API address in ROM. */&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;#define CLOCK_FROHF_SETTING_API_ROM_ADDRESS (0x030091DFU)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;/*showing Hard fault error when reach this function*/&lt;/P&gt;&lt;P&gt;#define set_fro_frequency(iFreq) (*((void (*)(uint32_t iFreq))(CLOCK_FROHF_SETTING_API_ROM_ADDRESS)))(iFreq)&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 05:02:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1738235#M54368</guid>
      <dc:creator>vijay_123</dc:creator>
      <dc:date>2023-10-12T05:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1741936#M54471</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have checked your example, it is based on IAR tools, but my IAR tools license&amp;nbsp; has expired.&lt;/P&gt;
&lt;P&gt;I have called the&amp;nbsp;BOARD_BootClockFROHF96M() api function and run it on my LPC54628-EVK board, no problem.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;void BOARD_BootClockFROHF96M(void)&lt;BR /&gt;{&lt;BR /&gt;/*!&amp;lt; Set up the clock sources */&lt;BR /&gt;/*!&amp;lt; Set up FRO */&lt;BR /&gt;POWER_DisablePD(kPDRUNCFG_PD_FRO_EN); /*!&amp;lt; Ensure FRO is on */&lt;BR /&gt;CLOCK_AttachClk(kFRO12M_to_MAIN_CLK); /*!&amp;lt; Switch to FRO 12MHz first to ensure we can change voltage without accidentally&lt;BR /&gt;being below the voltage for current speed */&lt;BR /&gt;POWER_SetVoltageForFreq(96000000U); /*!&amp;lt; Set voltage for the one of the fastest clock outputs: System clock output */&lt;BR /&gt;CLOCK_SetFLASHAccessCyclesForFreq(96000000U); /*!&amp;lt; Set FLASH wait states for core */&lt;/P&gt;
&lt;P&gt;/*!&amp;lt; Need to make sure ROM and OTP has power(PDRUNCFG0[17,29]= 0U)&lt;BR /&gt;before calling this API since this API is implemented in ROM code */&lt;BR /&gt;CLOCK_SetupFROClocking(96000000U); /*!&amp;lt; Set up high frequency FRO output to selected frequency */&lt;/P&gt;
&lt;P&gt;/*!&amp;lt; Set up dividers */&lt;BR /&gt;CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false); /*!&amp;lt; Reset divider counter and set divider to value 1 */&lt;/P&gt;
&lt;P&gt;/*!&amp;lt; Set up clock selectors - Attach clocks to the peripheries */&lt;BR /&gt;CLOCK_AttachClk(kFRO_HF_to_MAIN_CLK); /*!&amp;lt; Switch MAIN_CLK to FRO_HF */&lt;BR /&gt;/* Set SystemCoreClock variable. */&lt;BR /&gt;SystemCoreClock = BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 08:05:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1741936#M54471</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-10-18T08:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1742045#M54475</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have called the&amp;nbsp;BOARD_BootClockFROHF96M() api function and run it on my &lt;STRONG&gt;LPC54606j256 Microcontroller&lt;/STRONG&gt;, but&amp;nbsp;I&amp;nbsp;have problem in this function. Let me know if any other way to find this issue. Past 2weeks working on this still now I didn't solve this issue. So, I need help for this. Please if you have any suggestions tell me and what should i do next?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using &lt;STRONG&gt;IAR Embedded workbench IDE - Arm 9.32.2&lt;/STRONG&gt; tool and &lt;STRONG&gt;SDK version - 2.13.0&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example - &lt;STRONG&gt;dev_cdc_vcom_bm&lt;/STRONG&gt; for USB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm also using same&amp;nbsp;&lt;STRONG&gt;BOARD_BootClockFROHF96M(void) &lt;/STRONG&gt;function same code&lt;STRONG&gt;, &lt;/STRONG&gt;but I don't know, why its not working?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can you tell? should I change tool or SDK version (or) anything changes&amp;nbsp;in my code?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;void BOARD_BootClockFROHF96M(void)&lt;BR /&gt;{&lt;BR /&gt;/*! &amp;lt; Set up the clock sources */&lt;BR /&gt;/*! &amp;lt; Set up FRO */&lt;BR /&gt;POWER_DisablePD(kPDRUNCFG_PD_FRO_EN); /*!&amp;lt; Ensure FRO is on */&lt;BR /&gt;CLOCK_AttachClk(kFRO12M_to_MAIN_CLK); /*!&amp;lt; Switch to FRO 12MHz first to ensure we can change voltage without&lt;BR /&gt;accidentally being below the voltage for current speed */&lt;BR /&gt;POWER_SetVoltageForFreq(96000000U); /*!&amp;lt; Set voltage for the one of the fastest clock outputs: System clock output */&lt;BR /&gt;CLOCK_SetFLASHAccessCyclesForFreq(96000000U); /*!&amp;lt; Set FLASH wait states for core */&lt;/P&gt;&lt;P&gt;/*! &amp;lt; Need to make sure ROM and OTP has power(PDRUNCFG0[17,29]= 0U)&lt;BR /&gt;before calling this API since this API is implemented in ROM code */&lt;BR /&gt;CLOCK_SetupFROClocking(96000000U); /*!&amp;lt; Set up high frequency FRO output to selected frequency */&lt;/P&gt;&lt;P&gt;/*! &amp;lt; Set up dividers */&lt;BR /&gt;CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false); /*! &amp;lt; Reset divider counter and set divider to value 1 */&lt;/P&gt;&lt;P&gt;/*! &amp;lt; Set up clock selectors - Attach clocks to the peripheries */&lt;BR /&gt;CLOCK_AttachClk(kFRO_HF_to_MAIN_CLK); /*! &amp;lt; Switch MAIN_CLK to FRO_HF */&lt;BR /&gt;/* Set SystemCoreClock variable. */&lt;BR /&gt;SystemCoreClock = BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 10:40:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1742045#M54475</guid>
      <dc:creator>vijay_123</dc:creator>
      <dc:date>2023-10-18T10:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1743363#M54497</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Pls check if the &lt;FONT color="#FF0000"&gt;PDRUNCFG0[17,29]= 0U&lt;/FONT&gt;, which power up the ROM.&lt;/P&gt;
&lt;P&gt;Pls refer to section 7.5.84 Power Configuration register 0 in UM10912.pdf&lt;/P&gt;
&lt;P&gt;/*!&amp;lt; &lt;FONT color="#FF0000"&gt;Need to make sure ROM and OTP has power(PDRUNCFG0[17,29]= 0U&lt;/FONT&gt;)&lt;BR /&gt;before calling this API since this API is implemented in ROM code */&lt;BR /&gt;CLOCK_SetupFROClocking(96000000U); /*!&amp;lt; Set up high frequency FRO output to selected frequency */&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 03:47:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1743363#M54497</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-10-20T03:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1745628#M54538</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;XiangJun Rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Already, I checked the&amp;nbsp;&lt;SPAN&gt;PDRUNCFG0[17,29] =&amp;nbsp;0U and Power Configuration register 0, nothing&amp;nbsp;problem in the PDRUNCFG0 register. so,&amp;nbsp;please&amp;nbsp;find the image for your&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;reference.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 05:37:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1745628#M54538</guid>
      <dc:creator>vijay_123</dc:creator>
      <dc:date>2023-10-25T05:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1746603#M54548</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you suspect that the ROM address is incorrect, pls try to execute IAP instruction for example reading part identification number, for detailed inf, pls refer to section 5.6.5 Read part identification number in UM10912.pdf&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 05:25:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1746603#M54548</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-10-26T05:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1749395#M54586</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Now it's working in &lt;STRONG&gt;MCUXpresso IDE&lt;/STRONG&gt;, but I don't know why it's not working in IAR. I have problem in MCUXpresso IDE, that problem is some macro definitions&amp;nbsp;and functions are not defined in the code. so, I need your help.&lt;/P&gt;&lt;P&gt;macros:&lt;/P&gt;&lt;P&gt;FSL_FEATURE_USB_KHCI_KEEP_ALIVE_ENABLED&lt;/P&gt;&lt;P&gt;FSL_FEATURE_USB_KHCI_USB_RAM&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;USB_INTEN_TOKDNEEN_MASK and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;USB_INTEN_SOFTOKEN_MASK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Functions:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;BOARD_InitHardware&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;BOARD_DbgConsole_Deinit&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;BOARD_DbgConsole_Init&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;extern&lt;/SPAN&gt; &lt;SPAN&gt;uint8_t&lt;/SPAN&gt; &lt;SPAN&gt;USB_EnterLowpowerMode&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;In USB terminal (Tera term) we enter something, it's reflected in UART terminal like printing msg. when we are debugging the code.&lt;/P&gt;&lt;P&gt;We enter something in USB terminal, how do we know USB port data transfer send correctly or not?&lt;/P&gt;&lt;P&gt;I attached code for your reference, can you check and update me.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 13:25:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1749395#M54586</guid>
      <dc:creator>vijay_123</dc:creator>
      <dc:date>2023-10-31T13:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1750753#M54611</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I attached terminal output image for your reference. If I enter something in USB terminal, didn't reflecting in UART terminal because some macros and functions are not defined. so, it's not entering in the functions, I mentioned below and mark in red colour. you can refer the readme pdf for your reference.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;#if&lt;/SPAN&gt;&lt;SPAN&gt; defined(&lt;FONT color="#FF0000"&gt;FSL_FEATURE_USB_KHCI_KEEP_ALIVE_ENABLED&lt;/FONT&gt;) &amp;amp;&amp;amp; (&lt;FONT color="#FF0000"&gt;FSL_FEATURE_USB_KHCI_KEEP_ALIVE_ENABLED&lt;/FONT&gt; &amp;gt; 0U) &amp;amp;&amp;amp; \&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;defined(USB_DEVICE_CONFIG_KEEP_ALIVE_MODE) &amp;amp;&amp;amp; (USB_DEVICE_CONFIG_KEEP_ALIVE_MODE &amp;gt; 0U) &amp;amp;&amp;amp; \&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;defined(&lt;FONT color="#FF0000"&gt;FSL_FEATURE_USB_KHCI_USB_RAM&lt;/FONT&gt;) &amp;amp;&amp;amp; (&lt;FONT color="#FF0000"&gt;FSL_FEATURE_USB_KHCI_USB_RAM&lt;/FONT&gt; &amp;gt; 0U)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; ((s_waitForDataReceive))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (s_comOpen == 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Wait for all the packets been sent during opening the &lt;/SPAN&gt;&lt;SPAN&gt;com&lt;/SPAN&gt;&lt;SPAN&gt; port. Otherwise these packets may&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* wake up the system.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;usb_echo(&lt;/SPAN&gt;&lt;SPAN&gt;"Waiting to enter &lt;/SPAN&gt;&lt;SPAN&gt;lowpower&lt;/SPAN&gt;&lt;SPAN&gt; ...\r\n"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; (uint32_t i = 0U; i &amp;lt; 16000000U; ++i)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;__NOP(); &lt;/SPAN&gt;&lt;SPAN&gt;/* delay */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;s_comOpen = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;usb_echo(&lt;/SPAN&gt;&lt;SPAN&gt;"Enter &lt;/SPAN&gt;&lt;SPAN&gt;lowpower&lt;/SPAN&gt;&lt;SPAN&gt;\r\n"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;BOARD_DbgConsole_Deinit&lt;/FONT&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;USB0-&amp;gt;INTEN &amp;amp;= ~&lt;FONT color="#FF0000"&gt;USB_INTEN_TOKDNEEN_MASK&lt;/FONT&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;USB_EnterLowpowerMode&lt;/FONT&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;s_waitForDataReceive = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;USB0-&amp;gt;INTEN |= &lt;FONT color="#FF0000"&gt;USB_INTEN_TOKDNEEN_MASK&lt;/FONT&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;BOARD_DbgConsole_Init&lt;/FONT&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;usb_echo(&lt;/SPAN&gt;&lt;SPAN&gt;"Exit &lt;/SPAN&gt;&lt;SPAN&gt;lowpower&lt;/SPAN&gt;&lt;SPAN&gt;\r\n"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Nov 2023 06:12:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1750753#M54611</guid>
      <dc:creator>vijay_123</dc:creator>
      <dc:date>2023-11-02T06:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Handle error LPC54606 Microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1752419#M54636</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I suggest you download SDK package based on Windows and MCUXPresso tools.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuxpresso.nxp.com/en/select" target="_blank"&gt;https://mcuxpresso.nxp.com/en/select&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 02:51:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Handle-error-LPC54606-Microcontroller/m-p/1752419#M54636</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-11-06T02:51:31Z</dc:date>
    </item>
  </channel>
</rss>

