Skip to main content
CWill.3
Associate
December 9, 2020
Question

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

  • December 9, 2020
  • 13 replies
  • 11659 views

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!

13 replies

Visitor II
May 14, 2024

I have exactly the same problem trying to solve for hours. Tried all the solutions on this and other topics none of them worked out. Main problem is I can't log in my st gives connection error and this results I can't update packages. Even I manually download and unzip files to the repostiry file I couldn't generate code-> couldn't update firmware -> Couldn't log in. 

Visitor II
August 21, 2024

In STM32cubeide application, login if you have an st account or create an account and login in help update bar.

The problem will be solved.

Associate II
October 8, 2024

i had the same problem, i was logged in to my st account, it even downloaded the firmware right there but i always got the error mentioned above, missing firmware.

I realized i could create a project on a different local server in our company just fine, so this might also have something to do with user rights, idk. Just make sure to check if you can create on a workspace on your local machine if everything else fails...

Hope this helps someone :)