cancel
Showing results for 
Search instead for 
Did you mean: 

g051 serial problem

kevint1
Associate

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

3 REPLIES 3

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?

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

"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?