devanlai / dapboot

DFU Bootloader for STM32 chips
Other
339 stars 111 forks source link

Disable SWD if PA13/PA14 are used for another purpose #52

Closed twelho closed 1 year ago

twelho commented 1 year ago

For example, the BTTSKRMINIE3V2 pinout uses SWDIO (PA13) and SWDCLK (PA14) for the STATUS LED and USB pullup respectively. Addressing those pins as GPIO requires disabling SWD. See https://github.com/Klipper3d/klipper/blob/6d48adf9ef5d17632acf53a7e3a07964f6cfd642/src/stm32/stm32f1.c#L152 for a similar application-side implementation.

devanlai commented 1 year ago

This seems like a reasonable change to me and it shouldn't impact any of the other targets.