Skip to main content
MMORA.3
Associate
November 7, 2022
Question

Hello. I am new to ST32F103C6T6 (and C8T6). I am using a Bluepill and STM32CUBEIDE to create my code. I'm having some problem to make PB3 to work as a GPIO correctly. I searched for a solution. Question: How to config SWJ_CFG using STM32CUBEIDE ???

  • November 7, 2022
  • 3 replies
  • 1139 views

..

This topic has been closed for replies.

3 replies

MMORA.3
MMORA.3Author
Associate
November 7, 2022

Additionally, I am using TIM2 to mark some intervals for my code.

gbm
Super User
November 7, 2022

Pinout & Configuration - Sys - Debug - Serial Wire.

The answer to the next question you will ask: ST-Link software refuses to Flash the Chinese STM32 clones, but you may still use the bootloader.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
ST Technical Moderator
November 25, 2022

Hello @MMORA.3​ ,

You can refer to the reference manual RM0008, in 'General-purpose and alternate-function I/Os (GPIOs and AFIOs)' and 'JTAG/SWD alternate function remapping' section.

PB3 is TDO/SWO, make sure to check how the JTAG-DP / SWD-DP mapping is set up on the STM32F1 parts, and check also DBGMCU_CR.

0693W00000WJW4pQAH.jpg 

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks