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.

WEBENCH® Tools/CC2540TDK-LIGHT: Error when compiling TI code of CC2540TDK-Light

Part Number: CC2540TDK-LIGHT

Tool/software: WEBENCH® Design Tools

Hi, 

I am trying to compile the original source code of CC2540TDK-Light Dev Kit on the IAR Embedded Workbench 8051 10.10.1 but unsuccessful. I also have BLE-Stack 2.2.1 in my machine. Any thought?

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Building configuration: BLELight - CC2540
Updating build tree...
lights.c
Error[Pe144]: a value of type "uint8 (*)(uint16, gattAttribute_t *, uint8 *, uint8 *, uint16, uint8)" cannot be used to initialize an entity of type "pfnGATTReadAttrCB_t" C:\Texas Instruments\BLE-CC254x-1.4.2.2\Projects\ble\Profiles\Light\lights.c 326
Error[Pe144]: a value of type "uint8 (*)(uint16, gattAttribute_t *, uint8 *, uint8, uint16)" cannot be used to initialize an entity of type "pfnGATTWriteAttrCB_t" C:\Texas Instruments\BLE-CC254x-1.4.2.2\Projects\ble\Profiles\Light\lights.c 327
Error[Pe167]: argument of type "gattServiceCBs_t const __xdata_rom *" is incompatible with parameter of type "uint8" C:\Texas Instruments\BLE-CC254x-1.4.2.2\Projects\ble\Profiles\Light\lights.c 358
Error[Pe165]: too few arguments in function call C:\Texas Instruments\BLE-CC254x-1.4.2.2\Projects\ble\Profiles\Light\lights.c 358
Error while running C/C++ Compiler

Total number of errors: 4
Total number of warnings: 0

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------