2023-01-10 11:57 PM
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
Solved! Go to Solution.
2023-01-11 05:36 AM
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):
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
2023-01-11 02:03 AM
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
2023-01-11 04:40 AM
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é
2023-01-11 05:36 AM
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):
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
2023-01-11 06:50 AM
Ok.Thank you