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.

CC2640R2F: CC2640R2FRSMR not work properly

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2650

sdk 4.40

iar 8.32.1

using C:\ti\simplelink_cc2640r2_sdk_4_40_00_10\examples\rtos\CC2640R2_LAUNCHXL\ble5stack\simple_peripheral\

out of the box.

when I test on CC2640R2 board, works well, can adv,  app can scan/connect.

then I add CC2640R2DK_4XS macro definition, define one LED IO for my  CC2640R2FRSMR board.

I can scan and find it only in a few seconds after power on, can not connect. looks like adv stop and nothing more.

I test several cases:

1,

static void SimplePeripheral_taskFxn(UArg a0, UArg a1) {

// Initialize application SimplePeripheral_init();

setIO(IOID_6, 1); here we can see LED on, so it can run to here

2,

// Create one-shot clock for internal periodic events.

Util_constructClock(&clkPeriodic, SimplePeripheral_clockHandler, SP_PERIODIC_EVT_PERIOD, 0, false, (UArg)&argPeriodic);

Util_startClock(&clkPeriodic);//I add this line to make it start immediately sure.

but

//in SimplePeripheral_processAppMsg

case SP_PERIODIC_EVT:

setIO(IOID_6,1); //this line not work as LED not on

and

static void SimplePeripheral_clockHandler(UArg arg) {

spClockEventData_t *pData = (spClockEventData_t *)arg;

if (pData->event == SP_PERIODIC_EVT) {

setIO(IOID_6, 1); //this line not work as LED not on

why? how to fix? 

I want to make a periodic event and can run something periodicly, like make the LED blink.

then I will add POWER_SAVING to see whether it keeps working.