DSPRelated.com
Forums

C5505 AIC3204 CODEC

Started by alper July 26, 2010
Hi,

How can i obtain samples from AIC3204 audio codec.When i use fprintf command to save file , i can not hear anything at the output of codec and program execution lengthen. When i try to save samples into memory again i can not hear anything and execution lenghten. When i delete saving commands i can hear the output of the codec very clearly. How can i save samples from the codec?

Thanks
ALP
ALP-

> How can i obtain samples from AIC3204 audio codec.When i use
> fprintf command to save file , i can not hear anything at
> the output of codec and program execution lengthen. When i
> try to save samples into memory again i can not hear
> anything and execution lenghten. When i delete saving
> commands i can hear the output of the codec very clearly. How
> can i save samples from the codec?

1) What board is this? TI board? Other?

2) Do you have JTAG emulator connected to the board?

You did not describe your setup, so not much point in guessing. But, one quick guess would be that you have a JTAG
emulator connected, and therefore when you call fprintf() you're actually sending data over JTAG so it can be written
to a file on the host PC. In that case, the JTAG transmission time is slow, which could explain what you're seeing.

-Jeff
Alper-

Please post to the group, not to me.

> I am using ezdsp c5505 usb stick from spectrum digital.Yes
> i am using XDS100 JTAG emulator but instead of fprintf when
> i try to save samples into dsp's memory again i can not
> hear anything. Is there any way to save samples?

You try to save samples to memory and your program crashes (no audio)? Maybe you have a bad pointer, write over the
top of some code, write beyond the length of an array, or other typical C beginning programmer bug.

I would say you have a bug and you need to do some step-by-step debugging. First try to save just *one* sample
without crashing, then go from there.

-Jeff

> --- 26/07/10 Pzt tarihinde Jeff Brower şöyle yazıyor:
>
> Kimden: Jeff Brower
> Konu: Re: [c55x] C5505 AIC3204 CODEC
> Kime: "ALP"
> Kopya: c...
> Tarihi: 26 Temmuz 2010 Pazartesi, 21:14
>
> ALP-
>
>> How can i obtain samples from AIC3204 audio codec.When i use
>> fprintf command to save file , i can not hear anything at
>> the output of codec and program execution lengthen. When i
>> try to save samples into memory again i can not hear
>> anything and execution lenghten. When i delete saving
>> commands i can hear the output of the codec very clearly. How
>> can i save samples from the codec?
>
> 1) What board is this?  TI board?  Other?
>
> 2) Do you have JTAG emulator connected to the board?
>
> You did not describe your setup, so not much point in guessing.  But, one quick guess would be that you have a JTAG
> emulator connected, and therefore when you call fprintf() you're actually sending data over JTAG so it can be written
> to a file on the host PC.  In that case, the JTAG transmission time is slow, which could explain what you're seeing.
>
> -Jeff