cancel
Showing results for 
Search instead for 
Did you mean: 

IDE do not generate Drivers correctly (core_cm3.h missing)

ATide.1066
Associate II

Hi,

first of all i had a problem downloading the firmware package for my STM32F107VC. The IDE downloaded by itself two package v1.8.0 and v1.8.4, unzipping the first one worked, but the second failed. I found out that the name of the folder inside the two archive was the same, so i extracted them manually and renamed them correctly.

Now I created the project and made the IDE generate the files, (it was a test so i only selected the external clock in the .ioc file).

Building return error:

../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f107xc.h:150:10: fatal error: core_cm3.h: No such file or directory

I tried to do the same passages on another PC and it works fine (neither the problem of the firmware package shows up)

I tried to unistall and reinstall three different versione of the IDE and all of them behave the same.

Can somebody help me??

Thanks in advance.

6 REPLIES 6
TDK
Guru

Probably extracting things manually gummed up the system. The packages are really meant to be installed by CubeMX.

Repositories are stored in C:\Users\USERNAME\STM32Cube\Repository. If you uninstall CubeIDE and CubeMX and they are still there, perhaps try uninstalling and reinstalling the package from within the CubeIDE package manager (Help -> Manage Embedded...).

I don't know if straight up deleting them from that directory will have unintended consequences, but that is also a possibility, though I would not recommend it.

If you feel a post has answered your question, please click "Accept as Solution".

>>The IDE downloaded by itself two package v1.8.0 and v1.8.4, unzipping the first one worked, but the second failed. I found out that the name of the folder inside the two archive was the same, so i extracted them manually and renamed them correctly.

Yes, it's an incremental patch over the x.x.0 version, do so it takes 1GB rather than 2GB of hard drive space

Your other issues sounds like one of Include Paths, and them not being sufficiently inclusive.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Correct, if you rename folders then you can no longer expect that CubeMX will be able to properly generate resources. The folder names must be kept in sync with .xml files. I would advice to uninstall the CubeFW packages and re-install them, as described by TDK.

I am aware that i should not rename folders, but this was the only way I found to use the latest fw package.

If i let the IDE do the installation by itself it fails the Unzipping of the patch, saying that the folder already exists.

I tried but installation fails (directory already exsists) in both ways

i searched for the core_cm3.h file in the whole project, i did not found it, i don't think the problem is not being sufficently inclusive, i beleive the file was not created at all