cancel
Showing results for 
Search instead for 
Did you mean: 

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

xst
Associate III

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pavel A.
Evangelist III

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

This is incorrect, there should be another subdir level STM32Cube_H7 ... It's hard to tell what/why is wrong. Maybe the infamous login dialog failed. Invite a colleague or IT person to come over and help.

View solution in original post

7 REPLIES 7
Techn
Senior III

Did you try whole logged into your account in the ide while trying to do code generation?

There is a document in St website on how to.do.it manually aswell 

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

Hi Techn,

 

Thank you for responding.

Not sure what the phrase "whole logged into" means, but in the top line of menu items, I have tried to use the Icon myST to login.

When I select Login, nothing happens.

I also tried    Alt+L

and

Alt+l

Nothing happens.

 

Just to be sure, I checked my Internet connection and it is fine.

 

I ran    Help | Check For Updates and after about 10 minutes it reports software is up to date.

 

This is so baffling to me. I have watched, easily, 100 videos on programming stm32 microcontrollers, before doing this. It all looks very straightforward.

However, I am running into roadblocks at every intersection.

 

Even the location of various settings, within the GUI is different in my app.

Example, in all of the vids I watched the Serial Wire debug is set in   System | Sys

Not so in my GUI. it is in    Trace and Debug

While this in itself is not a problem, the difficulty is that the choices for Debug are different from what I have seen in the instructional videos.

 

Any other ideas, please?

 

Thanks,

xst

 

Techn
Senior III

Which version of CubeIDE are you using? I am having 1.15,1 and I am able to login to myST. once logged in do not logout!!!

one related thread

https://community.st.com/t5/stm32cubeide-mcus/errors-in-stm32cubeide-firmware-update-offline/m-p/196341#M9167

 

https://community.st.com/t5/stm32cubeide-mcus/quot-fail-to-get-required-stm32cube-firmware-package-quot-ide-1/td-p/687381

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

Hi Techn,

 

Thanks again.

 

Woops ... I have 1.16.0

 

Could this be the problem?

 

I don't recall if when I downloaded if I had a choice of version, but if re-installing with an earlier model might help, I will not hesitate to do that.

 

I will check the links you gave but I suspect I have already studied them .....

 

Thanks,

xst

 

 

Pavel A.
Evangelist III

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

This is incorrect, there should be another subdir level STM32Cube_H7 ... It's hard to tell what/why is wrong. Maybe the infamous login dialog failed. Invite a colleague or IT person to come over and help.

Hi again Pavel,

 

Took a while for me to get back to this.

We have been under tornado alert for quite some time and I have had computers shut down.

Anyway ....

 

Thank you for insight.

I did reflect on your previous comments in a previous post about github.

Therefore I created a new repository directory on my HD.

I installed  git  on my Windows machine.

I cloned the github repro and, just as you said here, there is that intervening directory.

Unfortunately that did not help.

 

Its a bit weird, but somehow I suspect the Nucleo board.

I have a Blackpill board so I think that I will wire it up and give it a try.

 

Also, I will install the ST apps on my new MX Linux box and give it a whirl there.

It is my nature, not to give up.

I keep hammering on it.

 

Thanks again to you and others who have generously offered advice and insights.

 

Best regards to all,

xst

 

 

_sniper142_
Associate

I am also having the same problem....!!!!