Skip to main content
RNiel.15
Associate II
May 13, 2019
Question

Will there be a PC tool-chain for STM32CubeIDE?

  • May 13, 2019
  • 17 replies
  • 6509 views

In my TrueSTUDIO workspace I have some unit tests which run on PC. Hence these are built using the "Atollic PC Tools" tool-chain. In STM32CubeIDE I cannot find this or anything similar. Did I miss something, will it be added later or am I left to define a custom tool-chain?

So far this has stopped me from migrating to STM32CubeIDE.

This topic has been closed for replies.

17 replies

Markus GIRDLAND
ST Employee
May 13, 2019

There are two toolchains that are shipped with the installer, GNU Tools for STM32 and the standard GNU Tools for Arm Embedded Processors.

You can read about what the modified toolchain does here.

DCyr
Associate III
July 17, 2019

All very good to know what's been fixed in the two available toolchains, BUT, how do you select one and implement it? I am getting error message "Please install STM32CubeIDE toolchain to open the project" when the STM32CubeIDE is invoked by SMT32CubeMX "Open Project".

Markus GIRDLAND
ST Employee
July 19, 2019

One should be selected by default. You select by right clicking the project and choosing Properties -> C/C++ Build -> Settings -> Toolchain version.

I'm a bit confused regarding the "Open Project" part, when does CubeMX invode CubeIDE?

Yuk117
Associate II
July 19, 2019

It seems that CubeIDE doesn't have PC tool-chain.

I installed manually PC tool-chain(MinGW64) and add path to environment variables.

I created C/C++ Project -> C Managed Build, and selected toolchains "MinGW GCC" for unit test project.

DCyr
Associate III
July 28, 2019

I am afraid I don't know how to add a path to environment variables. Also, I am not creating a project from scratch, rather loading the sample program that is already set up. If you could, it would be much appreciated if you could provide a bit more detail on how to proceed.

Thanks!

Yuk117
Associate II
August 3, 2019

I installed MinGW-w64 for Windows. It can be downloaded from here.

https://mingw-w64.org/doku.php/download

See this link to add a path.

https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/

And I attached a sample project based on CppUTest. Please refer it.

DCyr
Associate III
August 4, 2019

I downloaded the cpputest-demo and opened the project with STM32CubeIDE and got the message that it couldn't find "CommandLineTestRunner.h". I searched my entire disk and it does not exist. (See attached). The IDE just updated itself today, so it's the latest version.0690X00000981BWQAY.jpg

DCyr
Associate III
August 3, 2019

Thanks for your help. I appreciate you taking the time to direct me, but I still don't know what to do after installing MinGW-w64. The compiler seems to have installed OK, but am I supposed to set up a path pointing to the C:\MinGW directory or C:\Program Files directory? What path am I supposed to add? And is it a system variable or a user variable?

I had downloaded another compiler (see attached) and added a path for it, but the SMT32CubeIDE never saw it and continued to complain that I had to add a toolchain. So apparently there is something else I am not doing and don't know what or how. Maybe my problem is I am an electronics engineer, not a systems software specialist!?!?!?

RNiel.15
RNiel.15Author
Associate II
September 10, 2019

I added the following (under Project->Properties->C/C++ Build->Environment):

MINGW_HOME set to the main MinGW folder (I guess this is C:\MinGW in your case)

PATH: prepended ${MINGW_HOME}\bin;

I think the PATH was already defined correctly when I selected the "MinGW GCC" toolchain, but the MINGW_HOME was missing.

When I build, STM32CubeIDE still complains that "Configuration "Default" uses tool-chain "MinGW GCC" that is unsupported on this system, attempting to build anyway.". Not so elegant, but the build works.

CRayn
Visitor II
September 9, 2019

Same problem, with STM32CubeMX (5.3.0) and STM32CubeIDE (1.0.2_3566_20190716-0927). After generating code, and clicking on "open project" I have that "please install" error. However, the project can be imported to the IDE, and opened that way.

Can we ask that the people writing the code for these please look into the linking problem?

I was trying to follow the YT video "Getting started with STM32CubeMX" published July 12 2016. Should probably be redone to reflect the changes in STM32CubeMX, as the UI is totally different. Gets confusing.

CRayn
Visitor II
September 9, 2019

It may be something about the intended processor.

The YT tutorial uses the Nucleo STM32L07RTZ board.

I just ran a test set-up for generating the initialize code for the "

blue pill" STM32F103C3T6. Imported just fine into STM32CubeIDE.

I'll try again some other time without using the Nucleo board but same processor.

Anyone else reading this can do some test set-up as well, and hopefully report back here with their results.