Skip to content

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

Merged
devanlai merged 1 commit intodevanlai:masterfrom
twelho:fix-usbpullup
Jul 15, 2023
Merged

Disable SWD if PA13/PA14 are used for another purpose#52
devanlai merged 1 commit intodevanlai:masterfrom
twelho:fix-usbpullup

Conversation

@twelho
Copy link
Copy Markdown
Contributor

@twelho twelho commented Jul 8, 2023

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.

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
Copy link
Copy Markdown
Owner

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

@devanlai devanlai merged commit 44585f5 into devanlai:master Jul 15, 2023
@twelho twelho deleted the fix-usbpullup branch July 15, 2023 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants