Post Go back to editing

SigmaStudioPlus crashed when receiving SPI tuning command before A2B initialization completed

Thread Summary

The user encountered a crash in SigmaStudioPlus when sending SPI audio control commands (e.g., mute/unmute) from an MCU to the ADSP21561 before the A2B bus initialization was complete. The solution involves ensuring the A2B clock is stable and the DSP framework is fully initialized, which can be confirmed by reading a non-zero MIPS status or using a GPIO signal to notify the MCU.
AI Generated Content
Category: Software
Product Number: ADSP-21565
Software Version: CCES 3.0.2 & SigmaStudio+ 2.3.0

We are using ADSP21561 to do development of AMP products. Recently we found that SigmaStudioPlus will crash if we sent SPI audio control commands (such as mute/unmute) from MCU to DSP while the A2B bus did not complete its initialization(Which means that the audio clock driven by A2B may not be in steady state). Such a error will cause an error reported in CCES demo project as below:

Thread Notes

  • Hi,

    Can you please provide more details about the hardware setup and the connections used?
    Are you using SPI or I2C for the A2B bus discovery and initialization?

  • Thanks for your answer! The system block diagram is as below:

    As you see in diagram above, we use MCU to load the ldr and SMAP and SS layout into ADSP21561 via SPI slave mode. The tuning commands are also loaded from MCU to ADSP21561 via SPI.

  • Please correct us if we are mistaken, but based on the diagram, it appears that the ADSP21561 is receiving the clock from an external source (from the A2B main node), and that this clock is being used to synchronize peripherals such as SPORT within the DSP?

    Additionally, from the diagram, it appears that TDM16 is expected to be transmitted to and received from the ADSP21561 board running the Demo application. Please note that the default Demo application is configured for TDM8, so we hope that the necessary changes related to TDM16 have been made to the application.

    Also, if there are this many custom requirements, we suggest referring to the ADSP-21569 LibIntegration example instead of the Demo application. LibIntegration contains minimal code and configuration and also supports SigmaStudio+ schematic processing, just like the Demo application. The configuration is easily modifiable by end users according to their requirements.

  • Additionally,

    You could consider using a GPIO signal to notify the MCU that the SigmaStudio+ target application has completed initialization. This ensures that the MCU sends tuning commands only after the DSP framework is fully ready.

    If tuning commands are sent before initialization is complete, the required memory buffers and framework structures may not yet be initialized, which can lead to errors when handling those commands.

    Alternatively, the MCU can first read the MIPS status from the target and confirm that it is non-zero, which indicates that the SigmaStudio+ framework is running. Once this status is verified, the MCU can safely begin sending tuning commands.

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.