This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Anyone encountered Error[Pe167]: argument of type "char *" is incompatible with parameter of type "char const __xdata *" ?

I am compiling a code for wireless transmission and reception of cc2530

I am getting the following error. "Error[Pe167]: argument of type "char *" is incompatible with parameter of type "char const __xdata *" 

I read an earlier thread where the "fix" was "...I assume you are using IAR C51 compiler. Check the Project Option "General Option"/"Location for constants and strings" is not "code memory".

I have checked this and "Code Memory" is NOT checked, "RAM Memory" is checked

  • What code do you Compiler and what IDE do you use?
  • IAR Assembler for 8051
    7.60.1 (7.60.1.40026)
    C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4\8051\bin\a8051.exe
    6/8/2010 10:23:30 AM, 892928 bytes

    IAR C/C++ Compiler for 8051
    7.60.1 (7.60.1.40026)
    C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4\8051\bin\icc8051.exe
    6/8/2010 10:30:32 AM, 13844480 bytes

    IAR Library Builder
    4.61T (4.61.20.0)
    C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4\8051\bin\xar.exe
    2/2/2010 4:59:26 PM, 163840 bytes

    IAR XLIB
    4.61T/386 (4.61.20.0)
    C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4\8051\bin\xlib.exe
    2/2/2010 5:00:12 PM, 532480 bytes
  • What SW example do you build and see this issue?