cancel
Showing results for 
Search instead for 
Did you mean: 

Atollic/STM32cubeMX generates code but fails to open project (Java version problem?)

I just installed the latest Atollic package, and the latest STM32cubeMX 4.27.0 plug-in.

Created a cube project, edited the configuration, generated code.

After code generation I clicked Open Project, but it failed:

0690X000006CDv5QAG.png

The newly generated project doesn't show up in the workspace where it was created.

If I add the project manually to the workspace, it does not build.

How can I get past this?

Thanks!

PS: Java(s) installed on this workstation:

c:>java -version

java version "11" 2018-09-25

Java(TM) SE Runtime Environment 18.9 (build 11+28)

Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)

c:>"C:\Program Files (x86)\Atollic\TrueSTUDIO for STM32 9.1.0\ide\jre\bin\java" -version

java version "1.8.0_181"

Java(TM) SE Runtime Environment (build 1.8.0_181-b13)

Java HotSpot(TM) Client VM (build 25.181-b13, mixed mode)

1 ACCEPTED SOLUTION

Accepted Solutions
Cyril FENARD
ST Employee

Hi @Dave Nadler​ ,

Let me share my personal experience and solution:

I have Eclipse (Photon + AC6 plugins) and Atollic TrueStudio installed on my Windows 7 PC.

I generated a STM32CubeMX project for TrueSTUDIO "Toolchain / IDE"

- With STM32CubeMX, open -> Eclipse -> Compilation: can not be launched

 This seems to conflict with with eclipse installation and default program set for this type of project.

- With TrueSTUDIO® (9.0.1) -> import -> project build -> OK

 I checked .cproject and .project generated by STM32CubeMX and they seem well formed.

- With TrueSTUDIO® (9.1.0) -> the same as 9.0.1

The solution that worked for me was to go into the folder were the .cproject was and thanks to 

Properties contextual popup, I changed the "Open with" updated with TrueSTUDIO.exe

I regenerated the project and open from STM32CubeMX launches the correct IDE now.

Hoping it gives ideas where to go.

Regards.

Cyril

View solution in original post

3 REPLIES 3
Imen.D
ST Employee

Hello @Dave Nadler​ ,

I will raise this internally to CubeMx team and we come back to you soon.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Cyril FENARD
ST Employee

Hi @Dave Nadler​ ,

Let me share my personal experience and solution:

I have Eclipse (Photon + AC6 plugins) and Atollic TrueStudio installed on my Windows 7 PC.

I generated a STM32CubeMX project for TrueSTUDIO "Toolchain / IDE"

- With STM32CubeMX, open -> Eclipse -> Compilation: can not be launched

 This seems to conflict with with eclipse installation and default program set for this type of project.

- With TrueSTUDIO® (9.0.1) -> import -> project build -> OK

 I checked .cproject and .project generated by STM32CubeMX and they seem well formed.

- With TrueSTUDIO® (9.1.0) -> the same as 9.0.1

The solution that worked for me was to go into the folder were the .cproject was and thanks to 

Properties contextual popup, I changed the "Open with" updated with TrueSTUDIO.exe

I regenerated the project and open from STM32CubeMX launches the correct IDE now.

Hoping it gives ideas where to go.

Regards.

Cyril

@Cyril FENARD​ Thanks Cyril, that works here as well.