Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
software:keil:debugging [2016/02/19 12:51] – created feur | software:keil:debugging [2020/02/07 16:20] (current) – [4) Breakpoints] akdi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Compiling | + | ====== Compiling |
This page describes how you compile, link and debug a project in Keil [[uvision|uVision]]. \\ | This page describes how you compile, link and debug a project in Keil [[uvision|uVision]]. \\ | ||
- | ===== Compiling and Linking ===== | + | ===== 1) Compiling and Linking ===== |
+ | To compile and link a project use the build buttons as shown bellow. | ||
+ | |||
+ | \\ {{keil_menu_std.png}} \\ \\ | ||
+ | |||
+ | * {{keil_button_build.png}} **Build**, compiles and links the current source file. | ||
+ | * {{keil_button_buildall.png}} **Rebuild**, | ||
+ | \\ | ||
+ | |||
+ | ===== 2) Upload to target ===== | ||
+ | |||
+ | Turn on the target system and connect it with a USB cable to the host computer.\\ | ||
+ | Now click the “Download” button and after that, press the black reset button on the CT Board. The programm is now completly downloaded to the board.\\ \\ | ||
+ | Start the remote debugger with the “Debug” button. | ||
+ | |||
+ | \\ {{keil_menu_std_2.png}} \\ \\ | ||
+ | |||
+ | * {{keil_button_load.png}} **Download**, | ||
+ | * {{keil_button_debug.png}} **Debug**, downloads the compiled binary to the target and starts the debugger. | ||
+ | \\ | ||
+ | |||
+ | ===== 3) Run the Program in Single Steps ===== | ||
+ | |||
+ | With the following buttons you can step through the program. | ||
+ | |||
+ | \\ {{keil_menu_std_3.png}} \\ \\ | ||
+ | |||
+ | * {{keil_button_dstep.png}} **Single Step**, executes the program instruction after instruction. | ||
+ | * {{keil_button_dover.png}} **Step Over**, executes the code on the current row. | ||
+ | * {{keil_button_dout.png}} **Step Out**, executes the code until the current block ends. | ||
+ | * {{keil_button_dcursor.png}} **Step to Cursor Line**, runs the code until the cursor line. | ||
+ | * {{keil_button_dreset.png}} **Reset**, resets the cpu. | ||
+ | * {{keil_button_drun.png}} **Run**, runs the code until the next breakpoint. | ||
+ | * {{keil_button_dstop.png}} **Stop**, halts the running program. | ||
+ | \\ | ||
+ | |||
+ | ===== 4) Breakpoints ===== | ||
+ | |||
+ | To insert a breakpoint use the following buttons. | ||
+ | |||
+ | \\ {{keil_menu_std_4.png}} \\ \\ | ||
+ | |||
+ | * {{keil_button_bset.png}} **Insert/ | ||
+ | * {{keil_button_btoggle.png}} **Enable/ | ||
+ | * {{keil_button_bdisall.png}} **Disable All**, disables all breakpoints. | ||
+ | * {{keil_button_bdelete.png}} **Kill All**, deletes all breakpoints. | ||
+ | \\ \\ \\ \\ | ||
+ | //**Back to [[software: | ||