• Problem with alignment of variable in memory
    I'm using an AT91SAM7 uC and have inherited some C code which is giving me fits. When I run this code I get a data abort error. I've tracked down the offending line of code, and it appears to be caused...
  • Problem with alignment of variable in memory
    I'm using an AT91SAM7 uC and have inherited some C code which is giving me fits. When I run this code I get a data abort error. I've tracked down the offending line of code, and it appears to be caused...
  • C++: Aligned byte fields not possible in classes?
    Hi, if I want to define a 4byte aligned char array in C, then I typically would declare: __align(4) char acBuf[20]; In C++, inside a class, this unfortunately fails (Error #328: invalid storage...
  • C++: Aligned byte fields not possible in classes?
    Hi, if I want to define a 4byte aligned char array in C, then I typically would declare: __align(4) char acBuf[20]; In C++, inside a class, this unfortunately fails (Error #328: invalid storage...
  • How to align a local variable at word-aligned address
    Hi Does anyone know how to force a local variable to be aligned at word address? The DMA transfer needs word-aligned address. Thanks. Joseph