Skip to content

Latest commit

 

History

History

STM32Cube

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

STM32Cube

Examples written using STM32Cube, which are the official hardware extraction layer (HAL) and libraries from STMicroelectronics.

The base configurations (clock, gpio, etc) are generated using the STM32CubeMX code generator.

Prerequisites

Software

Compile

To compile each example, you should only need to run make from within the example directory.

cd ./Blink

make

Flash the program

Put the board into bootloader (DFU) mode by pressing the user button while turning the board on. Now you can run the following command to flash the program to the board:

make flash

This command is a wrapper for the dfu-util command. The full command would be:

dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D build/program.bin