cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Code generation could not be done because the necessary firmware package is missing. Not able to complete STM32Cube project creation.

CWill.3
Associate II

I hope this is the right thread for my question. I recently decided to switch to STM32CubeIDE from the online compiler as there is debugging and is offline capable.

I downloaded STM32CubeIDE and went to create a new STM32 Project. I selected my dev board and the firmware files automatically downloaded and unzipped. I then accepted all the default settings, however the error "Code generation could not be done because the necessary firmware package is missing. Not able to complete STM32Cube project creation." was thrown (and is thrown every time I try).

I have tried re-downloading the firmware files (which is painful due to having a very slow and expensive connection because of where I live, hence the desire for offline) and tried suggestions like this: https://community.st.com/s/question/0D53W00000NzOxxSAF/errors-in-stm32cubeide-firmware-update-offline with no success.

0693W000006F5mEQAS.png0693W000006F5n2QAC.png0693W000006F5nqQAC.pngI also do not know what files I actually need, what the error in the second image means or how to fix it, and what I need to do to fix the firmware repository settings.

  • STM32CubeIDE Version: 1.3.0
  • System: Windows 10
  • Dev Board: NUCLEO-F446RE

Thank you for your help in advance!

15 REPLIES 15
TDK
Guru

To close the IOC file, go to the main window and click the "X" in the tab that shows the IOC file open.

0693W000006F9MUQA0.png 

You can also access the updater in Help -> Check for Updates and Help -> Manage Embedded Software Packages. These updaters work for me.

I also suggest updating to the latest IDE version. There have been worthwhile improvements since 1.3.0.

The process is not very bandwidth friendly, unfortunately.

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

Thanks heaps for your reply!!

I was worried you were going to say ​update haha. But if it needs to be done it needs to be done I suppose! It might have to wait a couple of days before my mobile plan renews though hahaha.

​But I'll ​let you know how it goes! Thanks again!!

Ons KOOLI
Senior III

Hi CWill.3,

To start working with STM32CubeIDE, you can refer to these links:

  1. How to use STM32CubeIDE
  2. STM32CubeIDE quick start guide
  3. Integrated Development Environment for STM32

Best Regards,

Ons.

Unfortunately, due to circumstances out of my control I had to put this down for a couple of months. However I now live in an area with a much better internet connection!

So I have done as you suggested, I erased as much of v1.3.0 with IObit Uninstaller and installed v1.5.0 (as far as I can tell this is the latest version?). However still the same error!!!

I ran all the updaters in the Help menu I could. I also noticed that when creating a new STM32 Project when I went 'next' I could change the search location for the Firmware Installation Repository, is this the correct location?? It was originally somewhere else (seemingly a random unrelated place), however I cannot remember where woops!!

0693W000007DwWnQAK.pngAnother question I have is does the Workspace Directory location affect anything?

Cheers again!!

Hi Ons,

Thank you for your reply!! Sorry I have taken so long to get back to you. I unfortunately had to put this down for a couple of months due to circumstances outside my control.

Yes I have read as much relevant reference material I can find. However, I cannot even start the project as I think cubemx cannot find the files to tell it about how to set up the board I have. At least this is how I understand the issue. I will try and go over those references again with more attention to see if there is anything I have missed!

Thanks again!

Ons KOOLI
Senior III

Hi CWill.3,

Can you please mark your question as answered in case your issue is solved ?

Best Regards,

Ons.

Hi Ons,

Sorry for the late reply. I never did figure out what was going wrong so I ended up switching to a different platform sorry :\

So I'm not sure what to do as the question was never answered but I have moved on now, I don't know what you want to do??

Hi CWill.3,

I hope you come back again and your experience with STM32CubeIDE will be better than previous one as currently several improvements are done with the version 1.6.0

Best Regards,

Ons.

EMcDo.1
Associate II

So I'm having the same issue, both CubeMX and CubeIDE are up to date, yet no luck.

To be clear, I'm able to create/open a workspace, and have an .ioc file. Why the IDE cannot 'create an existing project via .ioc file' is very confusing...