Other Parts Discussed in Thread: CC2650, LAUNCHXL-CC2650
Tool/software: TI-RTOS
I am using TI-RTOS
I want to reset the chip once button is pressed. Please see the example code below, this code turns on the LED for a second but after that it enters into unknown state where it stops all functions (including advertisement, interrupt etc) and I have to give hard reset to bring it back to the normal function.
Example code:
if (events & SBP_BTN_EVT) {
events &= ~SBP_BTN_EVT; //clear event
PIN_setOutputValue(hSbpPins,LED1, Board_LED_ON);
Task_sleep(1000 * (1000 / Clock_tickPeriod));
HWREG( AON_SYSCTL_BASE + AON_SYSCTL_O_RESETCTL ) |= AON_SYSCTL_RESETCTL_SYSRESET_M;
}