2019-06-05 10:43 AM
2019-06-05 11:29 AM
Start from an example, prefferably LL style (low level).
And if you do debug with breakpoints, remember that if you display the USART registers on debug watch window, this will actually read the HW register...
2019-06-05 11:47 AM
We need more information. Start with basic debugging and "how to ask smart questions" (http://catb.org/~esr/faqs/smart-questions.html). What error are you getting? What does your code do (can you post it here in the forums)? What have you tried so far? Have you looked inside the HAL functions to see what might be causing that error and/or have you stepped through the code with your debugger to see why it fails?
2019-06-05 01:06 PM
Make sure you have the USART1 peripheral clock enabled in RCC. If USART registers don;t update it's often because there's no peripheral clock to load those registers.
Jack Peacock
2019-06-05 01:15 PM
Primary problem is you're probably using the API in a half-duplex mindset. The RX and TX operation can and should occur concurrently. I guess you're a HAL/CubeMX user, the hardware works fine.