Closed leecyrille closed 1 month ago
The solution is simpler In order to use JTAG pins (PB3, PB4, PA15), you just need to add a command to the setup:
enableDebugPorts();
Please note that this is only necessary when using st-link for upload; when using the Serial, pins are enabled by default
The solution is simpler In order to use JTAG pins (PB3, PB4, PA15), you just need to add a command to the setup:
enableDebugPorts();
Please note that this is only necessary when using st-link for upload; when using the Serial, pins are enabled by default
This makes more sense, thank you!
I found I could not use the PB3 pin for INPUT_PULLUP mode with an STM32F103C or STM32F103V, until I disabled JTAG functionality. If anyone wants to use PB3 for other functions, I has success by adding these lines to my setup first:
Maybe this is something to add in documentation for people to search later? I assume changing the default behavior would break JTAG for other people?