Part Number:DLP-7970ABP
Tool/software: Code Composer Studio
Host OS: Win10 64-bit
CCSv8.1.0.00011
CC1310 LaunchPad Rev: 1.4
DLP-7970ABP v4.5
Greetings,
I am new to board programming and am attempting to program a CC1310 Launchpad (with a mounted DLP-7970 board) with the example firmware provided here: http://www.ti.com/lit/zip/sloc297. I know that the example firmware is designed for the MSP-EXP430G2, and that I am going to have to make some changes if I want to program the CC1310. I have read through the 'Porting TI Drivers" page in Resource Explorer and, so far I have:
- imported the empty CC1310 example project provided in the Resource Explorer
- copied over the Hardware and NFC folders from the TRF7970ABP_RFID_Reader_Demo to the empty CC1310 project
- Replaced the TRF7970ABP_RFID_Reader_Demo uart files with the cc1310 uart files
- Excluded Hardware/VLO_Library.asm from build (this was causing a bunch of errors when compiling and I do not know its purpose)
- Changed #include "MSP430.h" in mcu.h to #include "CC1310_LAUNCHXL.h"
Here is a screenshot of the Project Explorer:
![]()
I am getting compilation errors in mcu.c, spi.c, and trf79xxa.c files in the hardware folder.
>> Compilation failure
Hardware/subdir_rules.mk:30: recipe for target 'Hardware/mcu.obj' failed
"../Hardware/mcu.c", line 74: error #20: identifier "TA0CTL" is undefined
"../Hardware/mcu.c", line 74: error #20: identifier "TACLR" is undefined
"../Hardware/mcu.c", line 75: error #20: identifier "TASSEL_3" is undefined
"../Hardware/mcu.c", line 77: error #20: identifier "TA0CCTL0" is undefined
"../Hardware/mcu.c", line 77: error #20: identifier "CCIE" is undefined
"../Hardware/mcu.c", line 78: error #20: identifier "TA0CCR0" is undefined
"../Hardware/mcu.c", line 79: error #20: identifier "MC_1" is undefined
"../Hardware/mcu.c", line 79: error #20: identifier "TASSEL_1" is undefined
"../Hardware/mcu.c", line 118: error #20: identifier "CALBC1_8MHZ" is undefined
"../Hardware/mcu.c", line 126: error #20: identifier "DCOCTL" is undefined
"../Hardware/mcu.c", line 127: error #20: identifier "BCSCTL1" is undefined
"../Hardware/mcu.c", line 128: error #20: identifier "CALDCO_8MHZ" is undefined
"../Hardware/mcu.c", line 131: error #20: identifier "P2SEL" is undefined
"../Hardware/mcu.c", line 131: error #20: identifier "BIT6" is undefined
"../Hardware/mcu.c", line 131: error #20: identifier "BIT7" is undefined
"../Hardware/mcu.c", line 134: error #20: identifier "XTS" is undefined
"../Hardware/mcu.c", line 135: error #20: identifier "DIVA_1" is undefined
"../Hardware/mcu.c", line 138: error #20: identifier "BCSCTL3" is undefined
"../Hardware/mcu.c", line 138: error #20: identifier "LFXT1S_2" is undefined
19 errors detected in the compilation of "../Hardware/mcu.c".
>> Compilation failure
Hardware/subdir_rules.mk:37: recipe for target 'Hardware/spi.obj' failed
"../Hardware/spi.c", line 68: error #20: identifier "P2OUT" is undefined
"../Hardware/spi.c", line 68: error #20: identifier "BIT1" is undefined
"../Hardware/spi.c", line 129: error #20: identifier "P2OUT" is undefined
"../Hardware/spi.c", line 129: error #20: identifier "BIT1" is undefined
"../Hardware/spi.c", line 139: error #20: identifier "IFG2" is undefined
"../Hardware/spi.c", line 139: error #20: identifier "UCB0TXIFG" is undefined
"../Hardware/spi.c", line 142: error #20: identifier "UCB0TXBUF" is undefined
"../Hardware/spi.c", line 144: error #20: identifier "UCB0STAT" is undefined
"../Hardware/spi.c", line 144: error #20: identifier "UCBUSY" is undefined
"../Hardware/spi.c", line 173: error #20: identifier "P2OUT" is undefined
"../Hardware/spi.c", line 173: error #20: identifier "BIT1" is undefined
"../Hardware/spi.c", line 192: error #20: identifier "UCB0STAT" is undefined
"../Hardware/spi.c", line 192: error #20: identifier "UCBUSY" is undefined
"../Hardware/spi.c", line 222: error #20: identifier "P2OUT" is undefined
"../Hardware/spi.c", line 222: error #20: identifier "BIT1" is undefined
"../Hardware/spi.c", line 247: error #20: identifier "UCB0TXBUF" is undefined
"../Hardware/spi.c", line 249: error #20: identifier "UCB0STAT" is undefined
"../Hardware/spi.c", line 249: error #20: identifier "UCBUSY" is undefined
"../Hardware/spi.c", line 251: error #20: identifier "UCB0RXBUF" is undefined
"../Hardware/spi.c", line 260: error #20: identifier "UCB0TXBUF" is undefined
"../Hardware/spi.c", line 262: error #20: identifier "UCB0STAT" is undefined
"../Hardware/spi.c", line 262: error #20: identifier "UCBUSY" is undefined
"../Hardware/spi.c", line 285: error #20: identifier "UCB0CTL1" is undefined
"../Hardware/spi.c", line 285: error #20: identifier "UCSWRST" is undefined
"../Hardware/spi.c", line 286: error #20: identifier "UCB0CTL0" is undefined
"../Hardware/spi.c", line 286: error #20: identifier "UCMSB" is undefined
"../Hardware/spi.c", line 286: error #20: identifier "UCMST" is undefined
"../Hardware/spi.c", line 286: error #20: identifier "UCSYNC" is undefined
"../Hardware/spi.c", line 290: error #20: identifier "UCSSEL_2" is undefined
"../Hardware/spi.c", line 292: error #20: identifier "UCB0BR0" is undefined
"../Hardware/spi.c", line 293: error #20: identifier "UCB0BR1" is undefined
"../Hardware/spi.c", line 294: error #20: identifier "P1SEL" is undefined
"../Hardware/spi.c", line 294: error #20: identifier "BIT5" is undefined
"../Hardware/spi.c", line 294: error #20: identifier "BIT6" is undefined
"../Hardware/spi.c", line 294: error #20: identifier "BIT7" is undefined
"../Hardware/spi.c", line 295: error #20: identifier "P1SEL2" is undefined
"../Hardware/spi.c", line 297: error #20: identifier "P2DIR" is undefined
"../Hardware/spi.c", line 297: error #20: identifier "BIT1" is undefined
"../Hardware/spi.c", line 298: error #20: identifier "P2OUT" is undefined
"../Hardware/spi.c", line 328: error #20: identifier "P2OUT" is undefined
"../Hardware/spi.c", line 328: error #20: identifier "BIT1" is undefined
"../Hardware/spi.c", line 366: error #20: identifier "P2OUT" is undefined
"../Hardware/spi.c", line 366: error #20: identifier "BIT1" is undefined
"../Hardware/spi.c", line 387: error #20: identifier "P2DIR" is undefined
"../Hardware/spi.c", line 387: error #20: identifier "BIT2" is undefined
"../Hardware/spi.c", line 389: error #20: identifier "BIT0" is undefined
"../Hardware/spi.c", line 389: error #20: identifier "BIT7" is undefined
"../Hardware/spi.c", line 390: error #20: identifier "P2IES" is undefined
"../Hardware/spi.c", line 394: error #20: identifier "P2OUT" is undefined
49 errors detected in the compilation of "../Hardware/spi.c".
gmake: *** [Hardware/spi.obj] Error 1
I am getting the same kind of errors in the NFC/felica.c iso14443a.c iso14443b.c iso15693.c and nfc_app.c files. These are the only kind of errors I am getting.
My guess is that these undefined terms are references to pins specific to the MSP430 board, and are undefined when compiled in the cc1310 project. Is this correct to assume? If so, how do I go about redefining these pins?
If that is not the case, what steps would you take to get this firmware compatible with the CC1310 Launchpad? Is porting this project to the CC1310 even possible?
-Michael