Hi all:
I had meet an Alignment trap error when run my application on DM365:
Alignment trap: stream (702) PC=0x000b77e8 Instr=0xe7825003 Address=0x458b2796 FSR 0x801
Bus error
This is an general application, here is the code detail for you reference:
int functionA()
{
....
unsigned char pool[100];
....
functionB(pool);
}
int functionB(char *buf)
{
....
unsigned int *p = (unsigned int *)buf;
*p++ = 100; // The application will crashed here ....
}
Anyone who can help on this?