HomeKit 发表于 2025-7-15 09:59

配置TIM引脚,激活TIM22_CH2和TIM3_CH4,无法编译代码。

本帖最后由 HomeKit 于 2025-7-28 22:00 编辑


用STM32L071RBTx芯片,编译从.ioc文件生成的代码,能够重现同样的问题。

这是我得到的错误消息:16:16:20 **** Clean-only build of configuration Debug for project test222 ****

make -j12 clean

rm -rf *

16:16:20 Build Finished. 0 errors, 0 warnings. (took 316ms)

16:16:20 **** Incremental Build of configuration Debug for project test222 ****

jcky001 发表于 2025-7-15 14:51

检查时钟配置是否有误。

cr315 发表于 2025-7-15 14:52

GPIO引脚配置是否正确。

cr315 发表于 2025-7-15 14:53

GPIO引脚配置是否正确。

elephant00 发表于 2025-7-15 14:54

用HAL库初始化TIM22和TIM3的通道。

flycamelaaa 发表于 2025-7-15 16:58

启动PWM输出。
页: [1]
查看完整版本: 配置TIM引脚,激活TIM22_CH2和TIM3_CH4,无法编译代码。