For some time I have been using the Sharc Griffin in the SC584 to initiate and run the adau1962a DAC together with the adau1979 ADC, all has been working well.
I moved the 1979 ADC to the ARM and things work (with some bug).
When I tried to do the same for the 1962 DAC, things did not work.
I have a breakpoint in the callback function, and when it stops there I see the event is a status event of 5, meaning –
ADI_SPORT_HW_ERR_PRIMARY_CHNL_UNDERFLOW | ADI_SPORT_HW_ERR_SECONDARY_CHNL_UNDERFLOW - error message.
I copied exactly the code from the Sharc Griffin to the ARM but it still does not work.
Is there a difference between the Sharc initiating the DAC and the ARM - clock,memory differences ?
Attached is the code I use to initiate the DAC 1962, it is based on your talkthroug example of yours.
if(Adau1962aInit() != 0u)
fprintf(stdout, " Adau1962aInit() failed\n" );
/* Submit DAC buffers */
if(Adau1962aSubmitBuffers() != 0u)
fprintf(stdout, " Adau1962aSubmitBuffers() failed\n" );
/* END of 1962adc init */
if(Adau1962Enable() != 0u)
fprintf(stdout, " Adau1962Enable() failed\n" );
fprintf(stdout, " DAC Started\n" );