Question
Suppressing repurposed SWD pins for debug
In my project the debug pins are used for the release version but naturally I would like to debug the code. Right now I have a debug macro and using #ifndef in the middle of MX_GPIO_Init function to avoid initializing debug pins. These conditions are outside of the user defined code and will be overwritten when the code is regenerated. Is there any descent way around it other than just remembering to add them every time?
