The host recieved short package error

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

cross mob
lock attach
Attachments are accessible only for community members.
yxx0803
Level 3
Level 3
50 sign-ins 25 replies posted 25 sign-ins

Hello,

Some settings in my design as follows:

DMA buffer:       16KB(size)X 2(number)

In my firmware:CyU3PGpifSocketConfigure (3,CY_U3P_PIB_SOCKET_3,6,CyFalse,1);   

watervalue:6

databus width:32

flagc:Thread3_DMA_Ready

flagd:Thread3_DMA_WaterMark

When fpga side transfer a short package(32B) to the host,the fisrt 4B data has losed,and the last 4B data was 00-00-00-00.The timing sequence as show in the picture named fpga.png.And the result of host recevied as show in the picture named host.png.The short package that fpga transfered is"0xcc88bb77 0xffff1007 0xffffffff 0xffffffff 0xabcdef01 0xabcdef01 0xabcdef01 0xabcdef01".And the data recevied  by the host is" 0xffff1007 0xffffffff 0xffffffff 0xabcdef01 0xabcdef01 0xabcdef01 0xabcdef01 0x00000000".

what's wrong with the code?What is your advance?

Best Regards,
Jack chen
0 Likes
8 Replies