<?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: How to debug a project that doesn't get to main()? in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799072#M2805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you designed your circuit so it will follows the&amp;nbsp;&lt;A href="https://community.nxp.com/thread/388998"&gt;https://community.nxp.com/thread/388998&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2018 21:01:03 GMT</pubDate>
    <dc:creator>converse</dc:creator>
    <dc:date>2018-11-14T21:01:03Z</dc:date>
    <item>
      <title>How to debug a project that doesn't get to main()?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799064#M2797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to MCUXpresso and feel like I must be doing something wrong.&amp;nbsp; I can program an LPCXpresso 812 board with the blinky LPCOpen project, but when I try to do something similar for a custom board I'm using I'm getting nowhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My board has the LPC812M101JDH16 and has a 10-pin SWD header and some GPIO.&amp;nbsp; It will run from the IRC oscillator.&amp;nbsp; I'm going through the LPCOpen project flow creating a new 'MCUXpresso IDE' project, picking the 812 and using the LPCOpen libraries I've imported into the workspace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default main() that is built with the project just enters an infinite loop.&amp;nbsp; If I try to launch the debugger, the MCU is programmed and starts executing but if I pause it I see that its suspended at 0x1fff_00c4.&amp;nbsp; If I add breakpoints inside Chip_SystemInit() or main() they don't fire.&amp;nbsp; Not sure where to start from here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2018 14:13:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799064#M2797</guid>
      <dc:creator>shareefjalloq</dc:creator>
      <dc:date>2018-11-04T14:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a project that doesn't get to main()?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799065#M2798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;So after some more reading, that address of 0x1fff_00c4 is in the boot ROM sector.&amp;nbsp; Why would there be an infinite loop in the boot code?&amp;nbsp; Isn't the job of the boot code just to copy what's in flash to RAM?&amp;nbsp; Have I hit an unhandled exception before the boot code has finished?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 08:41:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799065#M2798</guid>
      <dc:creator>shareefjalloq</dc:creator>
      <dc:date>2018-11-05T08:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a project that doesn't get to main()?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799066#M2799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try setting a breakpoint on ResetISR. This is the first peice of User code executed after the boot rom. If it doesn’t reach there, then you probably have a problem with your reset vector (or initial stack pointer) or, perhaps, you have not set the vector checksum correctly&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 12:45:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799066#M2799</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2018-11-05T12:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a project that doesn't get to main()?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799067#M2800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to the information from ConVerse, I would also suggest checking how you have the MCU's ISP pin connected.&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>Mon, 05 Nov 2018 13:10:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799067#M2800</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2018-11-05T13:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a project that doesn't get to main()?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799068#M2801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; I think I tried setting a breakpoint on the ResetISR and it didn't fire.&amp;nbsp; I'll double check later.&amp;nbsp; However, aren't the things you suggested trying not under my control? The IDE should calculate the checksum and insert it right?&amp;nbsp; Are there any user set configs that I should check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 16:12:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799068#M2801</guid>
      <dc:creator>shareefjalloq</dc:creator>
      <dc:date>2018-11-05T16:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a project that doesn't get to main()?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799069#M2802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; I tried setting the CRP to NO_ISP yesterday and it didn't help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 16:13:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799069#M2802</guid>
      <dc:creator>shareefjalloq</dc:creator>
      <dc:date>2018-11-05T16:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a project that doesn't get to main()?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799070#M2803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the build log to see if the checksum is being added (typically by running the checksum utility). However, strongly suggest you try LPCXpresso support's suggestion and check that the ISP pin is not stuck 'high'. This would certainly cause you to get stuck in the boot ROM (as would an invalid checksum).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 17:15:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799070#M2803</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2018-11-05T17:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a project that doesn't get to main()?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799071#M2804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I've now populated a second PCB with no connections on the ISP pin, PIO0_12.&amp;nbsp; I've checked this pin and it's sat at 3V3.&amp;nbsp; There's nothing on this board but the debug header, a 3V3 regulator and the TSSOP16 LPC812.&amp;nbsp; And I still can't even download a blinky example.&amp;nbsp; What have I forgotten or missed in the datasheet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the output from the debugger...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MCUXpresso IDE RedlinkMulti Driver v10.2 (Jul 25 2018 11:29:34 - crt_emu_cm_redlink build 555)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Reconnected to existing link server&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Connecting to probe 1 core 0:0 (using server started externally) gave 'OK'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Probe Firmware: LPC-Link Probe v1.3 (NXP - LPC-Link)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Serial Number:&amp;nbsp; WIN64HS12&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;VID:PID:&amp;nbsp; 1FC9:0009&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;USB Path:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Using memory from core 0:0 after searching for a good core&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expecting vector catch on SYSRESETREQ signal&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;debug interface type&amp;nbsp; &amp;nbsp; &amp;nbsp; = Cortex-M0+ (DAP DP ID 0BC11477) over SWD TAP 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;processor type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = Cortex-M0+ (CPU ID 00000C60) on DAP AP 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;number of h/w breakpoints = 4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;number of flash patches &amp;nbsp; = 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;number of h/w watchpoints = 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Probe(0): Connected&amp;amp;Reset. DpID: 0BC11477. CpuID: 00000C60. Info: &amp;lt;None&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Content of CoreSight Debug ROM(s):&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RBASE E00FF000: CID B105100D PID 04000BB4C0 ROM dev (type 0x1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ROM 1 E000E000: CID B105E00D PID 04000BB008 ChipIP dev SCS (type 0x0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ROM 1 E0001000: CID B105E00D PID 04000BB00A ChipIP dev DWT (type 0x0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ROM 1 E0002000: CID B105E00D PID 04000BB00B ChipIP dev FPB (type 0x0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Inspected v.2 On-chip Flash Memory LPC800_16.cfx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Image 'LPC800 (16K) Jul 25 2018 11:19:17'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NXP: LPC812&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Connected: was_reset=true. was_stopped=false&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Awaiting telnet connection to port 3330 ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;GDB nonstop mode enabled&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Opening flash driver LPC800_16.cfx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sending SYSRESETREQ to run flash driver&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Writing 2944 bytes to address 0x00000000 in Flash&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;After error Nn(05). Wire ACK Fault in DAP access -&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Failed to read address register in DAP - Nn(05). Wire ACK Fault in DAP access&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;failed read EraseSector message readyness - rc Em(17). Debug port inaccessible after access at location 0x10000C00&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Closing flash driver LPC800_16.cfx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;failed read Terminate message readyness - rc Em(12). Target rejected debug access at location 0x10000C08&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Target error from Commit Flash write: Em(17). Debug port inaccessible after access at location 0x10000C00&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Closing flash driver LPC800_16.cfx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;GDB stub (crt_emu_cm_redlink) terminating - GDB protocol problem: Pipe has been closed by GDB.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 19:13:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799071#M2804</guid>
      <dc:creator>shareefjalloq</dc:creator>
      <dc:date>2018-11-14T19:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a project that doesn't get to main()?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799072#M2805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you designed your circuit so it will follows the&amp;nbsp;&lt;A href="https://community.nxp.com/thread/388998"&gt;https://community.nxp.com/thread/388998&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 21:01:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799072#M2805</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2018-11-14T21:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a project that doesn't get to main()?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799073#M2806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The board I'm using now has nothing but the MCU and the debug connector attached.&amp;nbsp; The MCU has internal pull-ups on all the SWD pins during reset and I'm connecting an LPC-Link which also pulls up all the relevant pins.&amp;nbsp; What are you suggesting might be wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 21:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799073#M2806</guid>
      <dc:creator>shareefjalloq</dc:creator>
      <dc:date>2018-11-14T21:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a project that doesn't get to main()?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799074#M2807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a side note, when I started to search for the errors in the log above, I found notes related to LPCLink vs LPCLink2.&amp;nbsp; I was trying to download using an LPCXpresso LPC1769 from 2010.&amp;nbsp; I then tried a V3 board with LPCLink2, the LPCXpresso43xx/18xx, and I can't get this to enumerate.&amp;nbsp; I've now read the help files and downloaded lpcscrypt, but nothing seems to find it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there limitations with the first version of LPCLink or am I just digging myself another hole?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 21:49:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799074#M2807</guid>
      <dc:creator>shareefjalloq</dc:creator>
      <dc:date>2018-11-14T21:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a project that doesn't get to main()?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799075#M2808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Meh, after making sure all the voltages were what I expected I found my obvious mistake, I missed that the ground fill on the MCU GND pin isn't actually connected to ground.&amp;nbsp; I made some quick adjustments to the layout and forgot to run DRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: just to be clear, I've been debugging two boards here.&amp;nbsp; The first one that seems to hit an unhandled ISR I think must be due to trying to reuse the SWD pins which I still need to sort out.&amp;nbsp; But I'd made a new layout with a footprint fix and was trying to debug on that board with nothing but the MCU hooked up.&amp;nbsp; No board is so simple that you can get away without running DRC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2018 00:43:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799075#M2808</guid>
      <dc:creator>shareefjalloq</dc:creator>
      <dc:date>2018-11-16T00:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a project that doesn't get to main()?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799076#M2809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I do have one related further question.&amp;nbsp; In the LPC81x datasheet it talks about 3&amp;nbsp;revision identifiers&amp;nbsp;that have the ISP entry pin in different locations, 1A, 2B and 4C.&amp;nbsp; There's also a comment that the TSSOP16 package doesn't have this identifier.&amp;nbsp; So how do I know which pin the ISP entry is on?&amp;nbsp; The package I have has the markings, 'LPC812 M101J 04 02 XD37'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2018 14:56:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-debug-a-project-that-doesn-t-get-to-main/m-p/799076#M2809</guid>
      <dc:creator>shareefjalloq</dc:creator>
      <dc:date>2018-11-16T14:56:19Z</dc:date>
    </item>
  </channel>
</rss>

