Operations in Keil C Debugging State

Operations in Keil C Debugging State

In the debugging state of Keil C, how can we observe the operating status of various internal and external peripherals? How can we modify their settings? Answer: In debugging state, click on different peripheral options under the Peripherals menu to display or hide the corresponding observation windows. For example, to display the Timer 0 window, … Read more

Advanced Usage of Breakpoints in Keil Debugging

Advanced Usage of Breakpoints in Keil Debugging

Setting breakpoints is a very effective way to debug programs online. Combined with step-by-step debugging, it can quickly locate problems. However, sometimes manually setting breakpoints is not very convenient. For example, if you want to stop at the Nth iteration of a loop, you would have to keep clicking step run until the loop reaches … Read more

GDB Command Summary

GDB Command Summary

1. Start gdb -q: Suppress unnecessary output. file a.out: Specify the debug file. gdb –args a.out a.txt: Specify arguments. set args a.txt: Specify arguments after starting gdb. run a.txt: Run with specified arguments. start a.txt: Start with specified arguments (break at main). cd $dir; path $dir: Specify environment variables. run > a.txt: Redirect output to … Read more