Resolved! Incorrectly written AFIO_MAPR.SWJ_CFG bits in CubeF1/LL
In stm32f1xx_ll_gpio.h, LL_GPIO_AF_EnableRemap_SWJ(), LL_GPIO_AF_Remap_SWJ_NONJTRST, LL_GPIO_AF_Remap_SWJ_NOJTAG(), LL_GPIO_AF_DisableRemap_SWJ() all use SET_BIT(AFIO->MAPR, AFIO_MAPR_SWJ_CFG_xxxxx);which is incorrect, as SET_BIT is #define SET_BIT(R...