This article describes how a string can be send to STM32 microcontroller with USART. It contains a simple code example which shows how to drive an LED by sending text commands from a laptop to STM32 board. Enjoy!
Read more about sending text to STM32 microcontroller.