AN4989 Rev 3
93/118
AN4989
From debug to release
117
10
From debug to release
It is important to have in mind that most of technics presented in this AN and suitable for
debugging have to be properly cleaned to prevent problem while releasing the application.
The following action list can be used as a checklist helping to avoid the most common
problems:
•
Remove software BKPT instructions or take care to let them inside #ifdef DEBUG
statements.
•
Ensure
printf()
uses available data path on final product.
Semihosting and SWO cause hardfault otherwise.
•
Reestablish Code Optimization level.
•
Implement proper Fault Handlers.
•
Reset DBGMCU registers to default.