Download the program

The tutorial introduces the steps and options for generating and using .hex files in the software!

FlyMCU

Using the FlyMCU software, you can download the compiled program code (.hex file) to the target MCU chip through the serial port.

Hardware connection

Use the Type-C data cable to connect the computer and the Type-C burning interface of the development board:

image-20240829105232034

MDK-ARM

Generate .hex file

Using MDK-ARM, .hex files will not be generated by default. You need to check the option to generate .hex files to generate them.

Check Create HEX File in the Output option:

image-20240722170209086

The .hex file will be generated only after the project is compiled successfully.

STM32CubeIDE

Generate .hex file

By default, the .hex file will not be generated when using STM32CubeIDE. You need to check the Generate .hex file option to generate it.

image-20240821182025565

image-20240821182126838

image-20240821182259354

Download the program

You can use a data cable to burn the program through the Type-C interface of the development board;

After connecting the computer with a Type-C data cable, you can view the serial port number of the corresponding device in the device manager: port.

image-20240613104231304

BootLoader Option: DTR low level reset, RTS high level reset into BootLoader

image-20240830122924636

Program Running

After successfully downloading the program, press the RESET button of the development board to observe whether the phenomenon of the development board is normal.