Black Pill: Debugging STM32F103RCT6 in Keil Fails to Enter main()
Title edited to highlight that this is a "Black Pill" board
MCU: STM32F103RCT6
Toolchain: Keil MDK v5.31 + DAPLink debugger
Behavior:
Program flashes successfully via DAPLink.
Debug session starts but never enters main() – halts at address 0x200001E0 (check Disassembly/Register window).
All debug buttons (Step, Run) are grayed out except Reset/Stop.
Key Observations:
Same code runs correctly on another STM32F103 board.
Rebuild/Clean did not resolve the issue.

The "Option for target" as below.





