
31 Jan
2006
31 Jan
'06
2:34 p.m.
Hi, Thanks a lot - it took me 2 days to find it out!!!.
The address of a long int, struct should be aligned to address which a multiple of 4.
Regards, Jo
On 1/31/06, Peter Menzebach pm-ub@mw-itcon.de wrote:
Maximus wrote: ...
void myrecieve_handler (uchar * pkt, unsigned dest, unsigned src, unsigned
len)
{
...
As, soon as seqnum = * (int *) pkt - is executed my board prints the
message:
One idea without further investigation....
if the pointer pkt is *not* on an 4 byte aligned address, you will get an alignment trap on arm.
Best regards Peter