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

USB superspeed peripherals Forum Discussions

LuTa_4642501
Level 3
Level 3
Welcome!

Hi,

In cyfxusbi2cregmode, glEp0Buffer doesn't need to be 32 bytes aligned because it is only used in setup messages, and CyU3PUsbGetEP0Data and CyU3PUsbSendEP0Data don't use DMA to transfer the data.

Is this correct?

Thanks

Lucas

0 Likes
1 Solution
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

Hi Lucas,

The APIs CyU3PUsbSendEP0Data and CyU3PUsbGetEP0Data uses DMA channel internally. And it is required that the buffers used for these APIs to be 32 byte aligned.

Please check FX3 API Guide for the API CyU3PDeviceCacheControl() for more details.

Regards,

Hemanth

Hemanth

View solution in original post

0 Likes
1 Reply
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

Hi Lucas,

The APIs CyU3PUsbSendEP0Data and CyU3PUsbGetEP0Data uses DMA channel internally. And it is required that the buffers used for these APIs to be 32 byte aligned.

Please check FX3 API Guide for the API CyU3PDeviceCacheControl() for more details.

Regards,

Hemanth

Hemanth
0 Likes