2025-09-09 4:54 AM
Hello,
i am working with the STM32F401RE board along with the IHM02A1 expansion board. I am using the X-CUBE-SPN2 package.
I am working with a predefined project from X-CUBE-SPN2 and modifying it according to my requirements. I am defining all the GPIO pins, using some as input and some as output.
However, I am facing a problem with GPIO pins PA13 and PA14. These pins are used for the debugger by default. I do not want to use the debugger and instead want to use these pins as input/output.
I want to know how to disable the debug function for these pins and directly flash the program to the board. I have also tried using the “green icon” menu to flash, but it is not working.
This is quite urgent. I would really appreciate your guidance on how to resolve this issue.
Thank you so much in advance.
2025-09-09 6:16 AM
In your program, configure PA13 and PA14 how you want. They will lose debug functionality and this will make it more difficult to flash your program. CubeMX can do this for you if you choose the function you want for these pins.