Xnucleo User Manual
17
V2.6.1, Apr. 25
th
2015
share awesome hardware
2)
Connect the USB TO UART interface on the board to your PC with a USB cable, and then
connect ST-LINK/V2(mini) module to download the .bin file. Then, set the JP5 to U5V. For
the JP4 setting, please refer to Section 2.5 USART communication. The serial port should be
configured according to Table 11.
Table 11: Serial port configuration
Baud rate
115200
Data bit
8
Stop bit
1
Parity
None
3)
When the program downloading finished, COM port will receive the following information:
Hello World!
This program runs since 1 second.
This program runs since 2 seconds.
This program runs since 3 seconds.
This program runs since 4 seconds.
This program runs since 5 seconds.
...
At this time, the USER LED is blinking in the frequency of 0.5Hz. And the TX LED keeps
blinking to indicate that STM32 Xnucleo is sending message to the PC.
3.2
HOW TO EXPORT THE KEIL PROGRAM FROM MBED
Circuit debugging are unavailable in mbed. However, mbed has “Import Program” and “Export
Program” functions. You can export the programs in mbed as Keil programs to perform
debugging.
The mbed library file can also be exported, which includes the HAL library of STM32 MCU. Under
the Keli environment, mbed libraries can be applied or modified directly, and can be
transplanted into other applications.