User Tools

Site Tools


using_debug_mode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
using_debug_mode [2016/04/30 00:42]
silverxxx
using_debug_mode [2016/04/30 00:43] (current)
silverxxx
Line 10: Line 10:
 **a.** Start debug mode by clicking the hourglass + red "D" toolbar button in uVision ( the quad should be connected via programming cable and powered) This will upload the last compiled firmware, and start debug mode. **a.** Start debug mode by clicking the hourglass + red "D" toolbar button in uVision ( the quad should be connected via programming cable and powered) This will upload the last compiled firmware, and start debug mode.
  
-b. When the mode starts ( after clicking the popup and a few seconds more)+**b.** When the mode starts ( after clicking the popup and a few seconds more)
 press f5. The quad should start working now. This is the same as menu "Debug/run" press f5. The quad should start working now. This is the same as menu "Debug/run"
  
Line 21: Line 21:
  
 **e.** Add more variables if needed: **e.** Add more variables if needed:
-accel (raw), gyro (rad/sec) , accelcal ( loaded from flash unless calibration is performed), gyrocal ( calibration at startup in gyro raw units ) , attitude ( in degrees , only first 2), vbattfilt ( current battery) , looptime ( should be near 0.001 in seconds), rx ( incomming data from tx , roll, pitch yaw, throttle) , aux ( auxilliary buttons/switches from tx), and more. Only global and static variables can be seen, but some may require a breakpoint at least once before they show. Some variables are already added from when I used them.+//accel// (raw), //gyro// (rad/sec) , //accelcal// ( loaded from flash unless calibration is performed), //gyrocal// ( calibration at startup in gyro raw units ) , //attitude// ( in degrees , only first 2), //vbattfilt// ( current battery) , //looptime// ( should be near 0.001 in seconds), //rx// ( incomming data from tx , roll, pitch yaw, throttle) , //aux// ( auxilliary buttons/switches from tx), and more. Only global and static variables can be seen, but some may require a breakpoint at least once before they show. Some variables are already added from when I used them.
  
 The variables can be added by doubleclicking on <enter expression> in the watch window. They can also be added by right clicking the variable name in the code, while in debug mode ( select add to). Only persistent vars show, not those define within functions. The variables can be added by doubleclicking on <enter expression> in the watch window. They can also be added by right clicking the variable name in the code, while in debug mode ( select add to). Only persistent vars show, not those define within functions.
using_debug_mode.1461969728.txt.gz ยท Last modified: 2016/04/30 00:42 by silverxxx