STM32F103 Debug Error - Cannot Access Target
Well i though this problem was kinda weird but when i found out cubemx generated this code
&quot;__HAL_AFIO_REMAP_SWJ_DISABLE();&quot;  in &quot;void HAL_MspInit(void)&quot; function. I kinda laughed ^^ and delete it. People who have a similar problem hope will see this answer before spending much time...