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.

Compiler/CC2640R2F: Power shutdown & wakeup problem

Part Number: CC2640R2F
Other Parts Discussed in Thread: SIMPLELINK-CC2640R2-SDK, BLE-STACK

Tool/software: TI C/C++ Compiler

Hello, TI engineer,

I'v modified the example project:  simple_peripheral_oad_onchip in BLE-STACK V3.0.1 (Support for CC2640R2F)(SIMPLELINK-CC2640R2-SDK_1.40.00.45)(20 Jul 2017)

When I call one the following shutdown funciton in my program. The system goes to shutdown.

//Power_shutdown(Power_ENTERING_SHUTDOWN,Power_RESUME);
//Power_shutdown(Power_ENTERING_SHUTDOWN,0);
Power_shutdown(0,0);

I've setup two pins(Board_MYPIN1  and Board_MYPIN2) to wakeup the system. But, I cannot wakeup the system by Board_MYPIN1 (DIO_16).  Board_MYPIN2 (DIO_17) is OK.

What's the reason?

I reviewed "CC13xx, CC26xx SimpleLink™ Wireless MCU Technical Reference Manual", it shows that  DIO_16 & 17 are for JTAG. but they also can be used as GPIO.

I just use 2-Pin cJTAG debugging. so I think I could these two pins as wakeup pins.

Here are my configurations:

CC2640R2_LAUNCHXL.h

......
#define Board_MYPIN1 IOID_16 //problem pin
#define Board_MYPIN2 IOID_17 //it's ok to wakeup
......


CC2640R2_LAUNCHXL.c
......

PIN_Config ButtonTableWakeUp[] = {
Board_MYPIN1 | PIN_GPIO_OUTPUT_DIS | PIN_INPUT_EN | PIN_NOPULL | PINCC26XX_WAKEUP_POSEDGE,//problem pin
Board_MYPIN2 | PIN_GPIO_OUTPUT_DIS | PIN_INPUT_EN | PIN_NOPULL | PINCC26XX_WAKEUP_NEGEDGE,//it's ok to wakeup
PIN_TERMINATE
};

PIN_State Pins;
PIN_Handle hPins;

void BoardPinInit(void)
{
hPins = PIN_open(&Pins, BoardGpioInitTable);
PINCC26XX_setWakeup(ButtonTableWakeUp);
}
......

Best wishes,

Charles