STM32 cubemx、cubeide 指定固件库版本 firmware package version

博客作者遇到了在CubeMX中无法选择旧版本固件库的问题,导致ADC时钟配置出错。通过修改.ioc文件,将版本信息回滚到之前的1.9.1版本,成功规避了这个bug。此外,还提供了防止CubeMX提示更新的设置方法。
摘要由CSDN通过智能技术生成

cubeMX有个很蛋疼的问题:新建项目时只能使用最新的固件库,不能选择。

ST Community

“I don't see the correct side from generating using an old versions because there is always enhancement and bug fixes in the new release.”

呵呵。。。

我用H7 V1.9.1正常,手贱更新了cubeide,同时手贱更新固件库到H7 V1.10.0,结果ADC的时钟没法配置了。查了一下ST知道了这个bug,要到下个版本才会修复。

我想继续用H7 V1.9.1,但也懒得重新装旧版本的cubeide或cubemx了,发现如下办法:

直接编辑.ioc文件

MxCube.Version=6.5.0
MxDb.Version=DB.6.0.50
ProjectManager.FirmwarePackage=STM32Cube FW_H7 V1.10.0
改为
MxCube.Version=6.4.0
MxDb.Version=DB.6.0.40
ProjectManager.FirmwarePackage=STM32Cube FW_H7 V1.9.1

如果不想cube每次都提醒旧版本文件,可以把

ProjectManager.AskForMigrate=false

改为true

Version: 2.2.0 (2021-07-22) Keil.STM32F3xx_DFP.2.2.0.pack Updated Pack to STM32Cube_FW_F3 Firmware Package version V1.11.2: Updated HAL to version V1.5.5. External interrupts and events (EXTI) HAL Universal serial bus full-speed device interface (USB) LL Added global define USE_HAL_DRIVER and USE_FULL_LL_DRIVER to the component ::Device:STM32Cube Framework:STM32CubeMX. Added global define USE_HAL_DRIVER and USE_FULL_LL_DRIVER to the component ::Device:STM32Cube HAL:COMMON. STM32CubeMX integration: MX_Device_h.ftl: Updated parsing of USART virtual mode. Updated generation of macros: Added handling for '(' and ')' symbols. FrameworkCubeMX_gpdsc.ftl: Added support for Timebase Source TIMx. Board Examples: Terminating app_main thread with osThreadExit() to avoid endless loop. Updated RTX configuration (CMSIS 5.8.0). Updated template based files (MDK-Middleware 7.13.0). Configured MDK projects to use Arm Compiler 6. Changed Assembler option to armclang (Auto Select). Updated all USB Host/Device examples with user templates from MDK-Middleware v7.11.1. FileSystem, USB: Changed variant selection to "MDK-Plus". Updated Graphics examples to use Segger emWin version 5.50. CMSIS Driver: CAN: Corrected SetBitrate function to leave Silent and Loopback mode as they were. Corrected SetMode function to clear Silent and Loopback mode when NORMAL mode is activated. Corrected MessageSend function to only access required data for sending. Corrected abort message send functionality. I2C: Corrected pin configuration: MX_I2Cx_SMBA_GPIO_PuPdOD replaced with MX_I2Cx_yyy_GPIO_PuPdOD. Corrected usage function name USB Device: Corrected transmitted count for non-control IN endpoints. Updated USBD_EndpointConfigure function to check that maximum packet size requested fits into configured FIFO (compile time configured). Removed include of stm32f3xx_hal_pcd.h header.
此软件包中提供的 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 (发行
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值