This is an old revision of the document!


Compiling and Debugging

This page describes how you compile, link and debug a project in Keil uVision.

To compile and link a project use the build buttons as shown bellow.




  • Build, compiles and links the current source file.
  • Build All, compiles and links all source files.


Turn on the target system and connect it with a USB cable to the host computer.
Start the remote debugger with the debug button.




  • Upload, uploads the comiled binary to the target.
  • Debug, uploads the compiled binary to the target and starts the debugger.


With the following buttons you can step through the program.




  • Single Step, executes the program instruction after instruction.
  • Step Over, executes the code on the current row.
  • Step Out, executes the code until the current block ends.
  • Step to Cursor Line, runs the code until the cursor line.
  • Reset, resets the cpu.
  • Run, runs the code until the next breakpoint.
  • Stop, halts the running program.


To insert a breakpoint use the following buttons.




  • Insert/Remove, inserts or removes a breakpoint on current row.
  • Enable/Disable, enables or disables breakpoint on current row.
  • Disable All, disables all breakpoints.
  • Kill All, deletes all breakpoints.
  • software/keil/debugging.1473077515.txt.gz
  • Last modified: 2016/09/05 12:11
  • by ruan