解决使用STM32CubeMX点击生成代码时,出现“The Firmware Package(STM32Cube FW_F1 V1.8.5)...

本文讲述了在使用STM32CubeMX时遇到的关于FirmwarePackage版本不匹配的问题,解决步骤包括更新库版本、手动安装缺失的固件库、管理嵌入式软件包等,确保代码生成成功。
摘要由CSDN通过智能技术生成

     在使用STM32CubeMX生成代码的时候出现弹窗显示"The Firmware Package(STM32Cube FW_F1 V1.8.5)or one of its dependencies required by the Project is not available in your STM32CubeMX Repository" 
       往回检查Project后发现了一个红色的文字Use latest available version,取消勾选,然后选择最上面的版本(最新的)STM32Cube FW_F1 V1.8.5版本就行了,之后再生成代码的时候发现还是会出现类似的情况。
       然后根据上面这个库的版本,在自己的电脑C盘--用户--xxx(用户名)---STM32CUbe---repository文件夹下看是否有STM32Cube_FW_F1_V1.8.5,如果没有的话,则需要安装固件库。
检查发现只有1.8.4版本的,没有1.8.5版本的(不匹配),那么就去下载了该版本的库的压缩包回来,进行复制到上面的文件夹下,切记不用解压和剪切!
       
复制完成后,点击CubeMX界面上面的Help选项,点击其中的Manage embedded software packages,然后弹出界面,点击左下角的From Local,弹出界面,选择刚刚压缩包所在的路径,点击该压缩包,点击打开。

发现出现弹窗,说明现在已经没有权限这样打开压缩包,可以直接在上面这个文件夹中将这个压缩包进行解压。
 

解压后,再次点击CubeMX界面上面的Help选项,点击其中的Manage embedded software packages,然后弹出界面,发现如下图,这里变成了绿色,说明已经安装成功。
 

可以再次尝试生成代码,即可成功生成并打开Project。 
关于STM32Cube FW_F1 V1.8.5版本的压缩包链接在这里,可以自取,如果需要F4等系列需要自行找一下。
链接:https://pan.baidu.com/s/1W5FEnY3obYX0CYXJZDVVdA?pwd=6b5v 
提取码:6b5v

  • 13
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
此软件包中提供的 HAL(硬件抽象层)驱动程序支持 以下STM32F100xx STM32F101xx,STM32F102xx,STM32F103xx ,STM32F105xx 和STM32F107xx系列。 STM32CubeF1固件包附带一个更新程序实用程序STM32CubeUpdater,可配置为自动或按需检查新固件包更新(新版本或/和补丁)。 要快速入门STM32CubeF1固件包,请参阅UM1847,您可以从www.st.com/stm32cube下载固件更新和所有最新文档。 下面 链接到最有用的文档 最新版本 的STM32CubeF1固件包。 UM1847:STM32F1系列STM32CubeF1入门。 UM1853:STM32CubeF1 Nucleo演示固件。 UM1850:STM32F1xx HAL驱动程序的说明。 UM1734:STM32Cube USB设备库。 UM1720:STM32Cube USB主机库。 UM1721:使用FatF在STM32Cube上开发应用程序。 UM1722:使用RTOS在STM32Cube上开发应用程序。 UM1713:使用LwIP TCP / IP堆栈在STM32Cube上开发应用程序。 UM1709:STM32Cube以太网IAP示例。 更新历史记录 V1.7.0 / 09-October-2018 主要变化 用于修复已知缺陷和一些实现增强的常规更新 对HAL驱动程序进行的以下更改需要基于较旧的HAL版本更新应用程序代码 HAL CAN驱动程序的返工(兼容性中断) 新的HAL CAN驱动程序已经使用新的API进行了重新设计,以绕过先前HAL CAN驱动程序版本中对CAN Tx / Rx FIFO管理的限制。 推荐使用新的HAL CAN驱动程序。它通常位于Drivers / STM32F1xx_HAL_Driver / Src和Drivers / STM32f1xx_HAL_Driver / Inc文件夹中。它可以通过stm32f1xx_hal_conf.h中的开关HAL_CAN_MODULE_ENABLED启用 出于软件兼容性原因,旧版HAL CAN驱动程序也出现在Drivers / STM32F1xx_HAL_Driver / Src / Legacy和Drivers / STM32F1xx_HAL_Driver / Inc / Legacy文件夹中。建议不要使用它作为已弃用的用法。但是可以通过stm32f1xx_hal_conf.h中的开关HAL_CAN_LEGACY_MODULE_ENABLED启用它 \ HAL stm32f1xx_hal_conf_template.h:添加开关 HAL_CAN_LEGACY_MODULE_ENABLED HAL CAN驱动程序已使用新API进行了重新设计。 \ CMSIS 修复已知缺陷 和几个实现 增强 \项目 更新CAN示例以支持新的HAL CAN驱动程序。 通过添加开关 HAL_CAN_LEGACY_MODULE_ENABLED 更新stm32f1xx_hal_conf.h 。 F 或完整的更改列表,请参阅每个固件组件的发行说明 内容 STM32CubeF1固件包附带了一系列在STMicroelectronics板上运行的示例,由板组织,并为主要支持的工具链提供预配置项目。此表(STM32CubeProjectsList.html)中提供了详尽的项目列表。 项目发布说明 STM32F103RB,核蛋白 应用程序 (发行说明) 演示(发行说明) 示例(发行说明) Examples_LL (发行说明) Examples_MIX (发行说明) 模板(发行说明) Templates_LL (发行说明) STM32VL发现 示例(发行说明) 模板(发行说明) Templates_LL (发行说明) STM3210C_EVAL 应用程序(发行说明) 示例(发行说明) 模板(发行说明) Templates_LL (发行说明) STM3210E_EVAL 应用程序(发行说明) 示例(发行说明) Examples_LL (发行说明) Examples_MIX (发行说明) 模板(发行说明) Templates_LL (发行说明) 驱动程序 Cortex-M CMSIS V4.5(发行说明) STM32F1xx CMSIS V4.3.0(发行说明) STM32F1 xx HAL V1.1.3 (发行说明) BSP STM3210E_EVAL V7.0.0 (发行说明) BSP STM3210C_EVAL V6.1.0 (发行说明) BSP STM32VL-Discovery V1.0.1 (发行
the firmware package(stm32cube fw_f4 v1.8.5)or one of its dependencies requires the presence of a specific version of software or components. This error usually occurs when the firmware package requires a particular version of the software to function properly. To resolve this issue, you can follow the steps below: 1. Verify the compatibility: Check if the firmware package (stm32cube fw_f4 v1.8.5) is compatible with your current software version. Ensure that you have the correct version of the firmware package for your software. 2. Update the software: If the firmware package requires a specific version of software or components, check if there is an available update for your software. Updating to the latest version may resolve the compatibility issue. 3. Install missing dependencies: If the error message mentions the need for dependencies, make sure to install them. These dependencies could be additional software or components required by the firmware package. Check the documentation or user manual of the firmware package for a list of required dependencies. 4. Seek support: If you have followed the above steps but still encounter the error, it is recommended to seek support from the firmware package's manufacturer or community. They can provide assistance in troubleshooting the issue or guiding you through the installation process. Remember to always backup your system and files before making any changes or updates to ensure the safety of your data. 请注意,在执行任何操作之前,一定要提前备份您的系统和文件,以确保您的数据安全。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值