cancel
Showing results for 
Search instead for 
Did you mean: 

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 ???

MMORA.3
Associate
3 REPLIES 3
MMORA.3
Associate

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

gbm
Lead III

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
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen