Post from five years ago address what I think is a similar problem, but the link to the solution is now dead.
The underlying problem is my need to fine tune the CC1101 radio module embedded in the CC430F5137 uC. The radio registers are not directly visible in CCS or to any user software. Radio register access is via the "radio interface" and rather than roll-my-own I want to used "canned" routines from the SimpliciTI API. HOWEVER, try as I might, I cannot get the code to compile.
First attempts result in the "silent" failure (nothing appears in problem window) with the message in the console window (see below):
gmake: Target 'all' not remade because of errors.
Scrolling the console window locates the following:
Using CCS's navigate function I located the lines in Components/bsp/boards/CC430EM/bsp_external/mrfi_boards_def.h
/* ------------------------------------------------------------------------------------------------
* Radio Selection
* ------------------------------------------------------------------------------------------------
*/
#if (!defined MRFI_CC430)
#error "ERROR: A compatible radio must be specified for the CC430EM board."
#endif
/* Radio Interface critical section macros */
typedef bspIState_t mrfiRIFIState_t;
#define MRFI_RIF_ENTER_CRITICAL_SECTION(x) BSP_ENTER_CRITICAL_SECTION(x)
#define MRFI_RIF_EXIT_CRITICAL_SECTION(x) BSP_EXIT_CRITICAL_SECTION(x)
// #error bsp_external_mrfi_board_defs
/**************************************************************************************************
* Compile Time Integrity Checks
**************************************************************************************************
*/
#ifndef BSP_BOARD_CC430EM
#error "ERROR: Mismatch between specified board and MRFI configuration."
#endif
// ************************************************************************************************
I tested the compile "thread" with the (now commented out) line:
// #error bsp_external_mrfi_board_defs
The compiler definitely passes through this file.
I tried cutting and pasting the three "Radio Interface critical section macros":
// *************************************************************************
typedef bspIState_t mrfiRIFIState_t;
#define MRFI_RIF_ENTER_CRITICAL_SECTION(x) BSP_ENTER_CRITICAL_SECTION(x)
#define MRFI_RIF_EXIT_CRITICAL_SECTION(x) BSP_EXIT_CRITICAL_SECTION(x)
// ********************************************************************************************
into the mrfi_radio_interface.h file to have them visible in mrfi_radio_interface.c, but this didn't remove the errors. I even tried both places which result in numerous redefinition errors.
What do I need to do to achieve a successful compilation?
DE