FRDM-RW612 UART0/1 suddently stopped outputting

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

FRDM-RW612 UART0/1 suddently stopped outputting

Jump to solution
998 Views
james_zhu
Contributor II

Hi,

I am using  wireless uart demo(sdk 25.09.00); At the beginning, the uart1(Flexcom1 GPIO8/9) works normally. While, I just reconnected the wires Connected to USB adapter, the uart1(Flexcom1 GPIO8/9) is not print.  I change UART  to FLexcom3, all print is ok.  I change to Flexcom0(GPIO2/3) also not work.  And I reset and reboot many times, It also not work. I think Flexcom0/1  is may be physical damage due some reason, such as ESD.  

I using below ways to change print from flexcom3 to flexcom1 or flexcom0:

1. frdmrw612_wireless_uart\source\pin_mux.c  -- line 65 IO_MUX_SetPinMux(IO_MUX_FC3_USART_DATA);  to  IO_MUX_SetPinMux(IO_MUX_FC1_USART_DATA)

2.frdmrw612_wireless_uart\board\board.h  --line 30 #define DEBUG_CONSOLE_UART_INDEX 3 to #define DEBUG_CONSOLE_UART_INDEX 1

Could help me check the modification? and How to confirm whether the serial port function of flexcom0/1 is physically damaged?Has anyone encountered a similar problem?

I sincerely hope you can reply soon.

0 Kudos
Reply
1 Solution
854 Views
james_zhu
Contributor II

Hi Ricardo,

Your reply remind me.  I found the reason. The hardware is not damaged. There are two sets of GPIO8/9 on the board, but the UART function or SPI function is selected through SJ13 and SJ16. Initially, I connected to pins 2 and 4 of J1, which correspond to the UART function pin and are the default hardware connection. Later, after unplugging and reinserting, I mistakenly thought that GPIO/8/9 on J2 on the PCB was also GPIO8/9 of RW612. Moreover, My modification of the program from UART3 to UART0/1 was correct. After connecting to the correct TXD and RXD, UART0/1 can now output correctly.

Thanks,

james

View solution in original post

0 Kudos
Reply
6 Replies
855 Views
james_zhu
Contributor II

Hi Ricardo,

Your reply remind me.  I found the reason. The hardware is not damaged. There are two sets of GPIO8/9 on the board, but the UART function or SPI function is selected through SJ13 and SJ16. Initially, I connected to pins 2 and 4 of J1, which correspond to the UART function pin and are the default hardware connection. Later, after unplugging and reinserting, I mistakenly thought that GPIO/8/9 on J2 on the PCB was also GPIO8/9 of RW612. Moreover, My modification of the program from UART3 to UART0/1 was correct. After connecting to the correct TXD and RXD, UART0/1 can now output correctly.

Thanks,

james

0 Kudos
Reply
972 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. Could you please clarify what do you mean with " While, I just reconnected the wires Connected to USB adapter, the uart1(Flexcom1 GPIO8/9) is not print"?

Can you share a photo of the connections?

 

Best Regards,

Ricardo

0 Kudos
Reply
963 Views
james_zhu
Contributor II

Hi Ricardo,

my mean is " I just do a general action,  changed the wires (GPIO8/9 and GND) connected the serial screen to the USB adapter(uart to PC, in the photo).

Here is the photo, thanks.

0 Kudos
Reply
942 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Could you please clarify the physical connections you are using on the FRDM? Header and pin.

Did you make any HW change?

 

Best Regards,

Ricardo

0 Kudos
Reply
922 Views
james_zhu
Contributor II

Hi Ricardo,

   I used the pin. No HW change.    Could you help me confirm whether my software code modifications are correct for Flexcom1(GPIO8/9) as the UART?

James,

Thanks

0 Kudos
Reply
868 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Could you please provide the requested information?

On the FRDM, what are the Header and Pin you are using for GPIO 8 and GPIO 9?

As you might know, GPIO_50_ARD_D8 is connected to CC Logic for USB Type-C Applications | NXP Semiconductors.

And GPIO_52_ARD_D9 should work correctly, as it does not need any HW change on the FRDM.

 

Best Regards,

Ricardo

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2257208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFRDM-RW612%20UART0%2F1%20suddently%20stopped%20outputting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%EF%BC%8C%3C%2FP%3E%3CP%3EI%20am%20using%26nbsp%3B%20wireless%20uart%20demo(sdk%2025.09.00)%3B%20At%20the%20beginning%2C%20the%20uart1(Flexcom1%20GPIO8%2F9)%20works%20normally.%20While%2C%20I%20just%20reconnected%20the%20wires%20Connected%20to%20USB%20adapter%2C%20the%20uart1(Flexcom1%20GPIO8%2F9)%20is%20not%20print.%26nbsp%3B%20I%20change%20UART%26nbsp%3B%20to%20FLexcom3%EF%BC%8C%20all%20print%20is%20ok.%26nbsp%3B%20I%20change%20to%20Flexcom0(GPIO2%2F3)%20also%20not%20work.%26nbsp%3B%20And%20I%20reset%20and%20reboot%20many%20times%2C%20It%20also%20not%20work.%20I%20think%20Flexcom0%2F1%26nbsp%3B%20is%20may%20be%20physical%20damage%20due%20some%20reason%2C%20such%20as%20ESD.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EI%20using%20below%20ways%20to%20change%20print%20from%20flexcom3%20to%20flexcom1%20or%20flexcom0%EF%BC%9A%3C%2FP%3E%3CP%3E1.%20frdmrw612_wireless_uart%5Csource%5Cpin_mux.c%26nbsp%3B%20--%20line%2065%26nbsp%3B%3CSPAN%3EIO_MUX_SetPinMux(IO_MUX_FC3_USART_DATA)%3B%26nbsp%3B%20to%26nbsp%3B%26nbsp%3BIO_MUX_SetPinMux(IO_MUX_FC1_USART_DATA)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E2.frdmrw612_wireless_uart%5Cboard%5Cboard.h%26nbsp%3B%20--line%2030%26nbsp%3B%23define%20DEBUG_CONSOLE_UART_INDEX%203%20to%26nbsp%3B%23define%20DEBUG_CONSOLE_UART_INDEX%201%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ECould%20help%20me%20check%20the%20modification%3F%20and%26nbsp%3BHow%20to%20confirm%20whether%20the%20serial%20port%20function%20of%20flexcom0%2F1%20is%20physically%20damaged%EF%BC%9FHas%20anyone%20encountered%20a%20similar%20problem%EF%BC%9F%3C%2FP%3E%3CP%3EI%20sincerely%20hope%20you%20can%20reply%20soon.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2257568%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FRDM-RW612%20UART0%2F1%20suddently%20stopped%20outputting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257568%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CSPAN%3ERicardo%EF%BC%8C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3BI%20used%20the%20pin.%20No%20HW%20change.%26nbsp%3B%20%26nbsp%3B%20Could%20you%20help%20me%20confirm%20whether%20my%20software%20code%20modifications%20are%20correct%20for%20Flexcom1(GPIO8%2F9)%20as%20the%20UART%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EJames%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2257413%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FRDM-RW612%20UART0%2F1%20suddently%20stopped%20outputting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257413%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ECould%20you%20please%20clarify%20the%20physical%20connections%20you%20are%20using%20on%20the%20FRDM%3F%20Header%20and%20pin.%3C%2FP%3E%0A%3CP%3EDid%20you%20make%20any%20HW%20change%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20Regards%2C%3C%2FP%3E%0A%3CP%3ERicardo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2257360%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FRDM-RW612%20UART0%2F1%20suddently%20stopped%20outputting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257360%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CSPAN%3ERicardo%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Emy%20mean%20is%20%22%20I%20just%20do%20a%20general%20action%2C%26nbsp%3B%20changed%20the%20wires%20(GPIO8%2F9%20and%20GND)%20connected%20the%20serial%20screen%20to%20the%20USB%20adapter(uart%20to%20PC%2C%20in%20the%20photo).%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHere%20is%20the%20photo%2C%20thanks.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2257335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FRDM-RW612%20UART0%2F1%20suddently%20stopped%20outputting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHope%20you%20are%20doing%20well.%20Could%20you%20please%20clarify%20what%20do%20you%20mean%20with%20%22%20While%2C%20I%20just%20reconnected%20the%20wires%20Connected%20to%20USB%20adapter%2C%20the%20uart1(Flexcom1%20GPIO8%2F9)%20is%20not%20print%22%3F%3C%2FP%3E%0A%3CP%3ECan%20you%20share%20a%20photo%20of%20the%20connections%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20Regards%2C%3C%2FP%3E%0A%3CP%3ERicardo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2258323%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FRDM-RW612%20UART0%2F1%20suddently%20stopped%20outputting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2258323%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ECould%20you%20please%20provide%20the%20requested%20information%3F%3C%2FP%3E%0A%3CP%3EOn%20the%20FRDM%2C%20what%20are%20the%20Header%20and%20Pin%20you%20are%20using%20for%20GPIO%208%20and%20GPIO%209%3F%3C%2FP%3E%0A%3CP%3EAs%20you%20might%20know%2C%20GPIO_50_ARD_D8%20is%20connected%20to%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2FPTN5150%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ECC%20Logic%20for%20USB%20Type-C%20Applications%20%7C%20NXP%20Semiconductors%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EAnd%20GPIO_52_ARD_D9%20should%20work%20correctly%2C%20as%20it%20does%20not%20need%20any%20HW%20change%20on%20the%20FRDM.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20Regards%2C%3C%2FP%3E%0A%3CP%3ERicardo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2258608%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FRDM-RW612%20UART0%2F1%20suddently%20stopped%20outputting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2258608%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Ricardo%2C%3C%2FP%3E%3CP%3EYour%20reply%20remind%20me.%26nbsp%3B%20I%20found%20the%20reason.%20The%20hardware%20is%20not%20damaged.%20There%20are%20two%20sets%20of%20GPIO8%2F9%20on%20the%20board%2C%20but%20the%20UART%20function%20or%20SPI%20function%20is%20selected%20through%20SJ13%20and%20SJ16.%20Initially%2C%20I%20connected%20to%20pins%202%20and%204%20of%20J1%2C%20which%20correspond%20to%20the%20UART%20function%20pin%20and%20are%20the%20default%20hardware%20connection.%20Later%2C%20after%20unplugging%20and%20reinserting%2C%20I%20mistakenly%20thought%20that%20GPIO%2F8%2F9%20on%20J2%20on%20the%20PCB%20was%20also%20GPIO8%2F9%20of%20RW612.%20Moreover%2C%20My%20modification%20of%20the%20program%20from%20UART3%20to%20UART0%2F1%20was%20correct.%20After%20connecting%20to%20the%20correct%20TXD%20and%20RXD%2C%20UART0%2F1%20can%20now%20output%20correctly.%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3Ejames%3C%2FP%3E%3C%2FLINGO-BODY%3E