ADSP-SC573 EzKit audio example problem

Hi,

I'm using the adau1979/adc_dac_playback example on SC573, but the audio doesn't work when I run it in CCES Debug. It only starts working after I hit terminate, but that doesn't allow debugging then. Does anyone know how to fix this or has run into the same issue?

Update: Turns out there is a bug in the example: pADC and pDAC should both be global variables and initialized to zero at startup. As originally, the code ends up overwriting random memory depending on the previous contents of stack. After fixing this, the example works as it should.