Keil Logo

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.


  • 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

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.