cancel
Showing results for 
Search instead for 
Did you mean: 

i need to know how to send command from stm32 to another unit to test it ( using UART), this unit is already programmed so if it's working i should receive "ok" i need to know how to link them

HBALI.1
Associate II
 
3 REPLIES 3
TDK
Guru

Hook up TX on one MCU to RX on the other, and vice-versa. Use HAL_UART_Transmit/HAL_UART_Receive to send. Should be examples in the CubeMX repository.

If you feel a post has answered your question, please click "Accept as Solution".

hello sir , thank you

i am trying to link stm32 to other unit board already programmed when i enter for exemple a référence as input ( F01 98 7 /r) i expect in return to receive " OK " after the test

this can be done using docklight , but i need to know if there is a way to program stm32 with C language

thank you

TDK
Guru

> but i need to know if there is a way to program stm32 with C language

If you're new, there should be a lot of videos on STM32CubeIDE to get started.

But if your goal is just to send data over UART and receive data back, a USB to UART adapter seems like a faster/easier/better choice.

If you feel a post has answered your question, please click "Accept as Solution".