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.
SDK:simplelink_cc13xx_cc26xx_sdk_6_10_00_29
使用TI example: watchdog_CC1352R1_LAUNCHXL_tirtos_ccs
當用CCS load完program後, 按button-0讓watchdog reset
此時system會reset但是不會load program(LED 熄滅, 不會閃爍).
如果是用lauchpad RESET button, reset一次之後,
之後每次按button-0都會watchdog reset而且也會重新load program(LED閃爍)
請問這是CCS設定的問題嗎? 該如何解決?
範列中如下:
/*
* ======== watchdogCallback ========
*/
void watchdogCallback(uintptr_t watchdogHandle)
{
/*
* If the Watchdog Non-Maskable Interrupt (NMI) is called,
* loop until the device resets. Some devices will invoke
* this callback upon watchdog expiration while others will
* reset. See the device specific watchdog driver documentation
* for your device.
*/
while (1) {}
}
/*
* ======== gpioButtonIsr ========
*/
void gpioButtonIsr(uint_least8_t index)
{
GPIO_write(CONFIG_GPIO_LED_0, CONFIG_GPIO_LED_ON);
/*
* Simulate the application being stuck in an ISR. This ISR can be
* preempted by the watchdog Non-Maskable Interrupt (NMI).
*/
while (1) {}
}