You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

STM32F103C6T6引脚无输出求助:程序上传正常但LED不闪烁

STM32F103C6T6 LED点亮故障排查求助

我正尝试让STM32F103C6T6开发板运行基础LED点亮程序,目前情况如下:

硬件连接与程序上传情况

  • FTDI模块的Tx、Rx、VCC、GND分别连接至开发板的A9、A10、3.3V、GND引脚
  • 已通过Arduino IDE串口成功上传程序,上传日志:
Using Parser : Raw BINARY
Interface serial_w32: 115200 8E1
Version      : 0x22
Option 1     : 0x00
Option 2     : 0x00
Device ID    : 0x0412 (Low-density)
- RAM        : 10KiB  (512b reserved by bootloader)
- Flash      : 32KiB (sector size: 4x1024)
- Option RAM : 16b
- System RAM : 2KiB
Write to memory
Erasing memory 
...
Wrote address 0x08002b98 (100.00%) Done.

Starting execution at address 0x08000000... done.

故障现象

  • 连接FTDI时,开发板PWR红灯常亮
  • 运行基础Blink程序时,板载LED(PC13)不闪烁
  • 尝试将代码中引脚改为PB12-PB15等数字输出引脚,外接LED串联220Ω电阻后连接引脚与GND,仍然无反应

使用的Blink示例代码(引脚2对应PC13)

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin PB1 as an output.
  pinMode(2, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(2, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(2, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}

自我推测

我怀疑故障可能和最初操作有关:曾将5V模式的FTDI连接至开发板的5V引脚,但开发板本身设有5V引脚,不确定这是否会导致问题。

恳请各位提供排查思路。

引脚图:
STM32F103C6T6引脚图

内容的提问来源于stack exchange,提问作者graem

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.12 04:45:37