You’ll get a popup where you can specify the output on the console (and a few other options): ![]() You can add a dynamic printf in or out of Debug mode. While the code is running in Debug mode, we can right click the left side of a line just like we would when adding a breakpoint and select “Add Dynamic Printf.” Let’s see an example on a STM32 NUCLEO board using a simple blinky LED project where we want an LED to blink every second: Then when testing is good and finished, the programmer hopefully remembers to delete the printf() line later. Normally when debugging with printf(), the programmer has to insert a printf() line into the source code, recompile, run it, and wait for the program to hit the line (or to skip over it in some cases). Essentially, it’s a printf() that you can insert into the code like a breakpoint, even during runtime. The update comes with new features such as support for CMSIS-pack, updates to the build analyzer, and an interesting debugging tool that Atollic calls “dynamic printf” which we’ll look at today.Ī dynamic printf is a hybrid between a traditional breakpoint and a printf() function. ![]() Atollic has recently released TrueStudio v6.0.0, their most recent major update to the TrueSTUDIO IDE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |