Let's build our own On Chip Debugger application - STEP 3

Is now time to give to our tool a new name: 'AurixDebugger'. The reason is that from now on, I will try to give it the same User Interactive Interface as the Microsoft did for the DOS debug application long time ago.

In the specific, I like to add the following CLI:
###############################################################################
AurixDebugger Help - Command Line Interface:

    -help:      print this help.
    -about:     gives the GitHub location where to find the latest version.
    -mcdapilib: permit to set the DAS API Library name (e.g.mcdxdas.dll).
    -serverIP:  permit to set the DAS server address for remote connection to
                target (e.g. localhost).
    -key:       permit to set the device key in case it requeres one to permit the
                debug access.

###############################################################################

The above can be achieved by adding some line of codes to manage 'argv' / 'argc' from the DOS interface to the main function. Nothing complex. For the related code, just have a look at the GitHub sources.

Therefore, by invoking 'AurixDebugger.exe -help' we will get:



While with 'AurixDebugger.exe -about' :



The rest is self-explainable...



Commenti