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.

LAUNCHXL-CC1352R1: Watchdog reset system後, 不會重新load program

Part Number: LAUNCHXL-CC1352R1

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設定的問題嗎? 該如何解決?

  • 你在button-0是如何实现watchdog reset的,调用了哪个API

  • 另外注意使用API进行软件复位时不能连接xds110,连接时可能不会正常复位,尝试拔掉下载器再测试

  • 範列中如下:

    /*
     *  ======== 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) {}
    }

  • 在CCS load完之後, 經過power cycle, 就能正常運作, 也是因為這個原因嗎?

  • "使用API进行软件复位时不能连接xds110,连接时可能不会正常复位"

    請問有任何walkaround的設定或作法嗎?

    還是只有等到下一版本的SDK才會解決?