Solved
Get back SWD interface [resolved]
Hi,
I use SWD interface to configure my STM32 board.
It all worked out, but I changed #define and moved to a part of the program that disabled the sw interface.
Now my STLINK/V2 can not connect to the device.
Do you have an idea to erase the chip or restore the SWD interface?
#else /* DEBUG */
/* sw interface off*/
// GPIO_InitTypeDef GPIO_InitStructure ={0};
//
// GPIO_InitStructure.Mode = GPIO_MODE_ANALOG;
// GPIO_InitStructure.Pull = GPIO_NOPULL;
// GPIO_InitStructure.Pin = (GPIO_PIN_13 | GPIO_PIN_14);
// __GPIOA_CLK_ENABLE() ;
// HAL_GPIO_Init(GPIOA, &GPIO_InitStructure);
// __GPIOA_CLK_DISABLE() ;
//
// __HAL_RCC_DBGMCU_CLK_ENABLE( );
// HAL_DBGMCU_DisableDBGSleepMode( );
// HAL_DBGMCU_DisableDBGStopMode( );
// HAL_DBGMCU_DisableDBGStandbyMode( );
// __HAL_RCC_DBGMCU_CLK_DISABLE( );
#endif