In UART protocol test MCXN546VKL, it stuck at while (0U == (base->STAT & LPUART_STAT_TDRE_MASK))?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

In UART protocol test MCXN546VKL, it stuck at while (0U == (base->STAT & LPUART_STAT_TDRE_MASK))?

1,986 Views
Elakiya
Contributor III

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 "while (0U == (base->STAT & 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 youclock_config.png

0 Kudos
Reply
6 Replies

1,926 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Elakiya 

 

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.

 

Snipaste_2026-03-06_15-54-56.png

 May I ask if you have enabled the FlexComm clock?

I think you can refer to the mcxn547 sdk lpuart demo.

Snipaste_2026-03-06_15-57-57.png

BR

Harry

 

0 Kudos
Reply

1,796 Views
Elakiya
Contributor III

Hello @Harry_Zhang, 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 GlobalInfo of the processor and package_id to MCXN456VKL inside the clock_config.c and pin_mux.c. 

processor: MCXN546

package_id: MCXN546VKL

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.

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.

processorNotification.pngerror_chip.png

 

0 Kudos
Reply

1,424 Views
Elakiya
Contributor III

Hello @Harry_Zhang, Kindly 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 & DMA operation test code. Kindly give me update for the above issue. Thank you.

0 Kudos
Reply

1,405 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Elakiya 

Sorry for the late reply, have you tried creating a freertos project based on the mcxn946 SDK package?

Snipaste_2026-03-24_15-49-09.png

BR

Harry

0 Kudos
Reply

1,400 Views
Elakiya
Contributor III

Hi @Harry_Zhang , 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  in my mcxn546 board.  But it is running in startup_mcxn547_cm33_core0.c and showing in pin configuration page of .mex file given below.

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.

Issue: Processor "MCXN547" detected in the MCUXpresso_IDE project does not match the currently selected "MCXN546".

Level: Error

0 Kudos
Reply

1,391 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Elakiya 

I checked your early post.

"manually changed in GlobalInfo of the processor and package_id to MCXN456VKL inside the clock_config.c and pin_mux.c.

processor: MCXN546

package_id: MCXN546VKL"

This method is incorrect, so it will report an error. We currently have no way to prevent this error.

First, MCXN546 and MCXN547 are mostly the same, with only differences in the number of GPIOs and flash RAM size.

Based on your above messages. I have two suggestions.

1. If you create a project based on your MCXN546 SDK, you just need to modify some files base on the mcxn5xxevk_lpuart_polling and you can use the config tool directly.

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.

BR

Harry

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2326796%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIn%20UART%20protocol%20test%20MCXN546VKL%2C%20it%20stuck%20at%20while%20(0U%20%3D%3D%20(base-%26gt%3BSTAT%20%26amp%3B%20LPUART_STAT_TDRE_MASK))%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326796%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20I%20am%20new%20with%20NXP%2C%20I%20am%20trying%20to%20test%20LPUART%20protocol%20in%20the%20MCUXpresso%20IDE%20with%20our%20MCXN546VKL%20PCB%20with%20UART%20PIO8%20and%20PIO9%20pins%20to%20IoT%20module%2C%20before%20that%20I%20try%20to%20test%20the%20TX%20and%20RX%20function%20for%20the%20UART%20polling%20and%20DMA.%20In%20simple%20loopback%20UART%20test%20with%20polling%20mode%2C%20when%20I%20try%20to%20send%20sample%20data%20through%20uart%20TX%20it%20stuck%20at%20%22%3CSPAN%3Ewhile%20(0U%20%3D%3D%20(base-%26gt%3BSTAT%20%26amp%3B%20LPUART_STAT_TDRE_MASK))%22%20in%20fsl_lpuart.c%20file.%20I%20given%2012MHz%20for%20FLEXCOMM4%20and%20150MHz%20for%20system%20clock%2C%20why%20this%20is%20happening%2C%20I%20have%20attached%20.png%20file%20of%20configuration%20screenshot%20also%20with%20this%20post%20please%20check%20and%20give%20clear%20details.%20Thank%20you%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22clock_config.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22clock_config.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22clock_config.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22clock_config.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22clock_config.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22clock_config.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22clock_config.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F378386iC67B52832CB1F79A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22clock_config.png%22%20alt%3D%22clock_config.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2326796%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EClock%7CTimers%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECommunication%20%26amp%3B%20Control(I3C%20%7C%20I2C%20%7C%20SPI%20%7C%20FlexCAN%20%7C%20Ethernet%20%7C%20FlexIO)%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDevelopment%20Board%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMCXN%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2327612%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20In%20UART%20protocol%20test%20MCXN546VKL%2C%20it%20stuck%20at%20while%20(0U%20%3D%3D%20(base-%26gt%3BSTAT%20%26amp%3B%20LPUART_STAT_TDRE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2327612%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259802%22%20target%3D%22_blank%22%3E%40Elakiya%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorHarry_Zhang_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3EOn%20MCXN%20devices%2C%20the%20TDRE%20bit%20only%20becomes%201%20when%20the%20UART%20module%20is%20actually%20clocked%20and%20the%20TX%20FIFO%20level%20is%20less%20than%20or%20equal%20to%20the%20configured%20TX%20watermark.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Snipaste_2026-03-06_15-54-56.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-06_15-54-56.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-06_15-54-56.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-06_15-54-56.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-06_15-54-56.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-06_15-54-56.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-06_15-54-56.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F378536i2A272B1BC02BB6A7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Snipaste_2026-03-06_15-54-56.png%22%20alt%3D%22Snipaste_2026-03-06_15-54-56.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E2%80%83May%20I%20ask%20if%20you%20have%20enabled%20the%20FlexComm%20clock%3F%3C%2FP%3E%0A%3CP%3EI%20think%20you%20can%20refer%20to%20the%20mcxn547%20sdk%20lpuart%20demo.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Snipaste_2026-03-06_15-57-57.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-06_15-57-57.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-06_15-57-57.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-06_15-57-57.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-06_15-57-57.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-06_15-57-57.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-06_15-57-57.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F378537i94961812DA3C4219%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Snipaste_2026-03-06_15-57-57.png%22%20alt%3D%22Snipaste_2026-03-06_15-57-57.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2328650%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20In%20UART%20protocol%20test%20MCXN546VKL%2C%20it%20stuck%20at%20while%20(0U%20%3D%3D%20(base-%26gt%3BSTAT%20%26amp%3B%20LPUART_STAT_TDRE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328650%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F229957%22%20target%3D%22_blank%22%3E%40Harry_Zhang%3C%2FA%3E%2C%20I%20have%20MCXN546VKL%20PCB%20board%2C%20but%20as%20per%20your%20instruction%20I%20have%20used%20example%20file%20of%20LPUART%20polling%20from%20the%20SDK%20of%20MCXN547V%20for%20same%20pin%20PIO8%20and%20PIO9%20of%20uart%20pins%20and%20manually%20changed%20in%20%3CSTRONG%3EGlobalInfo%20%3C%2FSTRONG%3Eof%26nbsp%3Bthe%20processor%20and%20package_id%20to%20MCXN456VKL%20inside%20the%20clock_config.c%20and%20pin_mux.c.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3Eprocessor%3A%20MCXN546%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Epackage_id%3A%20MCXN546VKL%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EAnd%20build%20the%20project%2C%20without%20any%20error%20it%20is%20transmitting%20and%20receiving%20the%20UART%20polling%20operation%20fine%2C%20but%20still%20I%20get%20a%20error%20notification%20inside%20the%20pin%20configuration%20setting.%20I%20have%20shared%20the%20screenshot%20of%20the%20notification%20and%20error%20issue%20shown%20in%20Problem%20Tool%3A%20MCUconfiguration.%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20can%20I%20quick%20fix%20the%20error%2C%20by%20changing%20the%20processor%20setting%20also%20from%20MCXN547%20to%20MCXN546%20in%20configuration%20to%20remove%20the%20error%20notification%20from%20the%20configuration%20page.%20Please%20check%20my%20screenshot%20and%20update%20the%20solution.%20Thanks%20in%20advance.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22processorNotification.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22processorNotification.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22processorNotification.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22processorNotification.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22processorNotification.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22processorNotification.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F378656iD43E6A6BD3E7869E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22processorNotification.png%22%20alt%3D%22processorNotification.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22error_chip.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22error_chip.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22error_chip.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22error_chip.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22error_chip.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22error_chip.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F378657i6788A83950BE0EB0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22error_chip.png%22%20alt%3D%22error_chip.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2338264%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20In%20UART%20protocol%20test%20MCXN546VKL%2C%20it%20stuck%20at%20while%20(0U%20%3D%3D%20(base-%26gt%3BSTAT%20%26amp%3B%20LPUART_STAT_TDRE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2338264%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F229957%22%20target%3D%22_blank%22%3E%40Harry_Zhang%3C%2FA%3E%26nbsp%3B%2C%20I%20have%20not%20created%20it%20in%20mcxn546%20or%20mcxn946%2C%20but%20I%20tried%20to%20run%20basic%20uart%20operation%20first%20in%20mcxn546%2C%20it%20was%20not%20working%20and%20making%20clock%20issue%20in%20uart%20and%20mcu.%20So%20I%20created%20mcxn547%20example%20uart%20polling%20project%20from%20sdk%20and%20changed%20its%20processor%20and%20package%20id%20manually%20in%20pin_mux.c%20and%20clock_config.c%20to%20build%20and%20make%20it%20for%20mcxn546%20mcu.%20It%20is%20sending%20and%20receiving%20the%20uart%20data%26nbsp%3B%20in%20my%20mcxn546%20board.%26nbsp%3B%20But%20it%20is%20running%20in%20startup_mcxn547_cm33_core0.c%20and%20showing%20in%20pin%20configuration%20page%20of%20.mex%20file%20given%20below.%3C%2FP%3E%3CP%3EI%20need%20to%20run%20it%20in%20startup_mcxn546_cm33_core0.c%20and%20clear%20this%20error%20in%20config.%20I%20have%20attached%20my%20project%20with%20this%20post%2C%20please%20check%20it.%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CP%3EIssue%3A%20Processor%20%22MCXN547%22%20detected%20in%20the%20MCUXpresso_IDE%20project%20does%20not%20match%20the%20currently%20selected%20%22MCXN546%22.%3C%2FP%3E%3CP%3ELevel%3A%20Error%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2338441%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20In%20UART%20protocol%20test%20MCXN546VKL%2C%20it%20stuck%20at%20while%20(0U%20%3D%3D%20(base-%26gt%3BSTAT%20%26amp%3B%20LPUART_STAT_TDRE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2338441%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259802%22%20target%3D%22_blank%22%3E%40Elakiya%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20checked%20your%20early%20post.%3C%2FP%3E%0A%3CP%3E%22manually%20changed%20in%20GlobalInfo%20of%20the%20processor%20and%20package_id%20to%20MCXN456VKL%20inside%20the%20clock_config.c%20and%20pin_mux.c.%3C%2FP%3E%0A%3CP%3Eprocessor%3A%20MCXN546%3C%2FP%3E%0A%3CP%3Epackage_id%3A%20MCXN546VKL%22%3C%2FP%3E%0A%3CP%3EThis%20method%20is%20incorrect%2C%20so%20it%20will%20report%20an%20error.%20We%20currently%20have%20no%20way%20to%20prevent%20this%20error.%3C%2FP%3E%0A%3CP%3EFirst%2C%20MCXN546%20and%20MCXN547%20are%20mostly%20the%20same%2C%20with%20only%20differences%20in%20the%20number%20of%20GPIOs%20and%20flash%20RAM%20size.%3C%2FP%3E%0A%3CP%3EBased%20on%20your%20above%20messages.%20I%20have%20two%20suggestions.%3C%2FP%3E%0A%3CP%3E1.%20If%20you%20create%20a%20project%20based%20on%20your%20MCXN546%20SDK%2C%20you%20just%20need%20to%20modify%20some%20files%20base%20on%20the%26nbsp%3Bmcxn5xxevk_lpuart_polling%20and%20you%20can%20use%20the%20config%20tool%20directly.%3C%2FP%3E%0A%3CP%3E2.%20If%20you%20want%20to%20use%20mcxn5xxevk_lpuart_polling%20as%20the%20base%2C%20you%20cannot%20directly%20use%20the%20config%20tool%20tool.%20But%20you%20can%20create%20another%20mcxn546%20project%2C%20configure%20the%20pins%20and%20clocks%20you%20need%20with%20the%20config%20tool%2C%20and%20then%20copy%20the%20generated%20code%20to%20project%20mcxn5xxevk_lpuart_polling.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2338211%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20In%20UART%20protocol%20test%20MCXN546VKL%2C%20it%20stuck%20at%20while%20(0U%20%3D%3D%20(base-%26gt%3BSTAT%20%26amp%3B%20LPUART_STAT_TDRE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2338211%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259802%22%20target%3D%22_blank%22%3E%40Elakiya%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESorry%20for%20the%20late%20reply%2C%26nbsp%3Bhave%20you%20tried%20creating%20a%20freertos%20project%20based%20on%20the%20mcxn946%20SDK%20package%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Snipaste_2026-03-24_15-49-09.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-24_15-49-09.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Snipaste_2026-03-24_15-49-09.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F380164i9A52E7D11A0715F0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Snipaste_2026-03-24_15-49-09.png%22%20alt%3D%22Snipaste_2026-03-24_15-49-09.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2338150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20In%20UART%20protocol%20test%20MCXN546VKL%2C%20it%20stuck%20at%20while%20(0U%20%3D%3D%20(base-%26gt%3BSTAT%20%26amp%3B%20LPUART_STAT_TDRE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2338150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F229957%22%20target%3D%22_blank%22%3E%40Harry_Zhang%3C%2FA%3E%2C%20Kindly%26nbsp%3Bgive%20me%20update%20and%20solution%20above%20issue%2C%20I%20need%20to%20run%20my%20in%20project%20in%20startup_mcxn546_cm33_core0.c%20instead%20of%20running%20in%20startup_mcxn547_cm33_core0.c.%20If%20I%20create%20in%20manually%2C%20I%20am%20getting%20clock%20config%20issue%20in%20uart%20and%20MCU.%20I%20have%20changed%20my%20processor%20and%20clock%20manually%20to%20mcxn546%20from%20mcxn547%2C%20but%20I%20could%20not%20make%20changes%20in%20startup%20file%20and%20also%20processor%20error%20warning%20inside%20my%20chip%20configuration%20page.%20Or%20please%20provide%20my%20simple%20project%20in%20mcxn546%20configuartion%20with%20freeRTOS%20in%20UART%20polling%20%26amp%3B%20DMA%20operation%20test%20code.%20Kindly%20give%20me%20update%20for%20the%20above%20issue.%20Thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E