Changes between Version 1 and Version 2 of howto/SDK_debugger


Ignore:
Timestamp:
Oct 19, 2015, 5:17:23 PM (9 years ago)
Author:
welsh
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/SDK_debugger

    v1 v2  
    11= Using the Xilinx SDK debugger =
    22
    3 Sometimes it is necessary to use the debugger within the Xilinx SDK to help debug problems within the code running on a Microblaze processor in an WARP reference design.  The debugger can set break points and step through code line-by-line.  However, the mapping of C code to machine instructions may not be one-to-one due to some of the compiler optimizations that the reference designs were forced to turn on to save on code space.
     3Sometimes it is necessary to use the debugger within the Xilinx SDK to help debug problems within the code running on a Microblaze processor in an WARP reference design.  The debugger can set break points and step through code line-by-line.  However, the mapping of C code to machine instructions may not be one-to-one due to some of the compiler optimizations that the reference designs were forced to turn on to save code space.
    44
    55This tutorial goes through the process of setting up the debugger; starting the debugger and running code with the debugger.  You can find additional information on the Xilinx SDK debugger on the Xilinx website.
     
    14141. Click and highlight the project in the "Project Explorer" window to debug. For example, in the 802.11 Reference design, lets debug the "AP" code in CPU_HIGH. For this, click and highlight the {{{wlan_mac_high_ap}}} project.
    1515
    16 2. Set up the "Debug Configurations".  To do this either, 1) At the top of the screen in the main tool bar, click the small arrow next to little bug icon (if you mouse over this icon it will say "Debug As...") and select "Debug Configurations..."; or 2) From the menus, select "Run" --> "Debug Configurations..."
     162. Set up the "Debug Configurations".  To do this either:
     17  a. At the top of the screen in the main tool bar, click the small arrow next to little bug icon (if you mouse over this icon it will say "Debug As...") and select "Debug Configurations..."; or
     18  b. From the menus, select "Run" --> "Debug Configurations..."
    1719
    1820[[Image(init_debug_configurations.png, 600px)]]
     
    5557[[Image(debug_view.png, 600px)]]
    5658
    57 2. Depending on your debug configuration options, the code will automatically begin to run or the code will be stopped at the beginning of main() and the "Play" arrow at the top of the screen will start the execution of the code.  The code execution will automatically pause if it runs into a breakpoint or you can manually press the "Pause" button to see where the state of the code and any variables.
     592. Depending on your debug configuration options, the code will automatically begin to run or the code will be stopped at the beginning of main() and the "Play" button at the top of the screen will start the execution of the code.  The code execution will automatically pause if it runs into a breakpoint or you can manually press the "Pause" button to see where the state of the code and any variables.
    5860
    5961[[Image(debug_pause.png, 600px)]]