使用 ST Motor Control Workbench 5.4.4 FOC 电机开发工具和 stm32cubemx 6.1.1 生成的工程报错,记录一下解决的办法。
报错信息如下:
2024-04-09 18:35:28,527 ERROR [LineInfo_to_exitCode.log_LineInfo] C:\Users\.stm32cubemx\thirdparties\pdsc\STMicroelectronics.X-CUBE-SMBUS.2.1.0.pdsc: PDSC version is not supported
2024-04-09 18:35:28,621 ERROR [LineInfo_to_exitCode.log_LineInfo] C:\Users\.stm32cubemx\thirdparties\pdsc\STMicroelectronics.FP-SNS-FLIGHT1.5.0.2.pdsc: PDSC version is not supported
2024-04-09 18:35:28,638 ERROR [LineInfo_to_exitCode.log_LineInfo] C:\Users\.stm32cubemx\thirdparties\pdsc\STMicroelectronics.X-CUBE-DISPLAY.3.0.0.pdsc: PDSC version is not supported
2024-04-09 18:35:28,682 ERROR [LineInfo_to_exitCode.log_LineInfo] C:\Users\.stm32cubemx\thirdparties\pdsc\emotas.I-CUBE-CANOPEN.1.3.0.pdsc: PDSC version is not supported
2024-04-09 18:35:28,698 ERROR [LineInfo_to_exitCode.log_LineInfo] C:\Users\.stm32cubemx\thirdparties\pdsc\STMicroelectronics.X-CUBE-BLEMGR.3.1.0.pdsc: PDSC version is not supported
2024-04-09 18:35:28,709 ERROR [LineInfo_to_exitCode.log_LineInfo] C:\Users\.stm32cubemx\thirdparties\pdsc\STMicroelectronics.FP-SNS-SMARTAG2.1.2.0.pdsc: PDSC version is not supported
2024-04-09 18:35:28,747 ERROR [LineInfo_to_exitCode.log_LineInfo] C:\Users\.stm32cubemx\thirdparties\pdsc\STMicroelectronics.FP-SNS-MOTENV1.5.0.0.pdsc: PDSC version is not supported
2024-04-09 18:35:29,258 ERROR [LineInfo_to_exitCode.log_LineInfo] C:\Users\.stm32cubemx\thirdparties\pdsc\STMicroelectronics.FP-SNS-MOTENVWB1.1.3.1.pdsc: PDSC version is not supported
2024-04-09 18:35:29,561 ERROR [LineInfo_to_exitCode.log_LineInfo] C:\Users\.stm32cubemx\thirdparties\pdsc\STMicroelectronics.X-CUBE-FREERTOS.1.1.0.pdsc: PDSC version is not supported
2024-04-09 18:35:29,615 ERROR [LineInfo_to_exitCode.log_LineInfo] C:\Users\.stm32cubemx\thirdparties\pdsc\STMicroelectronics.X-CUBE-TOF1.3.4.1.pdsc: PDSC version is not supported
2024-04-09 18:35:29,660 ERROR [LineInfo_to_exitCode.log_LineInfo] C:\Users\.stm32cubemx\thirdparties\pdsc\Infineon.AIROC-Wi-Fi-Bluetooth-STM32.1.6.0.pdsc: PDSC version is not supported
导致工程生成失败
试过更换不同的 ST Motor Control Workbench 版本,但是问题还没有得到解决。
官方给出了不同版本的 STM32CubeMx 的限制,但是并未提到针对 6.1.1 版本的说明
将上述的报错的 .pdsc 文件改成 .pdsc.bak,避开检测
打开 stm32cubemx,再次使用 ST Motor Control Workbench 5.4.4 生成工程
工程生成成功~