Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Ads

Discussion Groups

Discussion Groups | TMS320C54x | Trouble with DMA

Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).

  

Post a new Thread

Trouble with DMA - Jean Viljoen - Oct 9 9:43:00 2002



Dear group

I am using the C5402DSK and AIC10 EVM populated with 8 CODECS. I am using CCS
1.21 with XDS510PP JTAG emulator. To transfer data between CODECS and DSP an
can use either DMA, or interrupts and then transmit over MCBSP.

I find that when I use the DMA, I need to turn the power off to the DSK/EVM
everytime I want to reload a new program, else it hangs in the init. code of the
AIC EVM. This implies that I need to shut down CCS everytime before I can
reload my program. This takes up vasts amounts of time during development.
Does anyone have a pointer here? When I service the CODECS with interrupts
and MCBSP, everything works fine.

Jean Viljoen
Development Engineer

Azoteq (Pty) Ltd
Tel: +27 21 863 0033
Fax: +27 21 863 1512





(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )

Re: Trouble with DMA - Benjamin Chan - Oct 9 12:12:00 2002

When you reset the DMA, you will need to wait for at
least a FULL buffer time before you re-init the DMA
control registers. This is to ensure the DMA sequence
to settle down from previous operations.

Try this sequence:

RESET McBsp
RESET DMA
WAIT for DMA buffer time
INIT McBsp
INIT DMA

The reason it works after you power cycle the board
because the DMA is completly IDLE after power up.

Ben
--- Jean Viljoen <> wrote:
> Dear group
>
> I am using the C5402DSK and AIC10 EVM populated with
> 8 CODECS. I am using CCS 1.21 with XDS510PP JTAG
> emulator. To transfer data between CODECS and DSP
> an can use either DMA, or interrupts and then
> transmit over MCBSP.
>
> I find that when I use the DMA, I need to turn the
> power off to the DSK/EVM everytime I want to reload
> a new program, else it hangs in the init. code of
> the AIC EVM. This implies that I need to shut down
> CCS everytime before I can reload my program. This
> takes up vasts amounts of time during development.
> Does anyone have a pointer here? When I service
> the CODECS with interrupts and MCBSP, everything
> works fine.
>
> Jean Viljoen
> Development Engineer
>
> Azoteq (Pty) Ltd
> Tel: +27 21 863 0033
> Fax: +27 21 863 1512 >
> _____________________________________ __________________________________________________





(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )