2023-04-14 11:13 PM - edited 2023-11-20 08:08 AM
i am using stm32l4r5zi microcontroller .i have enabled all uart port 1,2,3,4,5 but this is not showing data on usb serial port .does l4r5 usb serial port not supporting ?
2023-04-14 11:20 PM
i have also change the baud rate in LPUART1 ,(209700 to 115200 ) but data not showing
2023-04-15 01:37 AM
What board? How is your UART conected to your PC? Check the schematics; you will see which pins are connected to the UART interface. Setup the UART in CubeMX, double check that the proper pins are selected for it.
2023-04-15 02:07 AM
>i have enabled all uart port 1,2,3,4,5
>is not showing data on usb serial port
what now ?? use serial port on pin..xx OR usb /CDC driver as usb device ?
2023-04-15 03:46 AM
Explanation and context hard to follow.
Perhaps look at pin output with a scope.
Guessing a NUCLEO board.
Why using 7-bit mode?
Mismatch in bit and baud modes of terminal vs UART.
Write a string output function that computes length.
If pins on GPIOG bank, make sure VCCIO2 enabled.
2023-04-15 08:43 AM
Don't use internal HSI/MSI RC clocks with that high baud-rate UART or try to slow down (to 9600 or lower). If you are using NUCLEO-L4R5ZI, the HSE oscillator is not populated. You have to use the MCO output from the ST-Link by closing SB109 and SB148 and setting HSE in bypass. That is what I experienced not a long time ago on the other L4 NUCLEO board. -wq
2023-04-15 01:29 PM
Not a problem. MSI may be synchronized to LSE, which is populated on Nucleo boards.
2023-04-16 08:57 PM
stm32l4r5zi
2023-04-16 08:58 PM
if i will use serialch340 on pins then it work
2023-04-16 08:59 PM
question is this why usb port not worj will othere controlller work