Top Banner
1. Open the STM32CubeMX and select the chip, make changes and go to Project -> Settings 2. In the Toolchain /IDE section, select Makefile option
6

1. Open the STM32CubeMX and select the chip, make · PDF fileOpen the STM32CubeMX and select the chip, make changes and go to Project -> Settings 2. ... [i kp Desktop File System...

Mar 15, 2018

Download

Documents

ngokhanh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1. Open the STM32CubeMX and select the chip, make · PDF fileOpen the STM32CubeMX and select the chip, make changes and go to Project -> Settings 2. ... [i kp Desktop File System Documents

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

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

Page 2: 1. Open the STM32CubeMX and select the chip, make · PDF fileOpen the STM32CubeMX and select the chip, make changes and go to Project -> Settings 2. ... [i kp Desktop File System Documents

3. Click OK to generate code.

4. Makefile generated along with other files

Page 3: 1. Open the STM32CubeMX and select the chip, make · PDF fileOpen the STM32CubeMX and select the chip, make changes and go to Project -> Settings 2. ... [i kp Desktop File System Documents

5. Set BINPATH to your arm-gcc compiler directory

6. Build the project with make command

Page 4: 1. Open the STM32CubeMX and select the chip, make · PDF fileOpen the STM32CubeMX and select the chip, make changes and go to Project -> Settings 2. ... [i kp Desktop File System Documents

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.

Page 5: 1. Open the STM32CubeMX and select the chip, make · PDF fileOpen the STM32CubeMX and select the chip, make changes and go to Project -> Settings 2. ... [i kp Desktop File System Documents

9. Choose the options as following

Page 6: 1. Open the STM32CubeMX and select the chip, make · PDF fileOpen the STM32CubeMX and select the chip, make changes and go to Project -> Settings 2. ... [i kp Desktop File System Documents

10. After making project in eclipse, just click on build button on toolbar and project will build without anyproblems.

11. Eclipse also give the same results.