Flexcomm2 (FC2_P2) MCX-N5XX-EVK

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

Flexcomm2 (FC2_P2) MCX-N5XX-EVK

430 Views
Avinpat123
Contributor I

Hi currently i am working with MCX-N5XX-EVK schematic ver SCH -55277 REV B2


1. where I have configured LP_FLEXCOMM2 as UART on pin P4_16 and 17 and i am expecting o/p on j20 header pin no. 21 (P4_16/FXIO_D24) and 22 (P4_17/FXIO_D25) where the tx pin unable to send any data  and also the default levels on pin is  P4_16 (21 ) 3.3v and P4_17( 22) 0v 

2. I have gen code form GUI i.e. peripheral tab in expresso ide (where the default uart i.e. LPUART4 is working fine which is gen by default using ide)


3. I have attached schematic for ref and also ref code , images for the Flexcomm2 configuration 

Avinpat123_1-1754908969756.png

Avinpat123_2-1754908995336.png

 

 

Avinpat123_0-1754908929521.png

Avinpat123_0-1754909418065.png

 

Labels (1)
0 Kudos
Reply
1 Reply

415 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @Avinpat123 ,

Thanks for your post.

According the "66.2.3 External signals" of Reference manual,  although FC_P2/FC_P3 can also function as TXD/RXD in LPUART+LPI2C mode, they can only be used as RTS_b/CTS_b in LPUART mode alone. I suspect this is where the issue lies. Are you currently in LPUART mode? 

Celeste_Liu_0-1754986259093.png

Given this limitation, I recommend switching to PORT4_0 (FC2_P0) and PORT4_1 (FC2_P1) instead. Both pins support alternate functions and can be used as RXD and TXD in LPUART mode of FLEXCOMM2, which aligns with your application requirements.

Celeste_Liu_1-1754986427329.png

 

Celeste_Liu_2-1754986440406.png

 

In addition, if you want try LPUART+LPI2C mode with FC2_P2/FC2_P3 as TXD/RXD, since the config tools do not support configuring a single flexcomm to the LPUART+LPI2C function, I recommend that you refer to our SDK demo "lpflexcomm_interrupt_transfer_cm33".

If you want try LPUART mode only, you can start with "lpuart_polling_cm33_core0" and change the pins via the config tools. 

Hope it can help you.

BRs,

Celeste

 

--------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
--------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply