STM32
直播中

哈哈哈

10年用户 809经验值
擅长:可编程逻辑
私信 关注
[问答]

STM32G473RCT的PC15管脚设置成GPIO_OUTPUT,程序无法运行,debug也异常怎么解决?

STM32G473RCT 的PC15(OSC32_OUT)管脚设置成GPIO_OUTPUT。程序无法运行,debug也异常。信息如下:
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a12912.srec
File          : ST-LINK_GDB_server_a12912.srec
Size          : 33.23 KB
Address       : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 16]
Download in Progress:
File download complete
time elapsed during download operation: 00:00:01.052
Verifying ...
Download verified successfully
Target is not responding, retrying...
Target is not responding, retrying...
Shutting down...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...

回帖(1)

李建设

2024-3-11 10:17:56
开发工具是STM32CUBEIDE,如果设置成input, 或者默认状态就运行正常。查看PC13~PC15作output时电流不超过3mA,我在PC15上串联了一个5.1K的电阻,对MOSFET进行控制,电流远远低于3mA。如果去掉电阻,PC15悬空,程序运行正常。
举报

更多回帖

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