cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5xxx UART communication problems

jessie_chiu
Associate III

I am using the STM32U5A9J-DK for a UART communication test, and I expect to display the content sent from the computer's Serial port on the screen (textArea).
I'm using UART1, 115200 Baud rate, 8 data bits, 1 stop bits, and I've turned on the UART interrupt, but for some reason the text on the screen doesn't change.
There are not many examples that I can find, so I hope someone can help me to clear this up!

Here is my code

20 REPLIES 20

@jessie_chiu wrote:

I have the implementation of the uartData_t structure in line 103 of the drawing, with uartData_q pointing to memory.

 

uartData_t *uartData_q;

 


That's just the pointer - it does not allocate any memory for that pointer to point to.

Again, where do you allocate memory for the  pointer to point to, and where do you set the pointer to point to that memory?