Skip to main content
JLivn
Associate
Aug 14, 2019 5:57 PM UTC
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.

..

This topic has been closed for replies.
kris2399
kris2399Best answer
Associate II
Sep 30, 2020 2:12 PM UTC
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
Dec 2, 2019 12:12 PM UTC

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 Technical Moderator
Dec 2, 2019 1:07 PM UTC

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
JLivn
JLivnAuthor
Associate
Dec 12, 2019 7:57 AM UTC

0690X00000BuWdaQAF.png

mattias norlander
ST Technical Moderator
Dec 12, 2019 9:24 AM UTC

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?

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
ALout.1
Visitor II
Jan 21, 2020 9:06 PM UTC

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
Sep 29, 2020 7:16 PM UTC

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 Technical Moderator
Sep 30, 2020 8:28 AM UTC

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?

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
kris2399
kris2399Best answer
Associate II
Sep 30, 2020 2:12 PM UTC
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
Oct 6, 2020 6:19 AM UTC

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.