Keil Logo

execf (Cortex-M)

void  execf ("fmt_string", ...) /* Execute Debug Command */

The execf function allows to define execution of debugger commands from INI-scripts with a variable component (for Cortex-M only). The first argument is a format string and is structured like for the printf() command. Following arguments can be expressions.

Return Value



The command defines a breakpoint in the file Demo.c on line line.

execf ("BS \\\\Demo\\Demo.c\\%d", line);

The command defines a read access breakpoint for address addr.

execf ("BA READ 0x%08X", addr);
  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.