software reset of XDK
응답
17. 2. 13 오전 8:21

Hello,

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

  Alex

0 (0 투표)
RE: software reset of XDK
응답
17. 2. 13 오후 5:42 as a reply to Alexander Zich.

Hello Alexander,

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

+1 (1 투표)
RE: software reset of XDK
응답
17. 2. 14 오전 8:17 as a reply to Franjo Stjepandic.

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.

0 (0 투표)
RE: software reset of XDK
응답
17. 2. 14 오후 3:56 as a reply to Alexander Zich.

Hello Alexander,

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.

Kind regards,
Franjo

0 (0 투표)
RE: software reset of XDK
응답
17. 2. 15 오전 10:21 as a reply to Franjo Stjepandic.

Hello Franjo,

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.

0 (0 투표)
RE: software reset of XDK
응답
17. 2. 15 오후 4:59 as a reply to Alexander Zich.

Hello Alexander,

great to hear that you were able to implement both without any issues.
Please do not hesitate to ask if you have further questions.

Kind regards,
Franjo

0 (0 투표)
RE: software reset of XDK
응답
19. 1. 8 오전 11:03 as a reply to Franjo Stjepandic.
Helloo Franjo I saw your reply about resetting the device. I am completely new to the device can you please guide me how do we find this path you've mentioned in your reply? I would really appreciate the help thank you.
0 (0 투표)
RE: software reset of XDK
응답
19. 1. 8 오후 3:30 as a reply to Syed Asphandyar Ali.
Dear Syed,

First, I would like to welcome you to the XDK community.

Could you please go more into detail about your request?
Are you interested into using a Watchdog implementation in your XDK application?
Otherwise, are you interested in actively restarting your XDK device via the function call NVIC_SystemReset() ?

Kind regards,
Franjo
0 (0 투표)