<?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: LPC11E35 1.8V HardFault just at debug start in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980691#M38714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I wrote in first post - All connections (SWDIO, SWDCLK, RESET) are done via &lt;SPAN class=""&gt;ST2378E&lt;/SPAN&gt; (8-bit dual supply 1.71 to 5.5 V bidirectional level translator with 13Mbps g&lt;SPAN class=""&gt;uaranteed data rate&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;Is this translator fast enough ? Or should use sth else ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My IC is LPC11E35FHI33/501. In MCUXpresso is selected 11E35/501.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2019 22:59:59 GMT</pubDate>
    <dc:creator>leg7911</dc:creator>
    <dc:date>2019-11-19T22:59:59Z</dc:date>
    <item>
      <title>LPC11E35 1.8V HardFault just at debug start</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980685#M38708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;BR /&gt;I'm fighting with LPC11E35 &lt;BR /&gt;I've nerver such a problem with other LPCs, but I've never used them at 1.8v&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;I'v got hard fault just after starting the debug&lt;/STRONG&gt; (via LPCLink LPC1768)&lt;BR /&gt;My target board runs at 1.8V so I'm using &lt;SPAN class=""&gt;ST2378E&lt;/SPAN&gt; (8-bit dual supply 1.71 to 5.5 V bidirectional level translator with 13Mbps g&lt;SPAN class=""&gt;uaranteed data rate&lt;/SPAN&gt;) &lt;BR /&gt;Is it enough for SWD ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once or twice I've reached ResetISR where I'v put a brakpoint in first line(in dummy loop), &lt;BR /&gt;then I was able to go step by step.&lt;BR /&gt;But all other attempts just HardFault :&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I wonder what can be wrong&lt;BR /&gt;Any suggestions ?&lt;BR style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" /&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/tag/lpc11exx/tg-p"&gt;#lpc11exx&lt;/A&gt; &lt;A href="https://community.nxp.com/t5/tag/lpc11e35/tg-p"&gt;#lpc11e35&lt;/A&gt; &lt;A href="https://community.nxp.com/t5/tag/1.8v/tg-p"&gt;#1.8v&lt;/A&gt;‌ &lt;A href="https://community.nxp.com/t5/tag/hardfault/tg-p"&gt;#hardfault&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2019 15:08:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980685#M38708</guid>
      <dc:creator>leg7911</dc:creator>
      <dc:date>2019-11-12T15:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11E35 1.8V HardFault just at debug start</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980686#M38709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Grzegorz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you try using other source code to test this? Maybe only the toggling a pin so you can be sure the software is not the problem. In the LCPOpen the one for the LPC11U35 should be compatible with this MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 18:30:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980686#M38709</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-11-13T18:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11E35 1.8V HardFault just at debug start</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980687#M38710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possibly it is not supplying enough current to program the flash. Does the flash contain the values you expect?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 21:31:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980687#M38710</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-11-13T21:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11E35 1.8V HardFault just at debug start</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980688#M38711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've started next project, but this time using traditional CMSIS instead LPCOpen. &lt;BR /&gt;Easiest "while(1)" with printf via semihost at the beginning works now without any problem.&lt;BR /&gt;It seems that sth is wrong at creator when I choose lpc_chip_11uxx.lib. (it was pointed on this forum as a best match)&lt;BR /&gt;My preverious project/srce didnt get in to "ResetISR", and now changing library it works. So I gues lib isn't work well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 22:37:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980688#M38711</guid>
      <dc:creator>leg7911</dc:creator>
      <dc:date>2019-11-13T22:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11E35 1.8V HardFault just at debug start</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980689#M38712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two more strange issues.&lt;BR /&gt;1 - debugger doesn't hit main (it is checked in debug menu - i tried both with and w/o "force HW brakpoint")&lt;/P&gt;&lt;P&gt;Even if I setup breakpoint somewhere at the beginning it doesn't stop there.&lt;BR /&gt;I have to pause running program, put breakpoint - then it stops at the breakpoint after restarting&lt;/P&gt;&lt;P&gt;Any clue ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2 - printf cause hard fault - it is set semihost in one place.&lt;/P&gt;&lt;P&gt;Project Properties -&amp;gt;c/c++ Build -&amp;gt; Settings -&amp;gt;Tool Settings -&amp;gt;MCU Linker -&amp;gt; Menaged Linker Scripts -&amp;gt; Library : Redlib (semihost)&lt;BR /&gt;Is there other places to set it ?&lt;/P&gt;&lt;P&gt;It was working when I create this project and it was "empty", and I was adding only my code which works. But whenever I use "printf" directly goes to hardfault.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 17:52:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980689#M38712</guid>
      <dc:creator>leg7911</dc:creator>
      <dc:date>2019-11-19T17:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11E35 1.8V HardFault just at debug start</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980690#M38713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I seem to remember that the original LPC-Link probe did not support debug of targets&amp;nbsp;below 3.3v. So I'm sort of surprised you have had any luck with this !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that aside, exactly what part do you have on your board - and what MCU&amp;nbsp;is selected in the Project properties for your projects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its possible if the MCU&amp;nbsp;you have selected in the IDE and the part on your board don't match - then a difference in the layout / size of RAM available could be triggering the hard fault (due to the stack being placed in memory that doesn't actually exist on your hardware).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 20:04:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980690#M38713</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2019-11-19T20:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11E35 1.8V HardFault just at debug start</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980691#M38714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I wrote in first post - All connections (SWDIO, SWDCLK, RESET) are done via &lt;SPAN class=""&gt;ST2378E&lt;/SPAN&gt; (8-bit dual supply 1.71 to 5.5 V bidirectional level translator with 13Mbps g&lt;SPAN class=""&gt;uaranteed data rate&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;Is this translator fast enough ? Or should use sth else ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My IC is LPC11E35FHI33/501. In MCUXpresso is selected 11E35/501.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 22:59:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980691#M38714</guid>
      <dc:creator>leg7911</dc:creator>
      <dc:date>2019-11-19T22:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11E35 1.8V HardFault just at debug start</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980692#M38715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally I've found reason :smileygrin: ... PLL (PLL itself or speed)!&lt;BR /&gt;Now I can debug running with IRC directly. &lt;BR /&gt;Is it written somewhere - the relation speed vs voltage ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second issue, &lt;BR /&gt;the moment I've switch to IRC (I disabled "CLOCK_SETUP" in "system_LPC11Exx.c")&lt;/P&gt;&lt;P&gt;I have no interrupt hit "I2C_IRQHandler" neither "SysTick_Handler", which was working with PLL.&lt;BR /&gt;What I missed ?&lt;BR /&gt;&lt;BR /&gt;After a moment I've discovered it has exception (IPSR = 0x3 - Hard Fault) just from the beginning - first line of ResetISR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:38:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11E35-1-8V-HardFault-just-at-debug-start/m-p/980692#M38715</guid>
      <dc:creator>leg7911</dc:creator>
      <dc:date>2019-11-25T14:38:14Z</dc:date>
    </item>
  </channel>
</rss>

