This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

please help with incompatible arguments

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

Parents
  • 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.

Reply
  • 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.

Children
No data