2019-05-13 01:53 AM
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.
2019-08-03 03:56 PM
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!?!?!?
2019-08-04 11:46 AM
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.
2019-08-04 05:42 PM
The project is based on CppUTest, so it is needed to install CppUTest.
By the way, my replies are for unit tests. Do you want unit tests?
If your task is to resolve a error message "Please install STM32CubeIDE toolchain to open the project", it is better to post a new question.
2019-08-04 06:05 PM
My initial post asked; "...how do you select one [ToolChain] and implement it? I am getting error message "Please install STM32CubeIDE toolchain to open the project" when the STM32CubeIDE is invoked when clicking on "Open Project" in SMT32CubeMX." I am trying to replace the IAR IDE with the STMCubeIDE, but when I use STM32CubeMX to generate the code for a sample project that is available for Evaluation Module STEVAL-ESC001V1, it asks to install the ToolChain and stops there. The IDE won't continue to compile the program without this ToolChain. The IAR IDE does work properly. So my question is primitive: What is a ToolChain? Where do I find one for the STM32CubeIDE? How do I install it so the IDE will function? I need very explicit instructions on how to do this, as all this material is new to me. Thanks!
Like
Reply
2019-08-05 12:00 AM
Thanks, Yuk117. Installing MinGW is also how I finally got unit test build to work (however, I installed the MinGW variant bundled with the Qt Creator community version which I have previously experienced to work well with e.g. threads).
It should be noted that setting the MINGW_HOME and PATH environment variables can be done per project within STM32CubeIDE (Project->Properties->C/C++ Build->Environment).
2019-09-09 02:21 PM
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.
2019-09-09 04:37 PM
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.
2019-09-10 02:33 AM
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.