I want to set a breakpoint which will print a value, and then resume execution. The documentation for the 'Command' box in the 'Breakpoints' debugger dialogue says, "When you specify a Command for a breakpoint, uVision2 executes the command and resumes executing your target program." Therefore I have used a printf in the 'Command' box, on the assumption that it will print the required value and then continue execution. However, when the Break occurs, I get,
"*** error 121: AGDI: cannot access target while executing"
FUNC void fred( void ) { unsigned char crock; crock = 'p->status; printf( "%02x\n", crock ); }