STM32
直播中

哈哈哈

10年用户 879经验值
擅长:可编程逻辑 电源/新能源
私信 关注
[问答]

使用IHM0003kit套件以及MCworkbench在生成代码时出现路径错误的原因?

   首先是生成代码时的报错信息,这个工程是直接使用IHM0003套件的默认配置,没有做任何修改:

日志内容:
2023-05-02 11:02:14,822 DEBUG [Main.lambda$run$0] Arguments: [-ioc, D:STMicroelectronicsMC_SDK_5.4.8UtilitiesPC_SoftwareSTMCWBGCSP_ProjectsIHM0003_kit_testIHM0003_kit_test.ioc, -xdm, D:STMicroelectronicsMC_SDK_5.4.8UtilitiesPC_SoftwareSTMCWBGCSP_ProjectsIHM0003_kit_testIHM0003_kit_test.wb_def]2023-05-02 11:02:14,826 DEBUG [ArgsValue.readPropertiesFile] [AppConfig] pack.source = "D:STMicroelectronicsMC_SDK_5.4.8MiddlewaresSTMotorControl" 2023-05-02 11:02:14,826 DEBUG [ArgsValue.readPropertiesFile] [UserConfig] do not exist in "C:UsersBoZhang.st_motor_controlwb2mx.properties" 2023-05-02 11:02:14,827 DEBUG [ArgsValue.getConfigProperties] pack.source = "../../../../Middlewares/ST/MotorControl"2023-05-02 11:02:14,835 DEBUG [ArgsValue.lambda$retrieve$2] CLI_ARG[xdm]: D:STMicroelectronicsMC_SDK_5.4.8UtilitiesPC_SoftwareSTMCWBGCSP_ProjectsIHM0003_kit_testIHM0003_kit_test.wb_def2023-05-02 11:02:14,836 DEBUG [ArgsValue.lambda$retrieve$2] CLI_ARG[ioc]: D:STMicroelectronicsMC_SDK_5.4.8UtilitiesPC_SoftwareSTMCWBGCSP_ProjectsIHM0003_kit_testIHM0003_kit_test.ioc2023-05-02 11:02:14,837 DEBUG [ArgsValue.retrieve] {xdm=D:STMicroelectronicsMC_SDK_5.4.8UtilitiesPC_SoftwareSTMCWBGCSP_ProjectsIHM0003_kit_testIHM0003_kit_test.wb_def, updftl=templates/wb_ioc_mc-middleware.ftl, mx_timeout=-1, exp=templates/wb-defines_where_and_what.txt, ioc=D:STMicroelectronicsMC_SDK_5.4.8UtilitiesPC_SoftwareSTMCWBGCSP_ProjectsIHM0003_kit_testIHM0003_kit_test.ioc, pack=../../../../Middlewares/ST/MotorControl, ftl=templates/wb_ioc_template.ftl}2023-05-02 11:02:14,920 DEBUG [Main.run] Targeted MCU family = G42023-05-02 11:02:14,949 DEBUG [Main.run] Minimum associated CubeMx to the `G4` targeted MCU family is `5.2.0-a0`2023-05-02 11:02:14,967 DEBUG [WindowsCubeMxFinder.lambda$findThem$2] Found 64-bit subkey HKEY_LOCAL_MACHINE~~~UninstallSTM32CubeMX2023-05-02 11:02:14,976 DEBUG [CubeMxCtx.EXE_version] Loaded path: 'D:STMicroelectronicsSTM32CubeMXSTM32CubeMX.exe'2023-05-02 11:02:14,977 DEBUG [CubeMxCtx.EXE_version] Loaded updater jar: 'D:STMicroelectronicsSTM32CubeMXpluginsupdater.jar'2023-05-02 11:02:14,996 DEBUG [CubeMxCtx.EXE_version] Loaded path: 'D:STMicroelectronicsSTM32CubeMXSTM32CubeMX.exe'2023-05-02 11:02:14,996 DEBUG [CubeMxCtx.EXE_version] Loaded updater jar: 'D:STMicroelectronicsSTM32CubeMXpluginsupdater.jar'2023-05-02 11:02:15,010 DEBUG [CubeMxCtx.EXE_version] Loaded path: 'D:STMicroelectronicsSTM32CubeMXSTM32CubeMX.exe'2023-05-02 11:02:15,010 DEBUG [CubeMxCtx.EXE_version] Loaded updater jar: 'D:STMicroelectronicsSTM32CubeMXpluginsupdater.jar'2023-05-02 11:02:18,289 DEBUG [CubeMxCtx.EXE_version] Loaded path: 'D:STMicroelectronicsSTM32CubeMXSTM32CubeMX.exe'2023-05-02 11:02:18,289 DEBUG [CubeMxCtx.EXE_version] Loaded updater jar: 'D:STMicroelectronicsSTM32CubeMXpluginsupdater.jar'2023-05-02 11:02:18,327 DEBUG [EnvironmentChecker.checkPack] STM32CubeMX.Version: 6.8.0-RC42023-05-02 11:02:21,275 ERROR [LineInfo_to_exitCode.manage_MCPackNotFound] MotorControl reference pack not found: "../../../../Middlewares/ST/MotorControl"软件安装路径:

工程路径:

是要在CubeMX里面单独安装MCSDK才能识别吗,这个相对路径的参考路径是.stmcx文件所在路径吗,或者库的路径能不能手动配置成绝对路径,感谢解答!

回帖(1)

李刚

2024-3-18 14:05:45
版本的问题,使用STM32CubeMX6.3.0的应该就没问题了
举报

更多回帖

发帖
×
20
完善资料,
赚取积分