I am pleased to discover that other people have had much the same idea, albeit with other hardware:
She uses a STM32 nucleo 64, which has a STM32L412 and onboard ST-Link/V2. These are currently available for about $10. She uses both STM32CubeMX and STM32CubeIDE. She actually doesn't do anything with uart messages, but blinks an external LED. However, she makes CubeMX do all the hard work and just uses CubeIDE to add a small bit of code to main.c (and to compile the whole mess)
He only adds a tiny bit of code to main.c, as follows:
#define LED_PIN GPIO_PIN_5 while ( 1 ) { HAL_GPIO_WritePin(GPIOA, LED_PIN, GPIO_PIN_SET); HAL_Delay(200); HAL_GPIO_WritePin(GPIOA, LED_PIN, GPIO_PIN_RESET); HAL_Delay(200); }
Tom's Computer Info / tom@mmto.org