This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HWAFFT routine gives zero output when free running, valid output when single-stepped?

I'm running into the exact same issue that Daniel Chen encountered here:

http://e2e.ti.com/support/dsp/c5000/f/109/t/151550

I'm putting a single cycle with a vector magnitude of 1 into a queue:

queue[0] = 32767;
queue[1] = 0;
queue[2] = 23170;
queue[3] = 23170;
queue[4] = 0;
queue[5] = 32767;
queue[6] = -23170;
queue[7] = 23170;
queue[8] = -32767;
queue[9] = 0;
queue[10] = -23170;
queue[11] = -23170;
queue[12] = 0;
queue[13] = -32767;
queue[14] = 23170;
queue[15] = -23170;

Then bit reversing it into a "fft_a" buffer (which produces valid data in fft_a)

hwafft_br(queue,fft_a,8);

Then calling hwafft_8pts:

hwafft_8pts(fft_a, fft_b, FFT_FLAG, SCALE_FLAG);

If I set a breakpoint after the hwafft_8pts call, both fft_a and fft_b buffers are zero. But if I single-step through the hwafft_8pts() function with the emulator, it works fine.

I'm using two different implementations of hwafft_8pts - first a wrapper function that sets the high 8 bits of the XAR5:0 registers to zero to avoid the known errata in the ROM functions, and secondly running the SPRABB6 "fixed" code out of RAM. Both do the exact same thing - zero result when free-running, perfect result when single-stepping.

Free-running to certain points in the FFT routine can cause different results - eg, free running to the XAR0 = XAR4 "start 1st double stage" and single stepping from there gives a nonzero, but corrupted, output.

Help?

  • Hi,

    Please don't create duplicate posts since it will add complexity while tracking the open threads.

    Kindly follow it up on your old thread which you posted below:
    http://e2e.ti.com/support/dsp/c5000/f/109/t/393841

    But we apologise that, you wouldn't get response for the above post and kindly wait on the same post, we will forward your request to TI team to address your issue. So, please wait on the same thread to get response.

    Thanks for your understanding and thereby, i am closing this thread.

    Thanks & regards,
    Sivaraj K

  • Marking this question as verified, but I've reposted my question at the end of the other indicated thread.


    Still having no luck getting this to work and appreciate any help.