µVision User's Guide

legacy

Debug Functions

This chapter discusses a powerful aspect of µVision3: Debug Functions. You may use Debug Functions to:

  • Extend the capabilities of the µVision3 Debugger.
  • Generate external interrupts,
  • Log memory contents to a file,
  • Update analog input values periodically,
  • Input serial data to an on-chip serial port,
  • and much more.

Note

  • Do note confuse µVision3 Debug Functions with functions of your target program. µVision3 Debug Functions aids you in debugging of your application and are entered or with the Function Editor or on µVision3 command level.

µVision3 Debug Functions utilize a subset of the C programming language. The basic capabilities and restrictions are as follows:

  • Flow control statements if, else, while, do, switch, case, break, continue, and goto may be used in debug functions. All of these statements operate in µVision3 Debug Functions as they do in ANSI C.
  • Local scalar variables are declared in debug functions in the same way they are declared in ANSI C. Arrays are not allowed in debug functions.

For a complete description refer to Differences Between Debug Functions and C.

Related Knowledgebase Articles