cancel
Showing results for 
Search instead for 
Did you mean: 

Error when creating project: "Code generation could not be done most probably...."

xst
Associate II

Hello Everyone,

I have been trying for 2 days to solve this.
I keep going around in circles.
I have found various similar posts both here and on Stackexchange, but I am still stuck.

 

=== Here is error message when creating a new STM32 Project.

"Code generation could not be done most probably because the necessary firmware package is missing.
Not able to complete STM32Cube project creation.
See Firmware updater for settings related to firmware package installation.
Tips
Please use the Device Configuration Tool and then use 'Project > Generate Code to complete the project generation."

1.
Initially when this happened, I discovered that there was NO firmware in the repository directory.
Only some jpg ads.
I had previously downloaded 530+ megabytes of ZIP files (that expanded to 1.1 gig bytes).

Therefore I moved that file hierarchy to the repository directory.

Repository is:
C:\Users\ad\STM32Cube\Repository\

The firmware, etc is immediately at that level.
Examples:

C:\Users\ad\STM32Cube\Repository\Documentation
C:\Users\ad\STM32Cube\Repository\Drives
C:\Users\ad\STM32Cube\Repository\Middlewares
......

Is this correct or does there need to be some intervening subdir?


2.
The Tip says to use the Device Configuration Tool.
I found it in Window | Preferences.
Does not seem to be anything to do there.


3.
I don't see anything unusual in the Firmware Updater dialog box.


4.

In Help from the main menu;

If I select: Check For Target Selector Device Updates
There are various files that get downloaded.
I don't know what they are or where they are being stored.
Ultimately it does not help with this problem.

5.

In Help from the main menu;

If I select: Embedded Software Package Updates
Nothing happens.


6.

In Help from the main menu;

If I select: Manage Software Packages
Nothing happens.

 

7.

In Help from the main menu;

If I select: Manage Software Packages
Nothing happens.


Any suggestions are much appreciated.

Thank you,
xst

 

0 REPLIES 0