Part Number: CC2340R5-Q1
Other Parts Discussed in Thread: CC2340R5,
Hello TI Team.
Added the following code to the end of Func :"App_StackInitDoneHandler" in the app_main.c file as shown below. Also, a callback function has been added.
When I check the operation, after the 10th callback function is executed, the loop is broken and the port "CONFIG_GPIO_1"=Low is not executed.
(In the debugger, PC is missing)
What is the cause and what is the solution?

CH1:CONFIG_GPIO_0, CH2:CONFIG_GPIO_1, CH3:Current Consumption
・Add code
==============================================
LGPTimerLPF3_Params_init(¶ms);
params.hwiCallbackFxn = LGPT0_Callback;
params.prescalerDiv = 48-1;
lgptHandle = LGPTimerLPF3_open(CONFIG_LGPTIMER_0, ¶ms);
lu32_cnt = 10000 - 1;
LGPTimerLPF3_setInitialCounterTarget(lgptHandle, lu32_cnt, true);
LGPTimerLPF3_enableInterrupt(lgptHandle, LGPTimerLPF3_INT_TGT);
LGPTimerLPF3_start(lgptHandle, LGPTimerLPF3_CTL_MODE_UP_PER);
GPIO_toggle(CONFIG_GPIO_1);
while(1) {
if (gu32_hfosc_counter >= 10) {
break;
}
}
GPIO_toggle(CONFIG_GPIO_1);
==============================================
・callback function
==============================================
void LGPT0_Callback(LGPTimerLPF3_Handle lgptHandle, LGPTimerLPF3_IntMask interruptMask)
{
GPIO_toggle(CONFIG_GPIO_0);
++gu32_hfosc_counter;
if (gu32_hfosc_counter >= 10) {
LGPTimerLPF3_disableInterrupt (lgptHandle, LGPTimerLPF3_INT_TGT);
LGPTimerLPF3_stop(lgptHandle);
LGPTimerLPF3_close(lgptHandle);
}
}
==============================================
SDK:simplelink_lowpower_f3_sdk_7_20_01_10
BaseSW:basic_ble_LP_EM_CC2340R5_freertos_ticlang
Regards.

