Skip to main content
JLivn
Associate
August 14, 2019
Solved

I am doing my first attempt with STM32CubeIDE (Ver 1.0.2) and after selecting the MCU model and naming the project, I get a message "Create minimal project failure: Cannot read template source". Please direct me.

  • August 14, 2019
  • 21 replies
  • 4619 views

..

This topic has been closed for replies.
Best answer by kris2399
Hi Mattias,
Thanks for your reply. I’ve been I’m using the AC6 toolchain and Eclipse. There seems tob e a known issue which relates to his kind of issues: see https://bugs.eclipse.org/bugs/show_bug.cgi?id=67719
In accordance to this bug report I added the lines (Note the line “-Djava… “ didn’t dot he trick)
-Djava.io.tmpdir=c:\STM32Dev\tmpdir
-configuration c:\STM32Dev\tmpdir
In my eclipse.ini file
Now it seems fine: I also see the .tmp file in the directory specified by the -configuration (whereas it was previously written to de default directory)
Maybe this can help other people,
Thanks again for putting me on this track,
Kris Demets

21 replies

JLivn
JLivnAuthor
Associate
December 2, 2019

Mattias

I want to invite you to log in to my computer and try for yourself. I just re-installed the IDE and the issue consists. I have an L476RGT evaluation board an I want to start a new project.

my TeamViewer ID is 791 575 745 and for now the password is kd8i47

J.L

mattias norlander
ST Employee
December 2, 2019

Replied in PM, let's take it from there. If we find a solution which is useful for other people, we will add a public comment.

JLivn
JLivnAuthor
Associate
December 12, 2019

0690X00000BuWdaQAF.png

mattias norlander
ST Employee
December 12, 2019

This could be the issue. Try creating a workspace in "C:\temp" (provided that you have write access with your user in this folder). Does that work better?

ALout.1
Visitor II
January 21, 2020

I'm getting the same problem after fresh install.

Unsurprisingly the file exists, what is surprising is that my installation, workspace, and project paths all begin with C:/ST, so it makes no sense why it would be trying to access C:/User...

kris2399
Associate II
September 29, 2020

These are my first (disapointing) steps using STM32L0 dev tools. I also get that error 'Internal error, File not found...' although the file exists

I use following version:

Eclipse IDE for C/C++ Developers

Version: Neon.3 Release (4.6.3)

Changing the workspace name to a name without blanks doesn't solve the problem. Apparantly the .tmp file is created by the toolset on a directory which in my case still contains a space. I don't have a clue how to ommit the toolset from accessing the directory c:\users\< my name>\AppData\...

Can someone advise me in this?

Thanks

mattias norlander
ST Employee
September 30, 2020

It is quite difficult to assist without being able to re-produce. There must be some OS policy leading to these issues.

Can you try this:

  • Make a back-up copy of C:\ST\STM32CubeIDE_1.0.2\STM32CubeIDE\stm32cubeide.ini
  • In C:\ST\STM32CubeIDE_1.0.2\STM32CubeIDE\stm32cubeide.ini, at the end of the file add the line:
    • "-Djava.io.tmpdir=c:\a_directory_without_spaces_with_write_access\"
    • Make sure the selected directory for temporary files is one without spaces, only ascii characters and where your windows user has write access...
  • Start CubeIDE and run your test case

Does that posibly solve the problem?

kris2399
kris2399Best answer
Associate II
September 30, 2020
Hi Mattias,
Thanks for your reply. I’ve been I’m using the AC6 toolchain and Eclipse. There seems tob e a known issue which relates to his kind of issues: see https://bugs.eclipse.org/bugs/show_bug.cgi?id=67719
In accordance to this bug report I added the lines (Note the line “-Djava… “ didn’t dot he trick)
-Djava.io.tmpdir=c:\STM32Dev\tmpdir
-configuration c:\STM32Dev\tmpdir
In my eclipse.ini file
Now it seems fine: I also see the .tmp file in the directory specified by the -configuration (whereas it was previously written to de default directory)
Maybe this can help other people,
Thanks again for putting me on this track,
Kris Demets
JLivn
JLivnAuthor
Associate
October 6, 2020

I'm not so sure about Eclips.. Never had any problem with it, but regarding CubeIDE you can actually find it in the V1.0.2 installation notes under 'Unsolved issus': "Problem with spaces or non-alphabet characters in the path".

As far as I reached this problem can only be solved by complete re-installing of Windows. I simply used my other computer.