cancel
Showing results for 
Search instead for 
Did you mean: 

Clear Pinouts Function in STM32CubeID

Jgarc.11
Associate II

Hello, I am new and I am starting to program the STM32 with the help of the Nucleo 144 board and STM32CubeID.

If I do a Clear Pinouts from the IDE, all the micro pins turn gray. I understand that they lose their configuration, including the TCK and TMS pins that are connected to the ST_LINK_V2 programmer/debugger. However, I can program the micro anyway... as it is possible? What does Clear Pinouts really do?

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions

Other than e.g. NRST (even this is not true at STM32G0) the debug pins can also be used as GPIOs, but you should take into account the restrictions (see respective reference manual):

  • internally, there are pull resistors
  • the debug pins cannot be used as GPIOs during debugging and, conversely, can only be converted back to debug pins during operation by resetting the STM32

I'd rather recommend using the debug pins as GPIO only if you know exactly what you are doing.

If the problem is solved, please mark this thread as answered by selecting Select as best, as also explained here. This will help other users find that answer faster.

Good luck!

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

4 REPLIES 4
Peter BENSCH
ST Employee

Welcome, @Jgarc.1​, to the community!

Clear Pinouts only deletes all pin definitions so that you can set everything up again, so to speak.

Regarding the function of the debug pins, it is explained in the respective reference manual that access to them is typically possible immediately after a reset, even if they have not been explicitly declared as debug pins.

Does it answer your question?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Jgarc.11
Associate II

Thank you very much for your quick response. One more question if you don't mind, and if I try to program those pins in the IDE as digital outputs for example. Would it give an error? Or would it prevent me from programming the board again? What surprises me is that from the IDE they can be defined with another function other than debug/programming. I thought that they would have to be "non-configurable" like the power supply or NRST.

Regards

José

Other than e.g. NRST (even this is not true at STM32G0) the debug pins can also be used as GPIOs, but you should take into account the restrictions (see respective reference manual):

  • internally, there are pull resistors
  • the debug pins cannot be used as GPIOs during debugging and, conversely, can only be converted back to debug pins during operation by resetting the STM32

I'd rather recommend using the debug pins as GPIO only if you know exactly what you are doing.

If the problem is solved, please mark this thread as answered by selecting Select as best, as also explained here. This will help other users find that answer faster.

Good luck!

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Jgarc.11
Associate II

Ok.Thank you