<?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のトピック回复： In UART protocol test MCXN546VKL, it stuck at while (0U == (base-&amp;gt;STAT &amp;amp; LPUART_STAT_TDRE</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2338211#M5076</link>
    <description>&lt;P&gt;Hi&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;P&gt;Sorry for the late reply,&amp;nbsp;have you tried creating a freertos project based on the mcxn946 SDK package?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2026-03-24_15-49-09.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/380164i9A52E7D11A0715F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snipaste_2026-03-24_15-49-09.png" alt="Snipaste_2026-03-24_15-49-09.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2026 07:50:36 GMT</pubDate>
    <dc:creator>Harry_Zhang</dc:creator>
    <dc:date>2026-03-24T07:50:36Z</dc:date>
    <item>
      <title>In UART protocol test MCXN546VKL, it stuck at while (0U == (base-&gt;STAT &amp; LPUART_STAT_TDRE_MASK))?</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2326796#M4957</link>
      <description>&lt;P&gt;Hi, I am new with NXP, I am trying to test LPUART protocol in the MCUXpresso IDE with our MCXN546VKL PCB with UART PIO8 and PIO9 pins to IoT module, before that I try to test the TX and RX function for the UART polling and DMA. In simple loopback UART test with polling mode, when I try to send sample data through uart TX it stuck at "&lt;SPAN&gt;while (0U == (base-&amp;gt;STAT &amp;amp; LPUART_STAT_TDRE_MASK))" in fsl_lpuart.c file. I given 12MHz for FLEXCOMM4 and 150MHz for system clock, why this is happening, I have attached .png file of configuration screenshot also with this post please check and give clear details. Thank you&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clock_config.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/378386iC67B52832CB1F79A/image-size/large?v=v2&amp;amp;px=999" role="button" title="clock_config.png" alt="clock_config.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2026 07:29:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2326796#M4957</guid>
      <dc:creator>Elakiya</dc:creator>
      <dc:date>2026-03-05T07:29:58Z</dc:date>
    </item>
    <item>
      <title>回复： In UART protocol test MCXN546VKL, it stuck at while (0U == (base-&gt;STAT &amp; LPUART_STAT_TDRE</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2327612#M4981</link>
      <description>&lt;P&gt;Hi&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 id="tinyMceEditorHarry_Zhang_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;On MCXN devices, the TDRE bit only becomes 1 when the UART module is actually clocked and the TX FIFO level is less than or equal to the configured TX watermark.&lt;/P&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="Snipaste_2026-03-06_15-54-56.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/378536i2A272B1BC02BB6A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snipaste_2026-03-06_15-54-56.png" alt="Snipaste_2026-03-06_15-54-56.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; May I ask if you have enabled the FlexComm clock?&lt;/P&gt;
&lt;P&gt;I think you can refer to the mcxn547 sdk lpuart demo.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2026-03-06_15-57-57.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/378537i94961812DA3C4219/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snipaste_2026-03-06_15-57-57.png" alt="Snipaste_2026-03-06_15-57-57.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 07:59:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2327612#M4981</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-03-06T07:59:23Z</dc:date>
    </item>
    <item>
      <title>回复： In UART protocol test MCXN546VKL, it stuck at while (0U == (base-&gt;STAT &amp; LPUART_STAT_TDRE</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2328650#M4999</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;, I have MCXN546VKL PCB board, but as per your instruction I have used example file of LPUART polling from the SDK of MCXN547V for same pin PIO8 and PIO9 of uart pins and manually changed in &lt;STRONG&gt;GlobalInfo &lt;/STRONG&gt;of&amp;nbsp;the processor and package_id to MCXN456VKL inside the clock_config.c and pin_mux.c.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;processor: MCXN546&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;package_id: MCXN546VKL&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And build the project, without any error it is transmitting and receiving the UART polling operation fine, but still I get a error notification inside the pin configuration setting. I have shared the screenshot of the notification and error issue shown in Problem Tool: MCUconfiguration.&lt;BR /&gt;&lt;BR /&gt;How can I quick fix the error, by changing the processor setting also from MCXN547 to MCXN546 in configuration to remove the error notification from the configuration page. Please check my screenshot and update the solution. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="processorNotification.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/378656iD43E6A6BD3E7869E/image-size/large?v=v2&amp;amp;px=999" role="button" title="processorNotification.png" alt="processorNotification.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error_chip.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/378657i6788A83950BE0EB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="error_chip.png" alt="error_chip.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Mar 2026 06:13:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2328650#M4999</guid>
      <dc:creator>Elakiya</dc:creator>
      <dc:date>2026-03-09T06:13:41Z</dc:date>
    </item>
    <item>
      <title>回复： In UART protocol test MCXN546VKL, it stuck at while (0U == (base-&gt;STAT &amp; LPUART_STAT_TDRE</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2338150#M5074</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;, Kindly&amp;nbsp;give me update and solution above issue, I need to run my in project in startup_mcxn546_cm33_core0.c instead of running in startup_mcxn547_cm33_core0.c. If I create in manually, I am getting clock config issue in uart and MCU. I have changed my processor and clock manually to mcxn546 from mcxn547, but I could not make changes in startup file and also processor error warning inside my chip configuration page. Or please provide my simple project in mcxn546 configuartion with freeRTOS in UART polling &amp;amp; DMA operation test code. Kindly give me update for the above issue. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 06:27:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2338150#M5074</guid>
      <dc:creator>Elakiya</dc:creator>
      <dc:date>2026-03-24T06:27:02Z</dc:date>
    </item>
    <item>
      <title>回复： In UART protocol test MCXN546VKL, it stuck at while (0U == (base-&gt;STAT &amp; LPUART_STAT_TDRE</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2338211#M5076</link>
      <description>&lt;P&gt;Hi&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;P&gt;Sorry for the late reply,&amp;nbsp;have you tried creating a freertos project based on the mcxn946 SDK package?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2026-03-24_15-49-09.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/380164i9A52E7D11A0715F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snipaste_2026-03-24_15-49-09.png" alt="Snipaste_2026-03-24_15-49-09.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 07:50:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2338211#M5076</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-03-24T07:50:36Z</dc:date>
    </item>
    <item>
      <title>回复： In UART protocol test MCXN546VKL, it stuck at while (0U == (base-&gt;STAT &amp; LPUART_STAT_TDRE</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2338264#M5078</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;&amp;nbsp;, I have not created it in mcxn546 or mcxn946, but I tried to run basic uart operation first in mcxn546, it was not working and making clock issue in uart and mcu. So I created mcxn547 example uart polling project from sdk and changed its processor and package id manually in pin_mux.c and clock_config.c to build and make it for mcxn546 mcu. It is sending and receiving the uart data&amp;nbsp; in my mcxn546 board.&amp;nbsp; But it is running in startup_mcxn547_cm33_core0.c and showing in pin configuration page of .mex file given below.&lt;/P&gt;&lt;P&gt;I need to run it in startup_mcxn546_cm33_core0.c and clear this error in config. I have attached my project with this post, please check it.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;Issue: Processor "MCXN547" detected in the MCUXpresso_IDE project does not match the currently selected "MCXN546".&lt;/P&gt;&lt;P&gt;Level: Error&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Mar 2026 08:53:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2338264#M5078</guid>
      <dc:creator>Elakiya</dc:creator>
      <dc:date>2026-03-24T08:53:35Z</dc:date>
    </item>
    <item>
      <title>回复： In UART protocol test MCXN546VKL, it stuck at while (0U == (base-&gt;STAT &amp; LPUART_STAT_TDRE</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2338441#M5082</link>
      <description>&lt;P&gt;Hi&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;P&gt;I checked your early post.&lt;/P&gt;
&lt;P&gt;"manually changed in GlobalInfo of the processor and package_id to MCXN456VKL inside the clock_config.c and pin_mux.c.&lt;/P&gt;
&lt;P&gt;processor: MCXN546&lt;/P&gt;
&lt;P&gt;package_id: MCXN546VKL"&lt;/P&gt;
&lt;P&gt;This method is incorrect, so it will report an error. We currently have no way to prevent this error.&lt;/P&gt;
&lt;P&gt;First, MCXN546 and MCXN547 are mostly the same, with only differences in the number of GPIOs and flash RAM size.&lt;/P&gt;
&lt;P&gt;Based on your above messages. I have two suggestions.&lt;/P&gt;
&lt;P&gt;1. If you create a project based on your MCXN546 SDK, you just need to modify some files base on the&amp;nbsp;mcxn5xxevk_lpuart_polling and you can use the config tool directly.&lt;/P&gt;
&lt;P&gt;2. If you want to use mcxn5xxevk_lpuart_polling as the base, you cannot directly use the config tool tool. But you can create another mcxn546 project, configure the pins and clocks you need with the config tool, and then copy the generated code to project mcxn5xxevk_lpuart_polling.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 10:15:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/In-UART-protocol-test-MCXN546VKL-it-stuck-at-while-0U-base-gt/m-p/2338441#M5082</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-03-24T10:15:56Z</dc:date>
    </item>
  </channel>
</rss>

