Posted on November 22, 2017 at 20:27At least on the SMT32F103x parts, the SWJ_CFG bits in the AFIO_MAPR register are write only. Reading these bits is undefined. All of the __HAL_AFIO_REMAP macros in stm32f1xx_hal_GPIO_ex.h do read/modify/write op...