This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

StellarisWare, SW-RDK-S2E, Alignment

This is an update to
http://www.keil.com/forum/17840/

\StellarisWare\third_party\lwip-1.3.1\src\include\lwip\opt.h

/**
 * MEM_ALIGNMENT: should be set to the alignment of the CPU
 *    4 byte alignment -> #define MEM_ALIGNMENT 4
 *    2 byte alignment -> #define MEM_ALIGNMENT 2
 */
#ifndef MEM_ALIGNMENT
#define MEM_ALIGNMENT                   1
#endif

It seems the default setting of MEM_ALIGNMENT is 1.

And TI recommends
MEM_ALIGNMENT probably best set to 4 for this device as it is a 32 bit (4 byte) CPU.

See
e2e.ti.com/.../72093.aspx