Hello Everyone,

   I did encounter this problem. It happened when I tried to transfer the
first few bytes of data in CPU mode and the rest of the chunk in EDMA mode a
little later. The reason in my case was that the first few bytes of data
were getting written from cache to the RAM after completion of the EDMA
transfer and not before starting the EDMA transfer. This caused the EDMA
results to get overwritten by the older copy of data.

   Try using,

flush_cache_all();    //#include <asm/cacheflush.h>

   before you start your EDMA transfer. This worked for me.



Best regards,
Uthappa


On 5/15/07, Ivan Tonchev <[EMAIL PROTECTED]> wrote:

Hi Uthappa,

We were working on an SPI EDMA driver, but our buffers were less than a
kilobyte.

Unfortunately we found that when programmed with EDMA, DaVinci SPI
controller does not always send the first byte. Sometimes it sent it,
sometimes it started from the second byte...

Did you encounter such behavior in your application? Did you *verify*
that your SPI data is output correctly?

Ivan

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to