stm32stm32f4nucleostm32cubeide

stm32cubeide reports firmware package is missing


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?


Solution

  • 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