Post Go back to editing

A2B interface, slave

Category: Software
Software Version: crosscore version 2.9

We are trying to connect two Shark modules, but the slave isn't working (the problem starts when we change the value TRUE which makes that the program works as a MASTER for a FALSE value). The program stops at some point and doesn't charge on the Shark module. We followed the code from the Analog Wiki to establish the connection.

  • Good morning -

    Can you please provide some additional details about your setup?

    1. Software (SDK and version) - There are two different SDKs for the SHARC Audio Module. Baremetal and Audio Starter. 

    2. Connection type - I'm assuming you mean you are trying to connect over A2B? 

    3. What errors, specifically are you observing? 

    4. Link to Wiki instructions? (Again because we have some for Baremetal and some for Audio Starter).  

  • We used Baremetal version, you are right, we are trying to connect over A2B.

    The problem is that, we do not observe any errors on our code, but it seems that something is happened on the code.

    Our master module aparently works, the only difference is  we put A2B_Role Master a False.

    The only thing that you can see is that the leds that normally indicates that the program is working, doesn't shine.

    Slave board

  • Hello, 

    For using SAM as a node connected over A2B, please follow these steps: 

    SAM Board 1 (M node) : 

    Update the audio_system_config.h file with the following code:

    #define A2B_ROLE_MASTER TRUE
    
    #if (A2B_ROLE_MASTER)
    
    #define A2B_TOPOLOGY_TDM8_SAM_to_SAM_2up_2down TRUE
    
    #endif // A2B_ROLE_MASTER
    

    Update the Core1/callback_audio_processing.cpp file with the following code:

    audiochannel_0_left_out[i] = audiochannel_a2b_0_left_in[i];
    audiochannel_0_right_out[i] = audiochannel_a2b_0_right_in[i];

    SAM Board 2 (S node) : 

    Update the audio_system_config.h file with the following code:

    #define A2B_ROLE_MASTER FALSE

    After updating the files, run the projects on the respective SAM boards. You should see the LEDs blinking on both boards. This setup takes Line In audio from SAM 2 (S), passes the audio to SAM 1 (M) via A2B, and you can listen to the audio from the line out of SAM 1.

    Please ensure that SAM 1's A2B S port is connected to SAM 2's M port for A2B communication.

    For further information, please refer to the page: 

    Using pre-configured topology files in the bare metal framework [Analog Devices Wiki]

    I hope this resolves your issue. If you have any more questions or need further help, please reach out to us. 

    Regards,

    Aradhita