peng-zhihui / Ctrl-FOC-Lite

1.05k stars 409 forks source link

Colin编译完无法下载,CreateProcess error=193, %1 不是有效的 Win32 应用程序。 #23

Open 0Element0 opened 2 years ago

0Element0 commented 2 years ago

运行 'Ctrl-FOC-Lite-fw.elf' 时出错: Cannot run program "E:\work\peng-zhihui.github\Ctrl-FOC-Lite-main\2.Firmware\STM32_HAL_version0\Ctrl-FOC-Lite-fw\cmake-build-debug\Ctrl-FOC-Lite-fw.elf" (in directory "E:\work\peng-zhihui.github\Ctrl-FOC-Lite-main\2.Firmware\STM32_HAL_version0\Ctrl-FOC-Lite-fw\cmake-build-debug"): CreateProcess error=193, %1 不是有效的 Win32 应用程序。

0Element0 commented 2 years ago

删除cmake-build-debug、.idea文件夹,重新加载构建工程就可以了,需要再次配置运行调试配置,OpenOCD设置。

zhaoxiangyea commented 1 year ago

@0Element0 您好,我也在编译simpleFOC版本的工程,但是我遇到了一些问题,可以请教您吗? 1、我删除了simpleFOC版本工程文件夹下的cmake-build-debug、.idea文件夹; 2、使用clion重新打开为“Cmake”工程,配置均按照稚晖君的教程进行的配置。 3、使用stm32cubeMX6.5版本重新生成了代码; 但是我遇到了下图中的问题: https://img-blog.csdnimg.cn/c6ab33ea4e9c4dafb9d3ebcbcfc3f583.png