While my setup, in general, works just fine, the data I write is somehow misaligned. If I use f_write() with over 512 bytes of data it will behave in an unpredictable manner either adding or removing bytes. Since I store my data as fixed size sentences this situation causes later on weird behavior. At the same time when writing 512 bytes or less everything works perfectly fine. Is this an issue with data alignment for DMA controller?