Upon a successful compilation, a binary image will be created and a dialog box will ask if you want to save it. Double click on the main.cpp program and click the Compile button.The program will be imported and a new program work space will appear. Change the Program Name to "Nucleo_printf_F411".Under the Template selection choose: "Display a message on PC using UART".The Create new program dialog box will appear. Click the New button to create a new program.If you have exited the compiler you can return to the mbed compiler by returning to the ST Nucleo F411RE platform page and select Open mbed Compiler This information is useful for debugging your mbed program.
#Tera term setup serial
Next, program the ST Nucleo F411RE board with a sample program that uses the Virtual COM port interface to display text on your PC's serial console. You will want to take note of this number as it will be used further in this tutorial. You will find an entry for the device called "STMicroelectronics STLink Virtual COM Port (COM#)" where COM# is the serial port enumerated by your Nucleo board USB device. Or check Device Manager under Ports (COM & LPT).Right click on the STM32 STLink icon and select Properties Click on the Hardware Tab.One method is to select Devices and Printers from your Windows Program Menu: Determine the STM32 STLink Virtual COM port of your Nucleo board.Connect your ST Nucleo F411RE board to your PC via USB cable.Included within the USB interface of the ST Nucleo F411RE board is a Virtual COM port that can be used to send back messages to your PC within your embedded code.