2008-07-23 16:23:24 Data access misaligned address violation
pengcheng liu (UNITED STATES)
I keeping geting this error when I run my program on bf537
Data access misaligned address violation
- Attempted misaligned data memory or data cache access.
the program where it crushed:
getImage(buffer,width,height);----function get a char buffer
grad(gra,buffer,width,height);---calculate gra based on buffer
printf("number is %d\n",n); ---printf out loop number;
-----crushed here when n=39;
sprintf(str, "%f", number);
Does anyone know what might happened?
2008-07-23 17:27:13 Re: Data access misaligned address violation
Robin Getz (UNITED STATES)
You should be able to track down exactly what line of source is causing the problem.