strange USART behaviour
Posted: Mon Mar 25, 2024 9:32 am
I have a custom board using STM32L4R5ZIT6-P
generic Serial is redirected to USART3 using setTx() and setRx() functions
The output is garbled, characters missing, wrong characters, ...
When I activate USB CDC generic Serial and define a new HardwareSerial for USART3, the output is fine on both serials.
leaving the generic serial as is and only defining a new HardwareSerial for USART3 also produces garbled output
It is the very same hardware, and only adding USB Serial makes output of USART3 correct.
I also added a HardwareSerial USART1, which is also garbled unless I activate USB serial. Then all serial output is fine
When I try these steps on a Nucleo-L4R5ZI (no -P, don't know if that matters??) all is fine.
I really don't have the slightest idea what is going on...
Anyone can eyplain this behaviour?
since it does not happen on a Nucleo-board, maybe it is hardware related?
generic Serial is redirected to USART3 using setTx() and setRx() functions
The output is garbled, characters missing, wrong characters, ...
When I activate USB CDC generic Serial and define a new HardwareSerial for USART3, the output is fine on both serials.
leaving the generic serial as is and only defining a new HardwareSerial for USART3 also produces garbled output
It is the very same hardware, and only adding USB Serial makes output of USART3 correct.
I also added a HardwareSerial USART1, which is also garbled unless I activate USB serial. Then all serial output is fine
When I try these steps on a Nucleo-L4R5ZI (no -P, don't know if that matters??) all is fine.
I really don't have the slightest idea what is going on...
Anyone can eyplain this behaviour?
since it does not happen on a Nucleo-board, maybe it is hardware related?