Debugging DSP side using DSPLink NOTIFY module

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

Contents

Overview

Several times, it is difficult to debug the DSP-side in GPP-DSP applications using DSP/BIOS Link. For example:

  1. JTAG/CCS is not available
  2. Failure is seen only in very specific condition, such as:
    1. Release build, where source-level debugging is not possible
    2. Race conditions which are not duplicated if emulator is connected
    3. Before execution reaches a place where the emulator can be connected/DSP execution can be stopped.

In such cases, it is very simple to use NOTIFY module as follows. Note that NOTIFY has no dependency on POOL or any other modules within DSPLink, and hence is the simplest to use of all the modules.

Method

The method to use NOTIFY for DSP-side debugging is:

#if defined (DEBUG_APPLICATION)
NOTIFY_register (ID_PROCESSOR, /* Processor ID to talk with. */
                 0,            /* IPS ID to be used */
                 5,            /* IPS event number. Choose any unused number */
                 myFxnDebug,   /* Callback function for debugging */
                 NULL          /* Parameter (if any) for callback function */) ;
#endif /* if defined (DEBUG_APPLICATION) */
#if defined (DEBUG_APPLICATION)
   Void myFxnDebug (Uint32 eventNo, Pvoid arg, Pvoid info)
   {
       printf ("In notify callback info %d\n", info) ;
   }
#endif /* if defined (DEBUG_APPLICATION) */
NOTIFY_notify (ID_GPP, /* Processor ID to send notification to. */
               0,      /* IPS ID to be used */
               5,      /* IPS event number. Choose any unused number. */
               info    /* 32-bit information to be sent across */) ;

Usage

The notifications sent from DSP-side will be received as callbacks, and the print will be seen. This mechanism can be used for:

Other information

E2e.jpg For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Debugging DSP side using DSPLink NOTIFY module here.
Hyperlink blue.png Links
ARM Microcontroller MCU ARM Processor Digital Media Processor Digital Signal Processing Microcontroller MCU Multi Core Processor
Ultra Low Power DSP 8 bit Microcontroller MCU 16 bit Microcontroller MCU 32 bit Microcontroller MCU

Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox