This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/AM3359: Memory alignment

Part Number: AM3359

Tool/software: TI-RTOS

I have question about memory alignment when writing/reading to the eMMCSD memory.

The example program uses the following code:

#define DATA_BUF_ALIGN               (256)
uint8_t tx[SECTORSIZE*TESTSECTORS];
#ifdef __ARM_ARCH_7A__
__attribute__((aligned(256))) // GCC way of aligning
#endif
uint8_t rx[SECTORSIZE*TESTSECTORS];
#ifdef __ARM_ARCH_7A__
__attribute__((aligned(256))) // GCC way of aligning
#endif
The first question is why data should be aligned at 256 bytes?
How and were DATA_BUF_ALIGN is used?
What is scope of this definition?
How to correctly align data if I am using alloc function for large block of the DDR?
Thank you.