USB Lib: Enable 4-Byte alignment ALWAYS (not only for DMA!!!)
Posted on June 21, 2012 at 14:26The USB EP buffers defined in usbd_cc_core.cpp definitely NEED to be 4-byte aligned. Otherwise you end up in Memory-Alignment fault / Hard fault (if it is enabled by setting SCB->CCR |= 0x18 - this you definitely shou...