This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3352: When the device receives USB data by CPPI DMA, the Buffer Descriptor becomes an incorrect value.

Part Number: AM3352

Hi everyone,

When the device receives USB data via CPPI DMA, the Packet Descriptor "Buffer 0 length" and "Packet length" are incorrect.

Specifically, the operation is as follows.

(1) When "Buffer 0 length" and "Packet length" of Packet Descriptor can be acquired correctly

"CPPI DMA Memory Regions" and "Linking RAM" are 16 Kbytes,
When HOST (PC) transmits data of 15 Kbytes + 1 Byte,
the received data size (“Buffer 0 length” and “Packet length”) is 15 Kbytes + 1 Byte (512 Bytes * 30 pieces + 1 Byte → 15.001 KB).
This received data size is correct.

(2) When "Buffer 0 length" and "Packet length" of Packet Descriptor can not be acquired correctly

"CPPI DMA Memory Regions" and "Linking RAM" are 16 Kbytes,
When HOST (PC) sends data of 16 Kbytes + 1 Byte,
the received data size ("Buffer 0 length" and "Packet length") is 16 Kbytes + 512 Bytes (512 Bytes * 33 pieces → 16.5 Kbytes).
This received data size is incorrect.

Please let me know why the received data will be 16.5KB if it exceeds 16KB.

Best regards,
Sasaki