SAfeload command with ADSP-2156x

Hi all,

We are facing an issue to control the DSP from a microcontroller (STM32L4 ).

After creating our loader file (*.ldr) based on Sigma Studio schematic example and flashed on ADZS-21569-EZKIT, we reboot the board and the sound output is available.

After this successful step, we would like to MUTE the sound by sending the "safeload parameter" from our microcontroller by using SPI communication.

This works fine if we use SigmaStudio and USBi connector, we successfully connected to target and mute/unmute the sound.

Unfortunately, when we use our microcontroller and SPI connexion to send the same safeload command, we are not able to mute the sound!

SigmaStudio frames sent have been checked with our frames and we have the same ...

Below the frame sent Thought SPI:

0x00 0x00 0x00 0x00 //START DATA
0xF4 0x19 0x4B 0xE6 //SS_CMD_BEGIN
0xA5 0x01 0x5A 0xFE //CMD
0x00 0x00 0x00 0x05 //PAYLOAD PL_LEN
0x3A 0x80 0x00 0x00 //MOD_SHARC_CORE1_MUTE2_ALG0_STEP_VALUE -> SIGMASTUDIOTYPE_FLOAT_CONVERT(0.0009765625)
0x00 0x00 0x00 0x01 //MOD_SHARC_CORE1_MUTE2_ALG0_STEP_ADDR
0x00 0x00 0x00 0x00 //MOD_SHARC_CORE1_MUTE2_ALG0_MUTE_VALUE -> SIGMASTUDIOTYPE_FLOAT_CONVERT(X)  
0x00 0x00 0x00 0x02 //MOD_SHARC_CORE1_MUTE2_ALG0_MUTE_ADDR
0x3A 0x93 0x4A 0xE7 //CRC
0x00 0x00 0x00 0x00 //MEM_ADDR
0xF1 0xD2 0x0E 0x2D //SS_CMD_END


Below our SS_TEST_SCHEMATIC_2156x_IC_1_PARAM.h parameter :

/* Module Mute2 - Mute*/
#define MOD_SHARC_CORE1_MUTE2_COUNT                    2
#define MOD_SHARC_CORE1_MUTE2_DEVICE                   "IC1"
#define MOD_SHARC_CORE1_MUTE2_ALG0_STEP_ADDR           12
#define MOD_SHARC_CORE1_MUTE2_ALG0_STEP_VALUE          SIGMASTUDIOTYPE_FLOAT_CONVERT(0.0009765625)
#define MOD_SHARC_CORE1_MUTE2_ALG0_STEP_TYPE           SIGMASTUDIOTYPE_FLOAT
#define MOD_SHARC_CORE1_MUTE2_ALG0_MUTE_ADDR           13
#define MOD_SHARC_CORE1_MUTE2_ALG0_MUTE_VALUE          SIGMASTUDIOTYPE_FLOAT_CONVERT(1)
#define MOD_SHARC_CORE1_MUTE2_ALG0_MUTE_TYPE           SIGMASTUDIOTYPE_FLOAT


1 - We would like to understand if we missed something to be able to control the DSP from our Microcontroller?
2 - Is it the right way to control the DSP from the microcontroller (LDR file flashed and send the commands from a microcontroller using SPI bus)?
Please could you help to step forward,

Thanks in advance,

Regards