Index: firmware/usbstack/usb_storage.c =================================================================== --- firmware/usbstack/usb_storage.c (revision 30619) +++ firmware/usbstack/usb_storage.c (working copy) @@ -18,6 +18,7 @@ * KIND, either express or implied. * ****************************************************************************/ +#include "config.h" #include "string.h" #include "system.h" #include "usb_core.h" @@ -460,13 +461,12 @@ state = WAITING_FOR_COMMAND; #if (CONFIG_CPU == IMX31L || defined(CPU_TCC77X) || defined(CPU_TCC780X) || \ - defined(BOOTLOADER) || CONFIG_CPU == DM320) && !defined(CPU_PP502x) + defined(BOOTLOADER) || CONFIG_CPU == DM320) || defined(CPU_PP502x) static unsigned char _cbw_buffer[MAX_CBW_SIZE] - USB_DEVBSS_ATTR __attribute__((aligned(32))); + NOCACHEBSS_ATTR __attribute__((aligned(32))); cbw_buffer = (void *)_cbw_buffer; - static unsigned char _transfer_buffer[ALLOCATE_BUFFER_SIZE] - USB_DEVBSS_ATTR __attribute__((aligned(32))); + NOCACHEBSS_ATTR __attribute__((aligned(32))); tb.transfer_buffer = (void *)_transfer_buffer; #ifdef USB_USE_RAMDISK static unsigned char _ramdisk_buffer[RAMDISK_SIZE*SECTOR_SIZE];