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.

CC1310 PWM using CC13xxWare API

Other Parts Discussed in Thread: CC1310

Hi, 

I started developing with the CC1310. I am trying to use the PWM API that is included in CC13xxWare, but I get stuck at some point. I am using TI drivers 2.16.0.8. 

In board.c I declared the PWM hardware atribute and the PWM config structure as underneath. I couldn't find an example which matched the used defines in PWM.h and PWMTimerCC26XX.h, so I hope it is okay like this. 

/*

* ============================= PWM begin ===================================
*/
#if defined(__TI_COMPILER_VERSION__)
#pragma DATA_SECTION(PWM_config, ".const:PWM_config")
#pragma DATA_SECTION(pwmCC26XXHWAttrs, ".const:pwmCC26XXHWAttrs")
#endif

/* Include drivers */
#include <ti/drivers/PWM.h>
#include <ti/drivers/pwm/PWMTimerCC26XX.h>
#include <driverlib/timer.h>   // Needed for declaration of ".timer = TIMER_A"


/* PWM objects */
PWMTimerCC26XX_Object pwmCC26XXObjects[CC1310_PWMCOUNT];

/* PWM hardware parameter structure, also used to assign PWM pins */
const PWMTimerCC26XX_HWAttrs pwmCC26XXHWAttrs[CC1310_PWMCOUNT] =
{
{
.baseAddr = GPT0_BASE,
.timer = TIMER_A,
.powerMngrId = PowerCC26XX_PERIPH_GPT0,
.pwmPinId = BOARD_PWM
}
};

/* PWM function table pointer */
//static const PWM_FxnTable PWMTimerCC26XX_fxnTable;

/* PWM configuration structure */
const PWM_Config PWM_config[] = {
{
.fxnTablePtr = &PWMTimerCC26XX_fxnTable,
.object = &pwmCC26XXObjects[0],
.hwAttrs = &pwmCC26XXHWAttrs[0]
},
{NULL, NULL, NULL}
};
/*
* ============================= PWM end =====================================
*/

When I call the   PWM_init() or the PWM_open(Board_PWM, &pwmParams) function, I get an unresolved symbol error: 

"unresolved symbol ti_sysbios_family_arm_lm4_Timer_getAvailMask__E, first referenced in C:/ti/tirtos_cc13xx_cc26xx_2_16_00_08/products/tidrivers_cc13xx_cc26xx_2_16_00_08/packages/ti/drivers/lib/drivers_cc13xxware.aem3<PWMTimerCC26XX.oem3>"

(btw I also get error "#10010 errors encountered during linking; "EB_CCS4400.out" not built")

In  <ti/sysbios/family/arm/lm4/Timer.h>  I can find the define of ti_sysbios_family_arm_lm4_Timer_getAvailMask__E, but I don't know how to proceed. I would be very happy with some guidence. 

Joris