Post Go back to editing

Example project in SAM_BareMetal_SDK-Rel2.1.2

Category: Software
Product Number: SC589-MINI, A2B AD2428
Software Version: SAM_BareMetal_SDK-Rel2.1.2

I have taken example project for SAM board(C:\Analog Devices\SAM_BareMetal_SDK-Rel2.1.2\framework) and customized based on the setup I am using.

I am using SAM as Main Node and SC594(SOM Carrier EZ-Kit + SC594-SOM + AD2428_Mini) as sub-node1. Please find the image of setup as below

I am planning to receive 2 channels from SAM board to SC594 setup through A2B

Customization Done in code is as below

1. I have made ENABLE_A2B macro as true in the file audio_system_config.h

2. In processaudio_callback() function I have added below lines in for loop to copy data from ADC to A2B.
//Send audio in from ADAU1761 to the A2B bus
audiochannel_a2b_0_left_out[i] = audiochannel_0_left_in[i];
audiochannel_a2b_0_right_out[i] = audiochannel_0_right_in[i];

3. I have also modified schematics and exported Command list file and used it in project. Please find the updated schematics attached(A2B Topology (4down-TDM8) SAM-ClassD.zip)

When I provide sine tone to SAM board and tried to halt the code in SC594 and check the DMA buffer I am not getting the sine tone. I am getting plot as below

Schematics

A2B Topology (4down-TDM8) SAM-ClassD.zip

Please find the source code running in SC594 board attached

SC594_A2B_Rx_Tx_ARM_Core0.zip

Please let me know your feedback on this