Locale Icon
English
  • Forums

    Popular Forums

    • LTspice
    • Video
    • Power Management
    • RF & Microwave
    • Precision ADCs
    • FPGA Reference Designs

    Product Forums

    • Amplifiers
    • Clocks & Timers
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors & DSP
    • Processors & Microcontrollers
    • Switches & Multiplexers
    • Sensors
    • Voltage References
    View All

    Application Forums

    • A2B Audio Bus
    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • LiDAR Solutions
    • Motor Control Hardware Platforms
    • Speech Processing Solutions
    • Video

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools & Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Precision Studio
    • Power Studio Designer
    • Power Studio Planner
    • Reference Designs
    • Robot Operating System (ROS) SDK
    • Signal Chain Designer
    • Software Interface Tools
  • Learn

    Highlighted Webinar

    COTS SoMs & Phased Array Solutions for Rapid RF Subsystem Integration

    Accelerate RF Subsystem Integration with COTS SoMs and Phased Array Solutions. As building a subsystem from early prototype to full deployment is never...

    Places

    • ADI Academy
    • ADI Webinars
    • EZ Blogs
    • Video Annex
    • Virtual Classroom

    Libraries

    • 3D ToF Depth Sensing Library
    • Continuous-Wave CMOS Time of Flight (TOF) Library
    • Embedded Vision Sensing Library
    • Gigabit Multimedia Serial Link (GMSL) Library
    • Optical Sensing Library
    • Other Products Library
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library

    Upcoming Learning & Events

    • Humanoid Robotics: Deterministic Motion Control & Edge AI Systems
    • Power Integrity for High Performance Measurement Systems
    • Open RAN 5G Radio Design: SDR SoCs for Energy-Efficient, Secure Deployments
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes AQQ301 - Counting Bicycles and Tricycles

      1. Quote of the month: " People who didn't need people needed people around to know that they were the kind of people who didn't need people" - Terry Pratchett...

    View All

    What's Brewing

      Read a Blog, Take this Quiz for Another Chance to Win a Gift Card!

      Important: Read the blog first . The quiz questions are all based on the content of the blog: Taming the AI Power Storm: Part 2 of 3 Test your...

    View All

    Places

    • Community Help
    • Analog Dialogue Quiz
    • Logic Lounge
    • Super User Program

    Resources

    • EZ Code of Conduct
    • EZ How To Help Articles
    • Getting Started Guide
    • ADI: Words Matter
    • Community Help Videos
    View All
  • ContentZone

    Visit ContentZone

    Search content by industry or technology.
    • Blogs
    • Technical Articles
    • Tutorials
    • Videos
    • Webinars
    Your ADI content all in one place.
    View ContentZone

    The Latest Read

    JESD204 Bring-Up: From Link-Up to Data Integrity

    This blog presents a structured bring-up methodology for the ZCU102 + ADRV9009 platform, stepping through each initialization phase in sequence and identifying...

    New Release

    Signal Chain Designer: DC Error Simulation
    Signal Chain Designer: DC Error Simulation

    This video covers the DC error calculation capabilities of Signal Chain Designer. DC error is unique in that often requires calibration and has so many...

    Recent Technical Insights

    Latest Technical Article from Analog.com
    Phase Sync in Digital Phased Arrays Through Direct RF SamplingPart 2: Achieving Phase Repeatability

    This article discusses a methodology to synchronize multiple modular circuit boards, equipped with high speed data converters, to build a concept of a...

EngineerZone
EngineerZone
SigmaStudio for SHARC
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
SigmaStudio for SHARC
  • Processors & DSP
  • Software & Development Tools
  • SigmaStudio for SHARC
  • Cancel
SigmaStudio for SHARC
Documents ADSP-215xx/ADSP-SC5xx SigmaStudio For SHARC schematic custom plug-in debugging technique
  • Q&A
  • Documents
  • Members
  • Tags
  • Cancel
  • +How the SigmaStudio schematic source files generated for DemoUc example application in SigmaStudio for SHARC 4.x.x version?
  • -SigmaStudio for SHARC: FAQ
    • ADSP-2156x Lib Integration Example as DemouC Application
    • ADSP-215xx/ADSP-SC5xx SigmaStudio For SHARC schematic custom plug-in debugging technique
    • Can I evaluate SigmaStudio for SHARC?
    • Can I rebuild Software Module Plug-In Loader files, originally built using SigmaStudio for SHARC 2.0.0, using SigmaStudio for SHARC 2.1.0?
    • Can I rebuild Software Module Plug-In Loader files, originally built using SigmaStudio for SHARC 2.0.0, using SigmaStudio for SHARC 2.2.0?
    • Can I use SigmaStudio for SHARC without a valid CrossCore Embedded Studio license?
    • Can I write my own custom modules for SigmaStudio?
    • Do you offer SigmaStudio for SHARC compatible Software Modules?
    • Does SigmaStudio for SHARC have any facility for working with multi-processor designs?
    • Does SigmaStudio for SHARC only work with the EZKits? Can I use it directly with my own product board?
    • How can I communicate with my SHARC evaluation or custom board using SigmaStudio for SHARC?
    • Integrating Additional Input/Output SPORT Interfaces in the ADSP-2156x Library Example
    • Is it possible to generate an application LDR with schematic code and parameter embedded in it?
    • SigmaStudio is free of charge. Is the same true for SigmaStudio for SHARC?
    • SigmaStudio™︎ for SHARC®︎ 2.2.0 – Getting Started
    • What algorithms are available for SigmaStudio for SHARC?
    • What is the difference between the USBI2EZB and the ADUSB2EBZ?
    • Which operating systems is SigmaStudio for SHARC supported on?
    • Why does SigmaStudio throw this message when a Schematic containing Plug-In modules is compiled?
    • Why does the Plug-In function as Production version even after uninstalling the Production version of the module installer?
    • Why is the macro NUM_SAMPLES missing in the Application?
    • Why is the SigmaStudio for SHARC installation failing?
    • Why there is no Audio output after my Schematic is downloaded?

ADSP-215xx/ADSP-SC5xx SigmaStudio For SHARC schematic custom plug-in debugging technique

There are 2 ways to debug the SigmaStudio For SHARC schematic custom plug-in.

Reference document: AE_42_SS4G_AlgorithmDesignerGuide.pdf and AE_42_SS4G_QuickStartGuide.pdf documents available in SigmaStudio For SHARC installation folder.

The easy way is to use function pointer method, example code taken based on Scaler example provided in the AE_42_SS4G_AlgorithmDesignerGuide.pdf.

  •  Include the algorithm source file into the SHARC core project of target application, the function name should be other than actual BPROCESS_xxxx and INIT_xxxx function of algorithm. For example,

#pragma section("seg_swco")
void BPROCESS_Scaler_Debug(SSBlockAlgo* pBlkAlgoInfo)
{
        int index, sample, gain, blockSize, repCount;
        float *pInput, *pOutput;
        repCount = pBlkAlgoInfo->nGrowth;

       for(index = 0; index < repCount; index++)
      {
           blockSize = pBlkAlgoInfo->pInputs[index].pBlockProperties->nBlockSize;
           gain = ((float *)pBlkAlgoInfo->pParam)[index];
           pInput = pBlkAlgoInfo->pInputs[index].pSamples;
           pOutput = pBlkAlgoInfo->pOutputs[index].pSamples;

           for(sample = 0; sample < blockSize; sample++)
          {
                pOutput[sample] = pInput[sample] * gain;
           }
       }
}

#pragma section("seg_swco")
void INIT_Scaler_Debug (SSBlockAlgo* pBlkAlgoInfo)
{
       int index, repCount;
       repCount = pBlkAlgoInfo->nGrowth;

       for(index = 0; index < repCount; index++)
      {
             ((float *)pBlkAlgoInfo->pParam)[index]=0.0f;
       }

}

  •  Compile the target application in Debug build by enabling the "Generate symbol map" file option.

  • The algorithm function symbol should be available in generated map file, sometimes due to linker elimination option the algorithm functions might be removed. So please use "KEEP" command inside SHARC ldf file to retain the algorithm function and symbols. Please refer the below image,
  • Compile the target application and note the pointer of both function where it mapped. 
  • Refer the plug-in generation procedure in "AE_42_SS4G_AlgorithmDesignerGuide.pdf" document section "SigmaStudio Plug-In Generation".
  • Add source of actual BPROCESS_xxxx and INIT_xxxx algorithm function or add a .dlb with calling of algorithm function pointer which is added in target application. Please refer below code,

    #include <string.h>
    #include "adi_ss_extmod.h"

    typedef void (*pfProcessFunction)(SSBlockAlgo* pBlockAlgo);
    typedef void (*pfInitFunction)(SSBlockAlgo* pBlockAlgo);

    void BPROCESS_Scaler(SSBlockAlgo* pBlockAlgoInfo)
    {

             pfProcessFunction ProcessFunction=(pfProcessFunction)0x1c0db9; // Assign the function pointer of the Algorithm process function included in target application
             ProcessFunction(pBlockAlgoInfo);
    }

    void INIT_Scaler(SSBlockAlgo* pBlockAlgoInfo)
    {

            pfInitFunction InitFunction=(pfInitFunction)0x1c0d8c; // Assign the function pointer of the Algorithm process function included in target application
            InitFunction(pBlockAlgoInfo);
    }

  • Using the above source code method create SigmaStudio for SHARC plugin.
  • Add the plugin to SigmaStudio using "Tools -- Add-Ins Browser..." option.
  • Create SigmaStudio schematic with the generated plug-in algorithm block.
  • Run target application with setting up break point in "INIT_Scaler_Debug" and "BPROCESS_Scaler_Debug" function. "Link compile download" the schematic into the target platform by connecting USBi.
  • Now the break point shall hit at the target application algorithm functions.
  • Instead of function pointer we can even use extern function call as below which is the easier way, by keeping the symbols in target application using "KEEP" command as explained in above steps.

Note: If any modifications to target application, the algorithm plug-in should be regenerated with modified function pointers. Also, the ldf "RESOLVE" command can be used to fix the address of the algorithm function which is running on target application.
  

The 2nd debugging method is little tedious one and sometime break points won't hit properly. The workspace needs to be cleaned up and setup the debug session again to solve the break point issue.
 The debugging method is already explained in section " Debugging Schematics using CCES" under "AE_42_SS4G_QuickStartGuide.pdf" document available in SigmaStudio For SHARC installation 
folder.

  • Share
  • History
  • More
  • Cancel
analog-devices logo

About Analog Devices

  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
  • Instagram page
  • Twitter page
  • Linkedin page
  • Youtube page
  • Facebook
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved

analog-devices

About Analog Devices

Down Up
  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

Down Up
  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
Instagram page Facebook Twitter page Linkedin page Youtube page
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved