[Dspforum] Trying to output sample
Doug Wenstrand
doug at echelonembedded.com
Tue Sep 15 17:28:45 MDT 2009
Billy -- if you upload a zipped copy of the whole project to the website, I
can take look, there are other things that could cause this, such as the
memory model, the linker command file, and the libraries included.
You are correct -- that snippet is part of output_sample, and it is saying
that as far as it knows, the serial port (Mcbsp = Multi Channel Buffered
Serial Port) transmit register is not ready. It will generally spend alot
of time there, 'cause your DDS should be faster than the rate at which the
CODEC wants samples (we sure hope!) However, a look at the entire project
would be beneficial
Doug
p.s. we might not have been clear about this; however in the future, we
don't want to send your entire C file and solution to the group forum.
Snippets are ok. Anyway, use your best judgement.
On Tue, Sep 15, 2009 at 6:03 PM, Jones, Billy <Billy.Jones at thalescomminc.com
> wrote:
> I can’t figure out why, but my program hangs when calling
> output_sample(*).
>
>
>
> When I single step through the program, it takes me to the function in
> c6713dskinit.c, and it stops at the line: if (poll)
> while(!MCBSP_xrdy(DSK6713_AIC23_DATAHANDLE));. The function comm_poll sets
> *poll* to be 1, so I think this is saying that the codec isn’t “ready” to
> receive packets. Is this correct? I’m calling output_sample(*) exactly the
> same as in the samples from the book, so I don’t know why it hangs in my
> program.
>
>
>
> Thanks.
>
>
>
>
>
> *Billy Jones*
>
> Digital Hardware Engineer
> *Thales Communications, Inc.*
>
> Land & Joint Systems Division
>
>
>
> Tel: 240-864-7323
>
> Fax: 240-864-7313
>
> Billy.Jones at Thalescomminc.com
>
>
> This email and any files transmitted with it are confidential and are
> intended solely for the use of the individual or entity to whom they are
> addressed. This communication represents the originator's personal views and
> opinions, which do not necessarily reflect those of Thales Communications,
> Inc. If you are not the original recipient or the person responsible for
> delivering the email to the intended recipient, be advised that you have
> received this email in error, and that any use, dissemination, forwarding,
> printing, or copying of this email is strictly prohibited. If you received
> this email in error, please immediately notify
> Administrator2 at Thalescomminc.com
>
> _______________________________________________
> Dspforum mailing list
> Dspforum at echelonembedded.com
> http://echelonembedded.com/mailman/listinfo/dspforum_echelonembedded.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://echelonembedded.com/pipermail/dspforum_echelonembedded.com/attachments/20090915/3e478ed8/attachment.html>
More information about the Dspforum
mailing list