SWRA446 February 2015 CC1310 , CC1310 , CC2620 , CC2620 , CC2630 , CC2630 , CC2640 , CC2640 , CC2640R2F , CC2640R2F , CC2640R2F-Q1 , CC2640R2F-Q1 , CC2650 , CC2650 , CC2650MODA , CC2650MODA
The startup files startup_gcc.c and ccfg.c files are found in the ‘cc26xxware/startup_files/’ folder in the driverlib package.
ccfg.c specifies the Customer Configuration Area (CCA). The CCA is given the compiler attribute section in order to assign it to the .ccfg section of the linker script.
startup_gcc.cmd contains the implementation of the reset ISR, the default fault handlers and the vector table. The interrupt handler prototypes are declared with the attribute weak. This attribute lets functions get overridden if declared anywhere else, such as in the main program. The vector table is given the compiler attribute section in order to assign it to the .vectors section of the linker script. The first value of the vector table is a pointer to the top of the stack. This variable is also gotten from the linker script.
Make sure that the referred sections used in the startup files match the names used in the linker file.