Is there a simple way to check DMA buffer overflow in Auto DMA mode?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

There may be a possibility calling CyU3PDmaChannelGetStatus() and then comparing prodXferCount vs consXferCount.

   

 

   

However, I am wondering if there is a better solution, like some flag that is set once a DMA buffer overun occurs.

   

 

   

-Silvio

0 Likes
3 Replies
Anonymous
Not applicable

Hi,

   

You can use "CY_U3P_DMA_TYPE_AUTO_SIGNAL" to get the notification of the events.

   

For more details, please refer to "USBBulkLoopAutoSignal" example project.

   

Thanks,

   

sai krishna.

0 Likes
Anonymous
Not applicable

 is there something similar to CY_U3P_DMA_TYPE_AUTO_MANY_TO_ONE?

0 Likes
Anonymous
Not applicable

It looks like we don't have that option for AUTO MANY to ONE channel.

   

We may need to use MANUAL MANY to ONE to get notifications.

   

Thanks,

   

Sai Krishna.

0 Likes