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.

LAUNCHXL-CC2650: Compiling and programming issues with Launchpad CC2650

Part Number: LAUNCHXL-CC2650
Other Parts Discussed in Thread: CC2530, CC2630, Z-STACK, CC2650,

Hi everyone,

I just received LAUNCHHXL-CC2650 kit. I am new to working with this launchpad. So, I start digging into its architecture &functionality. My goal is to make it as a Zigbee End device (CC2630) which will communicate with the coordinator (CC2530).  I've followed some basic steps to start with this, which are described below:

IDE Used: IAR EWARM 7.40.2

Z-stack: Z-stack_Home_1.2.2a

I have followed these wiki instructions. I did everything that is written there but when I am compiling the Program (SampleSwitch), I am getting the errors

Building configuration: SampleSwitch - CC2650LP 
Updating build tree... 
Performing Pre-Build Action 
Board.c 
Warning[Pe047]: incompatible redefinition of macro "Board_SPI0_MISO" (declared at line 107 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 97 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Warning[Pe047]: incompatible redefinition of macro "Board_SPI0_MOSI" (declared at line 108 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 98 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Warning[Pe047]: incompatible redefinition of macro "Board_SPI0_CLK" (declared at line 106 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 99 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Warning[Pe047]: incompatible redefinition of macro "Board_I2C0_SCL0" (declared at line 96 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 107 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Warning[Pe047]: incompatible redefinition of macro "Board_SPI_FLASH_CS" (declared at line 101 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 111 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe1445]: invalid redefinition of enum "CC2650_I2CName" (declared at line 156 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 162 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe101]: "CC2650_I2C0" has already been declared in the current scope (at line 157 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 163 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe101]: "CC2650_I2CCOUNT" has already been declared in the current scope (at line 158 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 165 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe256]: invalid redeclaration of type name "CC2650_I2CName" (declared at line 159 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 166 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe1445]: invalid redefinition of enum "CC2650_CryptoName" (declared at line 67 of "C:\ti\simplelink\zstack_home_1_02_02a_44539\Projects\zstack\ C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 172 
HomeAutomation\SampleSwitch_LP\CC26xx\..\..\..\common\CC26xx\LaunchPad\Board.h") 
Error[Pe101]: "CC2650_CRYPTO0" has already been declared in the current scope (at line 69 of "C:\ti\simplelink\zstack_home_1_02_02a_44539\Projects\zstack\ C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 173 
HomeAutomation\SampleSwitch_LP\CC26xx\..\..\..\common\CC26xx\LaunchPad\Board.h") 
Error[Pe101]: "CC2650_CRYPTOCOUNT" has already been declared in the current scope (at line 69 of "C:\ti\simplelink\zstack_home_1_02_02a_44539\Projects\ C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 175 
zstack\HomeAutomation\SampleSwitch_LP\CC26xx\..\..\..\common\CC26xx\LaunchPad\Board.h") 
Error[Pe256]: invalid redeclaration of type name "CC2650_CryptoName" (declared at line 70 of "C:\ti\simplelink\zstack_home_1_02_02a_44539\Projects\zstack\ C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 176 
HomeAutomation\SampleSwitch_LP\CC26xx\..\..\..\common\CC26xx\LaunchPad\Board.h") 
Error[Pe1445]: invalid redefinition of enum "CC2650_SPIName" (declared at line 165 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 183 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe101]: "CC2650_SPI0" has already been declared in the current scope (at line 166 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 184 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe101]: "CC2650_SPICOUNT" has already been declared in the current scope (at line 167 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 187 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe256]: invalid redeclaration of type name "CC2650_SPIName" (declared at line 168 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 188 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe1445]: invalid redefinition of enum "CC2650_UARTName" (declared at line 174 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 194 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe101]: "CC2650_UART0" has already been declared in the current scope (at line 175 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 195 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe101]: "CC2650_UARTCOUNT" has already been declared in the current scope (at line 176 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 197 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe256]: invalid redeclaration of type name "CC2650_UARTName" (declared at line 177 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 198 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe1445]: invalid redefinition of enum "CC2650_UdmaName" (declared at line 183 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 204 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe101]: "CC2650_UDMA0" has already been declared in the current scope (at line 184 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 205 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe101]: "CC2650_UDMACOUNT" has already been declared in the current scope (at line 185 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 207 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe256]: invalid redeclaration of type name "CC2650_UdmaName" (declared at line 186 of C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.h 208 
"C:/ti/tirtos_simplelink_2_11_01_09/packages/ti/boards/SensorTag/CC26XXST_0120/Board.h") 
Error[Pe136]: struct "UARTCC26XX_HWAttrs" has no field "intPriority" C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.c 98 
Error[Pe136]: struct "UDMACC26XX_HWAttrs" has no field "intPriority" C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.c 140 
Error[Pe136]: struct "SPICC26XX_HWAttrs" has no field "intPriority" C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.c 176 
Error[Pe146]: too many initializer values C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.c 186 
Error[Pe136]: struct "I2CCC26XX_HWAttrs" has no field "intPriority" C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.c 242 
Error[Pe136]: struct "CryptoCC26XX_HWAttrs" has no field "intPriority" C:\ti\tirtos_simplelink_2_11_01_09\packages\ti\boards\LaunchPad\CC2650LP\Board.c 283 
Error while running C/C++ Compiler 

Total number of errors: 26 
Total number of warnings: 5

But When I am compiling the unchanged SampleSwitch Program, I am successfully able to compile. Please guide me to successful compiling it and I am not able to erase the flash through IAR IDE, it is showing me an error: 

then I tried updating the firmware and changing the serial number then I was getting another error of wrong routing. Please guide me with the proper approach on how can I resolve this issue?

Regards,

Priya