<?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のトピックMCUXpresso LPC1102 build not working</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCUXpresso-LPC1102-build-not-working/m-p/1561909#M50884</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using MCUXpresso to program my LPC1102 with a simple toggleLED. When I debug it, the microcontroller is getting flashed and the Debugger starts (I am using the MCU Link Probe). However immediatly after that the microcontroller returns a Hardfault and the debugger console states that the main function was not defined. So I had a closer look at the assembly file and it just contains the section definitions and setups, some frame dummy, an init function that does first push registers and then immediatly pops them and a finish function. But not a main function. This leads me to the conclusion that something must be wrong at compiling/linking/assembling.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Nikolaus&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 09:26:43 GMT</pubDate>
    <dc:creator>Nikolaus</dc:creator>
    <dc:date>2022-11-30T09:26:43Z</dc:date>
    <item>
      <title>MCUXpresso LPC1102 build not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCUXpresso-LPC1102-build-not-working/m-p/1561909#M50884</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using MCUXpresso to program my LPC1102 with a simple toggleLED. When I debug it, the microcontroller is getting flashed and the Debugger starts (I am using the MCU Link Probe). However immediatly after that the microcontroller returns a Hardfault and the debugger console states that the main function was not defined. So I had a closer look at the assembly file and it just contains the section definitions and setups, some frame dummy, an init function that does first push registers and then immediatly pops them and a finish function. But not a main function. This leads me to the conclusion that something must be wrong at compiling/linking/assembling.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Nikolaus&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 09:26:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCUXpresso-LPC1102-build-not-working/m-p/1561909#M50884</guid>
      <dc:creator>Nikolaus</dc:creator>
      <dc:date>2022-11-30T09:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso LPC1102 build not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCUXpresso-LPC1102-build-not-working/m-p/1562092#M50889</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; So I had a closer look at the assembly file and it just contains the section definitions and setups, some frame dummy, an init function that does first push registers and then immediatly pops them and a finish function. But not a main function.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If that was the case, the linker would report an error, and the build would fail.&lt;BR /&gt;Because the startup code requires a label &lt;FONT face="courier new,courier"&gt;_main&lt;/FONT&gt; which it executes at the end of the reset vector handler.&lt;BR /&gt;In my case (a LPC54628), defined in the source file &lt;FONT face="courier new,courier"&gt;startup_lpc54628.c&lt;/FONT&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt; However immediatly after that the microcontroller returns a Hardfault and the debugger console states that the main function was not defined.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I would suggest to either debug through the startup code to see where the hardfault happens, or evaluate the respective SCB registers (&lt;A href="https://wiki.segger.com/Cortex-M_Fault)" target="_blank"&gt;https://wiki.segger.com/Cortex-M_Fault)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;But usually, either the clock initialisation fails, or a memory address to an undefined/illegal address occurs.&lt;BR /&gt;The former (clock init fail) often happens with code intended for boards with different quartz settings or different clock sources. In other words, init code intended for different boards.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 15:07:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCUXpresso-LPC1102-build-not-working/m-p/1562092#M50889</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2022-11-30T15:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso LPC1102 build not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCUXpresso-LPC1102-build-not-working/m-p/1563206#M50919</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209051"&gt;@Nikolaus&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recommend debug from startup code step by step, check where it run to&amp;nbsp;&lt;SPAN&gt;Hardfault refer to Frank's suggestion.&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>Fri, 02 Dec 2022 05:12:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCUXpresso-LPC1102-build-not-working/m-p/1563206#M50919</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-12-02T05:12:22Z</dc:date>
    </item>
  </channel>
</rss>

