4 Replies Latest reply on Jan 10, 2018 6:13 PM by user_26346

    Is there an API call available that can be used to perform a soft reset?

    user_26346

      Is there an API call available that can be used to perform a soft reset? 

      I tried to use bleappfwu_watchdogExpired() from bleappfwu.h, but it is not work in BCM20736S.

      however, it'sOK(success to reset) in the develop board. and it is OK after OTA even if in BCM20736S.

       

       

      After fail to enter the deepsleep mode, I try to force a software reset and ready to enter deepsleep again;

      here's what I used to force a reset:

          bleapputil_cpuIntDisable();

          ble_trace0 (" bleapputil_cpuIntDisable");

          bleapputils_delayUs(500);

          bleappfwu_watchdogExpired(0);

          ble_trace0(" bleappfwu_watchdogExpired");

       

       

      here is the log information: After call  bleappfwu_watchdogExpired(0); BCM20736S hung up, press key can wake up it.

       

       

      09:59:18 - LEDPowerOnOff:0

      09:59:18   TimersKilled

      09:59:18   AppTimer(adv, conn) stopped: 1

      09:59:18   noAdv

      09:59:18 - app_enter_hidoff 

      09:59:18 - app_abort_hidoff 

      09:59:18   bleprofile_queryPowersave(POWEROFF): 00000001

      09:59:18   bleprofile_queryPowersave(POWEROFF): 00000001

      09:59:18   abortHidoff!!!

      09:59:18   Stop Power Save

      09:59:18   Fine Timer(50 ms, 20/sec)

      09:59:18   Fine TImer tick 4

      09:59:18   Normal Timer(1 s, 80 tick)

      09:59:18   AppTimer(adv, conn) stopped: 1

      09:59:18   BLE_high_un_adv:timer(0)

      09:59:20   AppTimer(adv, conn) stopped: 1

      09:59:20   noAdv

      09:59:21 - _timer_1s

      09:59:22 - _timer_1s

      09:59:23 - _timer_1s

      09:59:23 -  bleapputil_cpuIntDisable