Skip to main content
Associate III
November 29, 2023
Question

Unreadable characters connecting stm32 nucleo with stm32 h7 chip

Hi,

I am trying to send data to a stm32 h743zit6 chip from a stm32 nucleo h743zi that i am connected with. But while i am sending a word, it starts to show strange characters.

I connect the nucleo with USB and using Rx and Tx on CN5 and SWD pins on CN6 with the other stm32 chip so i can send data to it. 

I configure the USART6 of the stm32 h743zi and i use in the code:

 while (1)
 {
 /* USER CODE END WHILE */

 /* USER CODE BEGIN 3 */
	 uint8_t Test[] = "PRUEBA\r\n"; //Data to send
	 HAL_UART_Transmit(&huart6,Test,sizeof(Test),10);// Sending in normal mode
	 HAL_Delay(1000);
 }

I use Putty with the same bit, parity and baud rate and i see this:

rubenles_0-1701264917576.png

Connection is working for sure, because if there's something wrong, suddenly the IDE shows "st link not connected" and i think usart is well configured because i send some data (bad data, but data),

It is possible that connections are wrong, but, any suggestions of firmware or configurations considerations??

 

 

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    November 29, 2023

    The Nucleo-H743ZI or H743ZI2 ?

    Get a scope look at the signals.

    Show a schematic or diagram of exactly what you've got wired up, and how the pins are configured. It's probably got ZERO to do with the code fragment shared.

    Two boards? Got the ground connected and RX/TX pairs switched?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    TDK
    November 29, 2023

    Looks like a mismatch between baud rates. Ensure the clock is set correctly.

    > nucleo h743zi

    The clock on this chip should be from HSE bypass at 8 MHz. Verify that HSE_VALUE = 8000000.

    Sounds like you have another custom board with a chip on it.

    If you have a scope or logic analyzer, look at the signal.

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    rubenlesAuthor
    Associate III
    December 11, 2023

    I think it was something about electronics connections..., I am still working on it, thank you for your replies @TDK @Tesla DeLorean