Skip to main content
Explorer II
July 27, 2023
Question

black bill stm32f401cc swo feature enable .

  • July 27, 2023
  • 2 replies
  • 1477 views

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 ?

    This topic has been closed for replies.

    2 replies

    Graduate II
    July 27, 2023

    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

    Super User
    July 27, 2023

    > 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.