ID which of several targets in project is in debug mode

I am trying to troubleshoot a project containing 2 targets
which communicate over a CAN bus on Si Labs' C8051F04x CPUs
with Keil's uVision3 environment.

When running in edit mode, I can always see which target is
active by looking at the selection line in the Build
toolbar.  But when I switch to debug mode, the toolbar
disappears and I have found no way to tell which target is
active.  I have already loaded code into the wrong board
once, and worry how well I will be able to keep track of it
when I may have to switch among 5 targets.

Has anyone figured out a way to tell them apart (other than
switching to Edit mode & back again)?

Thanks.
============================================================
Gary Lynch            |     To send mail, change no$pam in
lynchg@no$pam.com     |     my domain name to stacoenergy

Parents
  • How about something like

    #if defined( DEBUG )
    char signature[]="DEBUG  ";
    #elif defined( RELEASE )
    char signature[]="RELEASE";
    #else
    #error "Must be Release or Debug!"
    #endif
    and keep a Watch set on the signature string? PS Why do you always put your whole post in "code" mode?

Reply
  • How about something like

    #if defined( DEBUG )
    char signature[]="DEBUG  ";
    #elif defined( RELEASE )
    char signature[]="RELEASE";
    #else
    #error "Must be Release or Debug!"
    #endif
    and keep a Watch set on the signature string? PS Why do you always put your whole post in "code" mode?

Children
More questions in this forum