We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I am using uvision3 with realview compiler. I am busy working on an open source code, which was originally designed for an environment like visual studio. The program compiles fine there.
As soon as I compile it in uvision, i get the following error:
openPOWERLINK_v1.2.0\EplStack\EplApiGeneric.c(1453): error: #167: argument of type "__packed unsigned long *" is incompatible with parameter of type "void *"
I would appreciate any suggestions
The code sample doesn't show where the __packed came from. Perhaps, there is a pragma above the typedef. Of course, you can use explicit type cast to silence the compiler, but first you must make sure that there will be no data alignment problems. After all, the x86 processor allows unaligned accesses, whereas most ARM processors do not.