AnsweredAssumed Answered

Using Command Window to Debug

Question asked by sebasira on Jun 22, 2009
Latest reply on Jul 9, 2009 by CrasyCat

Hello everybody!

 

I was wondering if there's any way to display debug information in the command window. I mean, to help debugging, I want to print a string in the command window when a specific action has been done, for example, when a button is pressed I want the command window to show "BUTTON PRESSED".

I'm programming in C, using Codewarrior for the mc9s12a128 y mc9s12a256.

 

The code will look something like this:

 

if (button_port == 1) {

 /* ACTIONS WHEN BUTTON PRESSED */

 

 write_in_cmd_window("BUTTON PRESSED")    <--- This will be the command or instruction I'm looking for in order to "comunicate" with the command window, if possible.

}

 

 

Thanks in advance, I hope this can be done!

 

SebaS

Outcomes