In the previous article, we exported the Mbed basic environment to MDK, and we need to make some changes according to the actual target. The hardware at hand is the Ebox platform, the chip stm32f103c8t6, the debugger jlink, the default use UART1. The NUCLEO-F103RB selected at the time of export, chip Stm32f103rb,st-link, default use of UART2, and some Led,button and other definitions are not the same
1, configure the chip and the debugger to open the target options, Device tab, select the Chip Debug tab, for example, select Jlink, enter the setting red box, select the correct connection mode, select the right post SW The device box will have content saved, enter utilities, select debugger, enter settings according to the corresponding chip capacity Select this time should be able to compile the download program to the target hardware 2, modify the hardware configuration open PinNames.h header file, root According to the actual configuration of the pin, my hardware only, PA and PB two sets of pins, so need to put a lot of delete, such as, the green box in the removal of the Arduino Pin name, can not be deleted here according to the physical modification, do not need to delete the modification after the completion, now recompile download, you can see the board The LEDs on the light start flashing.
From for notes (Wiz)
Porting mbed to target board