cancel
Showing results for 
Search instead for 
Did you mean: 

Hi all, is there a way to dump a make file from STM32CubeMX?

scott h
Associate II
Posted on December 16, 2017 at 21:43

I found this link but I can't figure out how to do it:

https://community.st.com/external-link.jspa?url=https%3A%2F%2Fhackaday.com%2F2017%2F07%2F15%2Fstm32cubemx-makes-makefiles%2F

I'm running on Windows but I'd like to create a make file to run Linux.

thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Posted on December 17, 2017 at 13:21

Have you read the manual?

http://www.st.com/content/ccc/resource/technical/document/user_manual/10/c5/1a/43/3a/70/43/7d/DM001047pdf/files/DM001047pdf/jcr:content/translations/en.DM001047pdf

CubeMX is not an IDE, it is a project configuartor and generator. This is just the software.

You have to download packages for the specfic MCU family.

http://scaluza.com/wp-content/uploads/2017/03/cubeMX_update_screen.jpg

http://scaluza.com/stm32f4/intro-in-stm32f4cubemx/

View solution in original post

8 REPLIES 8
Mark Peter Vargha
Associate III
Posted on December 17, 2017 at 05:04

  1. CubeMX is also available on Linux. Have you tried it?
  2. There is a Makefile option in Project / Settings... dialog's Toolchain / IDE drop-down menu. The generated Makefile should be identical on all platforms. Have you tried the compilation?
Posted on December 17, 2017 at 12:51

I don't see a

Project / Settings... dialog's Toolchain / IDE drop-down menu.

All I see is Project...new uVision, etc I guess I'm probably running the wrong IDE.

I have downloaded en.ste32cubemx.zip and I can run the examples in KEIL/uVision.

Is there something else I have to do?

thank you!

Posted on December 17, 2017 at 13:06

All I see is Project...new uVision

That is in uVision IDE.

CubeMX is a standalone project generator software.

Check it here:

http://www.st.com/en/development-tools/stm32cubemx.html

Posted on December 17, 2017 at 13:13

I have now downloaded something called STM32CubeMX, looks like an IDE. But I also have a zip file called STM32Cube_FW_L4. I also have an IDE called ARM uVision.

In STM32Cube_FW_L4, there are folders for EWARM, MDK_ARM, SW4STM32, and TrueSTUDIO. If I go into MDK_ARM and double-click on a project it will open the project in ARM uVision.

How do I bring an project into CubeMX?

thank you.

Posted on December 17, 2017 at 13:17

Sorry, I didn't see your reply. I have CubeMX instlalled. Can you tell me how to bring a project in so I can output a make file?

thank you.

Posted on December 17, 2017 at 13:21

Have you read the manual?

http://www.st.com/content/ccc/resource/technical/document/user_manual/10/c5/1a/43/3a/70/43/7d/DM001047pdf/files/DM001047pdf/jcr:content/translations/en.DM001047pdf

CubeMX is not an IDE, it is a project configuartor and generator. This is just the software.

You have to download packages for the specfic MCU family.

http://scaluza.com/wp-content/uploads/2017/03/cubeMX_update_screen.jpg

http://scaluza.com/stm32f4/intro-in-stm32f4cubemx/

Posted on December 17, 2017 at 13:28

Can you tell me how to bring a project in so I can output a make file?

You couldn't. CubeMX is for project configuration and creation.

Please describe precisely what do you want to achieve.

Or should we guessing? Maybe you want to generate a Makefile from a uVision project? This is not a tool for that.

Posted on December 17, 2017 at 13:31

Oh, I see. It looks like this is more for creating a project from scratch. Isn't it easier to start with example code?

Anyway, it looks like I asked the wrong question (typical). I think I need to go to the ARM forum and ask:

'Is there a way to generate a make file from ARM  MDK'?

I'm trying to generate a make file for one of the example projects.

thank you.