2

I have a STM32 Nucleo F4 and I am trying to create a new C project in STMCubeIDE.

I have STMCubeIDE version 1.5.0 Build: 8698_20201117_1050 (UTC)

In the Embedded Software Packages Manager I have installed "STM32Cube MCU Package for STM32F4 Series" version 1.25.2

However, when I go to create a new STM32 project (using the board selector to select my board - NUCLEO-F410RB) I get the following error message:

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.

If I call 'Project > Generate Code' it seems to complete, but most of the project files are missing, which means 'generate code' has failed silently at some stage.

Does anyone have any ideas?

DavidW
  • 353
  • 2
  • 10

2 Answers2

4

After more searching I finally found this: https://community.st.com/s/question/0D50X0000BeZi12/code-generation-could-not-be-done-firmware-package-v1241-can-not-be-unzipped

The solution from there worked for me:

  1. From this page https://www.st.com/en/embedded-software/stm32cubef4.html download two zips (STM32CubeF4 and Patch-CubeF4)
  2. Unpack first en.STM32Cube_FW_F4_V1.24.0.zip to Repository folder
  3. Then unpack en.patch_cubefw_f4.zip to the same folder with file replacement
  4. Done!

I downloaded V1.25.0 and the patch. The repository folder was under C:/Users//STM32CUBE/Repository

DavidW
  • 353
  • 2
  • 10
  • Hello, I tried to follow these steps. Unpacked "en.stm32cubef4_v1-26-0_v1.26.0" and "en.patch_cubef4_v1-26-2_v1.26.2". But it did not work. What does it mean unpack with file replacement? I unpacked both of them in "Repository" folder. They did not replace anything. Could anyone help me? – Nusrat Jemy Feb 01 '22 at 10:15
  • Surprisingly, After following the above steps, I tried to open a new project and then it works. But I have no idea why the existing old one did not work after the above steps. Thanks @DavidW – Nusrat Jemy Feb 01 '22 at 10:30
0

If you have the IDE working, choose menu item Help->"Manage Embedded Software Packages"

It will guide you to install the FW package you noted above. Afterwards, you can import the examples from that zip file into your IDE as a project.

netskink
  • 4,033
  • 2
  • 34
  • 46