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.
Tool/software: Code Composer Studio
I'm really new to CCS. I'm developing a program based on the Simple Peripheral example on the LAUNCHXL-CC2640R2, and would like to port it to a 5x5 package.
I tried following the instructions on http://software-dl.ti.com/lprf/simplelink_cc2640r2_latest/docs/blestack/ble_user_guide/html/ble-stack-3.x/custom-hardware.html#board-file.
When I try to run the program, I keep getting "#35 #error directive: "***ERROR*** Invalid Board Specified! Please see board.h for options."
So I checked and found the top-level "board.c" file that I edited on the <SDK_INSTALL_DIR>\source\ti\target path is not the same as the "board.c" in the project's Startup folder. I checked the path of the project's "board.c" file and found that it's in C:\[workspace]\[myprojectname]\Startup\board.c .
If there are any examples or tutorials on porting to 5x5 packages, it would be great too. I've read lots of documentation and forum posts but I don't know how to proceed.
Okay, I've solved the "board.c" file linking issue, now the top-level "board.c" file is the one appearing in my project's Startup folder.
Now I've changed the project’s predefined symbol "CC2640R2_LAUNCHXL" to my board's name "CC2640R2_VF".
I'm still getting compilation failure as follows:
>> Compilation failure
Startup/subdir_rules.mk:16: recipe for target 'Startup/main.obj' failed
"C:\ti\simplelink_cc2640r2_sdk_4_20_00_04\source\ti\blestack\common\cc26xx\..\..\boards\CC2640R2_VF\CC2640R2_VF.h", line 70: warning #48-D: incompatible redefinition of macro "CC2640R2_VF"
"C:/ti/simplelink_cc2640r2_sdk_4_20_00_04/source/ti/blestack/icall/inc/ble_user_config.h", line 354: fatal error #35: #error directive: "***BLE USER CONFIG BUILD ERROR*** Unknown package type!"
1 catastrophic error detected in the compilation of "../Startup/main.c".
Compilation terminated.
gmake: *** [Startup/main.obj] Error 1
gmake: Target 'all' not remade because of errors.
Do I need to define something in my board files?
Okay, I've found out again that I had to define the RF configuration.
In my renamed "MYBOARD.h" file I added a line of:
#define CC2650EM_7ID
which was missing. I followed the "Configuring the RF Front-End for Custom Hardware" section http://software-dl.ti.com/lprf/simplelink_cc2640r2_latest/docs/blestack/ble_user_guide/html/ble-stack-3.x/custom-hardware.html#sec-creating-a-custom-ble-app-rf-front-end-and-antennas
Now, I'm at a new issue:
undefined first referenced
symbol in file
--------- ----------------
TRNGCC26XX_config <whole-program>
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "vertFarm_v4_cc2640r2lp_app.out" not built
>> Compilation failure
makefile:186: recipe for target 'vertFarm_v4_cc2640r2lp_app.out' failed
gmake[1]: *** [vertFarm_v4_cc2640r2lp_app.out] Error 1
makefile:179: recipe for target 'all' failed
gmake: *** [all] Error 2
**** Build Finished ****
Where do I add the variable "TRNGCC26XX_config"?