0% found this document useful (0 votes)
42 views

Open The Stm32Cubemx and Select The Chip, Make Changes and Go To Project - Settings

The document describes generating and building an STM32 project from STM32CubeMX using a Makefile. It instructs the user to select the Makefile option in STM32CubeMX, generate the code, set the BINPATH variable, and build the project using the make command. This will generate .elf, .hex, and .bin files that can be used for flashing to the microcontroller. Alternatively, the generated Makefile project can be imported into Eclipse IDE and built with one click.

Uploaded by

Refik Zaimovic
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Open The Stm32Cubemx and Select The Chip, Make Changes and Go To Project - Settings

The document describes generating and building an STM32 project from STM32CubeMX using a Makefile. It instructs the user to select the Makefile option in STM32CubeMX, generate the code, set the BINPATH variable, and build the project using the make command. This will generate .elf, .hex, and .bin files that can be used for flashing to the microcontroller. Alternatively, the generated Makefile project can be imported into Eclipse IDE and built with one click.

Uploaded by

Refik Zaimovic
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

1.

Open the STM32CubeMX and select the chip, make changes and go to Project -> Settings

2. In the Toolchain /IDE section, select Makefile option


3. Click OK to generate code.

4. Makefile generated along with other files


5. Set BINPATH to your arm-gcc compiler directory

6. Build the project with make command


7. This make script generate three files .elf .hex and .bin, what is nice about this script is that .bin and .hex
files can be used with utilities like stm32flash and st-utils for flashing into microcontroller.

8. Generated makefile project can be used with Eclipse IDE, make a new project as shown in picture.
9. Choose the options as following
10. After making project in eclipse, just click on build button on toolbar and project will build without any
problems.

11. Eclipse also give the same results.

You might also like