cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_UART_Transmit() and HAL_UART_Receive() API

RS009
Associate III

I am using Nucleo board and Tera term for serial monitor

I want to do simple addition program

I want to take two values from serial monitor by typing (number + Enter ) and print back its addition

Expect output on Serial monitor:

enter value A : 5

enter value B : 6

Sum is : 11

Give me a code example

1 REPLY 1
S.Ma
Principal

I would suggest to browse SIF.C in this project

It uses Android's bluetooth electronics and HC-05 UART to Bluetooth to send/receive/control/widget represent data in the STM32. May not be a shortcut to your needs, yet...