stm32cubeide 报告固件包丢失

stm32cubeide reports firmware package is missing

我有一个 STM32 Nucleo F4,我正在尝试在 STMCubeIDE 中创建一个新的 C 项目。

我有 STMCubeIDE 版本 1.5.0 构建:8698_20201117_1050 (UTC)

在嵌入式软件包管理器中,我安装了“STM32F4 系列的 STM32Cube MCU 软件包”版本 1.25.2

但是,当我去创建一个新的 STM32 项目时(使用开发板 select 或 select 我的开发板 - NUCLEO-F410RB)我收到以下错误消息:

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.

如果我调用 'Project > Generate Code' 它似乎完成了,但是大部分项目文件都丢失了,这意味着 'generate code' 在某个阶段无提示地失败了。

有没有人有什么想法?

经过更多的搜索,我终于找到了这个: https://community.st.com/s/question/0D50X0000BeZi12/code-generation-could-not-be-done-firmware-package-v1241-can-not-be-unzipped

那里的解决方案对我有用:

  1. 从此页面https://www.st.com/en/embedded-software/stm32cubef4.html下载两个 zip(STM32CubeF4 和 Patch-CubeF4)
  2. 先解压en.STM32Cube_FW_F4_V1.24.0.zip到Repository文件夹
  3. 然后将en.patch_cubefw_f4.zip解压到与文件替换相同的文件夹
  4. 完成!

我下载了V1.25.0和补丁。 存储库文件夹位于 C:/Users//STM32CUBE/Repository

如果 IDE 正常工作,请选择菜单项“帮助”->“管理嵌入式软件包”

它将引导您安装上面提到的固件包。之后,您可以将该 zip 文件中的示例作为项目导入到您的 IDE 中。