<?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: Hard fault when programming LPC844 using LPC-Link2 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-when-programming-LPC844-using-LPC-Link2/m-p/1156484#M42320</link>
    <description>&lt;P&gt;Ya know... If you're using an LPC844, it may be worthwhile selecting "LPC844" instead of "LPC845" when creating the project. Grr! I missed that the Hello World for the LPC845-BRK is created for ... (wait for it) ... the LPC845 and my own board uses the LPC844.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recreated a Hello World for the LPC844 and all is well now. Yay.&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
    <pubDate>Mon, 21 Sep 2020 19:23:50 GMT</pubDate>
    <dc:creator>tomchr</dc:creator>
    <dc:date>2020-09-21T19:23:50Z</dc:date>
    <item>
      <title>Hard fault when programming LPC844 using LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-when-programming-LPC844-using-LPC-Link2/m-p/1156424#M42318</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;So... I'm not having the best day. I'm trying to program an LPC84x using the LPC-Link2. I have successfully programmed a Hello World example into the LPC845-BRK eval board (where I fitted the 10-pin programming connector CN3 and jumper JP2). The Hello World example is simply an empty semihosted C project from the MCUXpresso IDE. When I run this program on the LPC845-BRK I do indeed get "Hello World" printed in the terminal. Yay!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm trying to get this working on a board of by own design. This board uses the LPC844 (LPC844M201JBD48E to be specific). The programming seems to go just fine, but I get a hard fault as soon as the first line of code is executed (HardFault_Handler() at cr_startup_lpc84x.c:322 0x1fa).&lt;/P&gt;&lt;P&gt;I have verified with an ohmmeter that the connections from the 10-pin connector to the MCU are good. I have verified that the target board does indeed get 3.3 V from the LPC-Link2. For the connections to the programming connector, I simply copied what was in the LPC845-BRK schematic (10 kΩ pull-up on SWDIO, SWCLK, and RESET). PIO0_12 is pulled high by a 10 kΩ pull-up. I have tried removing the pull-ups on SWDIO, SWCLK, and RESET as they're optional according to the data sheet. I've also tried with a pull-up on RESET and PIO0_12 only. No dice.&lt;/P&gt;&lt;P&gt;I bought the LPC844 from Mouser a month or two back.&lt;/P&gt;&lt;P&gt;I would appreciate any help getting this to work.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 17:41:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-when-programming-LPC844-using-LPC-Link2/m-p/1156424#M42318</guid>
      <dc:creator>tomchr</dc:creator>
      <dc:date>2020-09-21T17:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault when programming LPC844 using LPC-Link2</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-when-programming-LPC844-using-LPC-Link2/m-p/1156484#M42320</link>
      <description>&lt;P&gt;Ya know... If you're using an LPC844, it may be worthwhile selecting "LPC844" instead of "LPC845" when creating the project. Grr! I missed that the Hello World for the LPC845-BRK is created for ... (wait for it) ... the LPC845 and my own board uses the LPC844.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recreated a Hello World for the LPC844 and all is well now. Yay.&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 19:23:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-when-programming-LPC844-using-LPC-Link2/m-p/1156484#M42320</guid>
      <dc:creator>tomchr</dc:creator>
      <dc:date>2020-09-21T19:23:50Z</dc:date>
    </item>
  </channel>
</rss>

