<?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>MCX MicrocontrollersのトピックRe: Why I could not debug simple MCXXN546 code in MCUXpresso IDE, getting stuck inside the startup f</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/Why-I-could-not-debug-simple-MCXXN546-code-in-MCUXpresso-IDE/m-p/2321299#M4881</link>
    <description>Hi, kindly check my MCXN546VKL pinout design and debug configuration to solve my issue</description>
    <pubDate>Mon, 23 Feb 2026 13:35:03 GMT</pubDate>
    <dc:creator>Elakiya</dc:creator>
    <dc:date>2026-02-23T13:35:03Z</dc:date>
    <item>
      <title>Why I could not debug simple MCXXN546 code in MCUXpresso IDE, getting stuck inside the startup file?</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Why-I-could-not-debug-simple-MCXXN546-code-in-MCUXpresso-IDE/m-p/2321023#M4877</link>
      <description>&lt;P&gt;Hello, I have tried to flash and debug simple uart test project code to my customized MCXn546VKL PCB board through segger J-Link, once I start my debugging it stuck inside the file startup_mcxn546_cm33_core0.c as shown in screen shot, and heap, stack shows 0% used and stack sometime overflow.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_debug.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/377494i5AD4B1451F4072B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_debug.png" alt="Screenshot_debug.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And in console tab I am getting&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[MCUXpresso Semihosting Telnet console for 'MCXN546_Project JLink Debug' started on port 60310 @ 127.0.0.1]SEGGER J-Link GDB Server V8.44 - Terminal output channel&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;If I try to pause and resume, it is entering to break page and showing "&lt;STRONG&gt;Break at address "0x20018040" with no debug information available, or outside of program code."&lt;/STRONG&gt;&lt;BR /&gt;&lt;A title="https://community.nxp.com/t5/user/viewprofilepage/user-id/231807" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231807" target="_blank" rel="noreferrer noopener"&gt;&lt;STRONG&gt;@Habib_MS&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="debug_config.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/377495i69F619E44C1F554D/image-size/large?v=v2&amp;amp;px=999" role="button" title="debug_config.png" alt="debug_config.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;BR /&gt;I have added above my debug config screenshot and PCB circuit design of the customized MCXN546v power pinout .png file is attached with post. Please analyse both hardware circuit and software tools to find the solution for my debug issue.&amp;nbsp;Kindly check the PCB circuit and debug config to solve my issue. Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 21 Feb 2026 18:02:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Why-I-could-not-debug-simple-MCXXN546-code-in-MCUXpresso-IDE/m-p/2321023#M4877</guid>
      <dc:creator>Elakiya</dc:creator>
      <dc:date>2026-02-21T18:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why I could not debug simple MCXXN546 code in MCUXpresso IDE, getting stuck inside the startup f</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Why-I-could-not-debug-simple-MCXXN546-code-in-MCUXpresso-IDE/m-p/2321299#M4881</link>
      <description>Hi, kindly check my MCXN546VKL pinout design and debug configuration to solve my issue</description>
      <pubDate>Mon, 23 Feb 2026 13:35:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Why-I-could-not-debug-simple-MCXXN546-code-in-MCUXpresso-IDE/m-p/2321299#M4881</guid>
      <dc:creator>Elakiya</dc:creator>
      <dc:date>2026-02-23T13:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why I could not debug simple MCXXN546 code in MCUXpresso IDE, getting stuck inside the startup f</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Why-I-could-not-debug-simple-MCXXN546-code-in-MCUXpresso-IDE/m-p/2326142#M4935</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/259802"&gt;@Elakiya&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;DIV&gt;
&lt;P&gt;Sorry for the late reply. Before reviewing your schematic, could you please confirm whether you are using LDO mode or DCDC mode?&lt;/P&gt;
&lt;P&gt;For the HLQFP 100 package, I recommend referring to the “3.2 HLQFP100 package” section in our latest UG10092 document.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=UG10092&amp;amp;amp;location=null" target="_self"&gt;MCX N Series Hardware Design Guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You may also refer to UG10343, although it was written for the N23x series, it is still applicable to the N54x series.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=UG10343&amp;amp;amp;location=null" target="_self"&gt;MCX N23 HLQFP100 Hardware Design Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest paying particular attention to the power supply part and the debug part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you have made any progress or if you have any further questions.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Mar 2026 09:30:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Why-I-could-not-debug-simple-MCXXN546-code-in-MCUXpresso-IDE/m-p/2326142#M4935</guid>
      <dc:creator>Celeste_Liu</dc:creator>
      <dc:date>2026-03-04T09:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why I could not debug simple MCXXN546 code in MCUXpresso IDE, getting stuck inside the startup f</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Why-I-could-not-debug-simple-MCXXN546-code-in-MCUXpresso-IDE/m-p/2326875#M4959</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237877"&gt;@Celeste_Liu&lt;/a&gt;, We are using DC-DC mode and faced the above problem which hangs during debugging and shown Stack, Heap memory 0.0% usage or overflow and we have changed the stack location with code few lines in project_debug.ld file, and in the Properties -&amp;gt; C/C++ Build -&amp;gt; setting -&amp;gt; MCU Linker -&amp;gt; Manage Linker Script is unchecked to make this changes in .ld file included the screenshot with this post.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_vStackTop&lt;/SPAN&gt; = 0x20037FF0;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_vStackBase&lt;/SPAN&gt; = _vStackTop - _StackSize;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.stack _vStackBase (&lt;SPAN&gt;NOLOAD&lt;/SPAN&gt;) : &lt;SPAN&gt;ALIGN&lt;/SPAN&gt;(4)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; = _StackSize;&amp;nbsp;&lt;/P&gt;&lt;P&gt;} &amp;gt; &lt;SPAN&gt;SRAM&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&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="stack_code.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/378409iCA9B884AB8A9C432/image-size/large?v=v2&amp;amp;px=999" role="button" title="stack_code.png" alt="stack_code.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;After making this changes, it is debugging and running, but why this changes is need in all the generated project file to make it work. Why do I face this problem stack memory? Please give clear explanation. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2026 09:11:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Why-I-could-not-debug-simple-MCXXN546-code-in-MCUXpresso-IDE/m-p/2326875#M4959</guid>
      <dc:creator>Elakiya</dc:creator>
      <dc:date>2026-03-05T09:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why I could not debug simple MCXXN546 code in MCUXpresso IDE, getting stuck inside the startup f</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Why-I-could-not-debug-simple-MCXXN546-code-in-MCUXpresso-IDE/m-p/2335869#M5049</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/259802"&gt;@Elakiya&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;DIV&gt;
&lt;P&gt;I reviewed the linker script in the SDK and I don’t think there is anything wrong with it. As for why your modifications are required in order to debug successfully, I suspect the issue may be related to your application code rather than the linker script itself.&lt;/P&gt;
&lt;P&gt;Have you ever enabled TrustZone or any secure features on this MCU?&lt;/P&gt;
&lt;P&gt;If you create a new empty project—with no custom code added—and do not modify the .ld&amp;nbsp;file, please test whether the issue “Stack, Heap memory 0.0% usage or overflow” still occurs. Steps see attached. This will help determine whether the problem is caused by the linker script or by the application code.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Mar 2026 10:54:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Why-I-could-not-debug-simple-MCXXN546-code-in-MCUXpresso-IDE/m-p/2335869#M5049</guid>
      <dc:creator>Celeste_Liu</dc:creator>
      <dc:date>2026-03-19T10:54:45Z</dc:date>
    </item>
  </channel>
</rss>

