Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1427 Posts: 7608
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 81 Posts: 350
I would like to reset the XDK in case too many errors happen in the software. Just like a 'reboot' command in Linux.
Is there a command in the XDK platform for it? I know there is a watchdog which does something similar.
Thanks in advance
there is indeed a reboot command NVIC_SystemReset() which resets the complete configuration on the XDK. This reset command is linked to the reboot and reset functionality of the XDK that you can trigger via the XDK Workbench. It is implemented in URU_usbResetUtility_cc.c. You can find the implementation file by navigating via the following path:
SDK > xdk110 > Plattform > Utils > source > URU_usbResetUtility
I recommend if you are using the NVIC_SystemReset() command to trigger an XDK reset first to get familiar with the particular implementation of it in URU_usbResetUtility_cc.c.
Further the watchdog functionality also allows to reboot the XDK at certain defined cases. A concrete implementation of the watchdog functionality is available in the Bosch XDK Portal or MQTT Paho demo. For more information about the watchdog functionality you can also refer to the interface WDG_watchdog_ih.h at the following path:
SDK > xdk110 > Plattform > Peripherals > include
I recommend to use the watchdog functionality to reboot the XDK in certain defined time intervals, because it is very simple to implement.
Please tell me if this is helpful and do not hesitate to ask if you have further questions.
Kind regards, Franjo
Thanks for the quick answer. It sounds good and I will test it when we add some new functionality to the XDKs next time. Currently we just let them create data in our office.
I am glad to help.
I would appreciate if you keep me posted about your implementation progress.
Do not hesitate to ask if you have further questions.
we had problems with crashes after several hours. So I had to implement the reset today.
I tried both methods, and it looks like they both work fine. Watchdog restarts after 4 minutes of unsuccesful upload.
Additionally we can restart after a certain number of seconds of system uptime.
great to hear that you were able to implement both without any issues. Please do not hesitate to ask if you have further questions.