In AN65974, send 1KB used SF_streamOUT.img, why FLAGC and FLAGD is always low?

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

cross mob
Anonymous
Not applicable

In AN65974 demo,use SF_streamOUT.img.

   

USE "usb control center",send 1KB, but FLAGC and FLAGD in the GPIF interface are always low, which can not trigger read status. and send 1025B or 1023B, the FLAGC and FLAGD are normal, which can trigger read status.

   

Why is FX3 abnormal, when received 1KB?

0 Likes
1 Solution
Anonymous
Not applicable

Hi,

When you program FX3 with SF_streamOUT.img, the DMA buffer size is set to 16kB by default.

A DMA_CB_PROD_EVENT is generated when the DMA buffer is full or partially full (not a multiple of 1KB).

When you send a multiple of 1KB (Max. Endpoint packet size for USB 3.0), you need to send a ZLP afterwards to commit the DMA buffer to Consumer socket.

View solution in original post

0 Likes
1 Reply
Anonymous
Not applicable

Hi,

When you program FX3 with SF_streamOUT.img, the DMA buffer size is set to 16kB by default.

A DMA_CB_PROD_EVENT is generated when the DMA buffer is full or partially full (not a multiple of 1KB).

When you send a multiple of 1KB (Max. Endpoint packet size for USB 3.0), you need to send a ZLP afterwards to commit the DMA buffer to Consumer socket.

0 Likes