2022-06-30 04:03 AM
Hi
I have made a board using the g051k6 chip. I have not been able to receive data from another board sending data at 115200 bd. I connected another serial port to the input pin , and all data is received without errors. A uart problem is mentioned in the errata. The project was created with the cubeide , and I am using the hal uart receive function. Has anyone else had problems with the g0 uart? Basically I want to know if I should just create a new board with a different cpu, or if there is a simple fix.
Thanks
2022-06-30 06:19 AM
Have you put an oscilloscope on the pin to see what's actually happening?
"I want to know if I should just create a new board with a different cpu, or if there is a simple fix."
Impossible to say before you've got a better idea of what's actually going wrong.
You did prototype this (eg, on a devboard) before committing to a PCB design - didn't you?
2022-06-30 06:30 AM
Which pin? Which UART? What clock?
You can also try to swap Rx and Tx pins in UART using USART_CR2.SWAP and transmit on the same pin.
JW
2022-06-30 06:44 AM
"A uart problem is mentioned in the errata"
What problem, exactly?
Does it apply to your use-case?
Would that problem produce the symptoms you are seeing?
Have you tried any workarounds mentioned in the errata?