2023-07-27 04:02 PM
i am working with black pill board that uses stm32f401cc
and i have a debugger that was attached to neucleo board stm32f401re and i broke it from the board , the black bill debug pins only have the ground and the 3.3 and the swsck and the swdio ,i connected the debggeer of the neculo and it is working fine with it but i want to enable the swo pin to be able to use printf , should i connect the swo of the debugger to the pin pb3 of the black bill board direclty after enableing the trace async sw from the cube mx and it will work? or should i add some resistor for protection between the two pins ,and does adding a 1k between the two pins resistor for exmaple will affect anything ?
2023-07-27 04:13 PM - edited 2023-07-27 04:14 PM
There is a sequence of videos that addresses this debug issue, see if you can solve your problem:
https://www.google.com/search?q=stm32+youtube+advanced+debug
2023-07-27 04:42 PM
> should i connect the swo of the debugger to the pin pb3 of the black bill board direclty after enableing the trace async sw from the cube mx and it will work?
Yes, provided nothing else is connected to that pin.
> or should i add some resistor for protection between the two pins ,and does adding a 1k between the two pins resistor for exmaple will affect anything ?
You can add an inline 1K if you want, it won't affect functionality, just avoid adding capacitance to either side.