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.

LAUNCHXL-CC2640R2: LAUNCHXL-CC2640R2 PWM in simlpe_peripheral project problem

Part Number: LAUNCHXL-CC2640R2

Hello! I use simlpe_peripheral project from 2.30.00.28 SDK and have problem with PWM driver. Example code (with some little changes) do not work:

PWM_init();
// Initialize the PWM parameters
PWM_Params_init(&pwmParams);
pwmParams.idleLevel = PWM_IDLE_LOW; // Output low when PWM is not running
pwmParams.periodUnits = PWM_PERIOD_HZ; // Period is in Hz
pwmParams.periodValue = 100; // 100Hz
pwmParams.dutyUnits = PWM_DUTY_FRACTION; // Duty is in fractional percentage
pwmParams.dutyValue = 50; // 50% initial duty cycle
// Open the PWM instance
pwm = PWM_open(Board_PWM1, &pwmParams);
if (pwm == NULL) {
while (1);
}
PWM_start(pwm);

Before it i use PIN sollution from academy example: ledPinHandle = PIN_open(&ledPinState, ledPinTable); PIN_setOutputValue(ledPinHandle, Board_RLED, PIN_getOutputValue(Board_RLED)^1); 

- it works fine.

Whats wrong with PWM driver use in simlpe_peripheral project?