Open andy817501 opened 1 week ago
Hi @andy817501, You can this example from NXP
`
ULONG usb_memory[USBX_MEMORY_SIZE / sizeof(ULONG)]; AT_NONCACHEABLE_SECTION_ALIGN(char usb_memory_cachesafe[USBX_MEMORY_CACHESAFE_SIZE], 64);
ux_system_initialize((VOID *)usb_memory, USBX_MEMORY_SIZE,
usb_memory_cachesafe, USBX_MEMORY_CACHESAFE_SIZE);`
`
Thank you for your help
你好@andy817501, 你可以从 NXP 获得这个例子
` #如果定义 USBX_MEMORY_SIZE #定义 USBX_MEMORY_SIZE (60 * 1024) #结束
如果定义 USBX_MEMORY_CACHESAFE_SIZE #定义 USBX_MEMORY_CACHESAFE_SIZE (60 * 1024) #结束
ULONG usb_memory[USBX_MEMORY_SIZE / sizeof(ULONG)]; AT_NONCACHEABLE_SECTION_ALIGN(char usb_memory_cachesafe[USBX_MEMORY_CACHESAFE_SIZE], 64);
ux_system_initialize((VOID *)usb_memory, USBX_MEMORY_SIZE, usb_memory_cachesafe, USBX_MEMORY_CACHESAFE_SIZE);`
`
I would like to ask if there are any precautions to be taken with USBX if I want to use DMA
i have open the dcahe and setted it, but i I don't know How to provide a pointer, and the Cache how to use in usbx