Home/Support/Support Forum/Dynamic C device reboot/restart Rabbit BL4S200
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Dynamic C device reboot/restart Rabbit BL4S200

0 votes
Hi there,

I am not finding any answers in the documentation or Google search on this topic. I want to know if there is a Dynamic C API call to soft reboot the board?

I am trying to debug why some of our boards are rebooting randomly, and trying to track which method call might be triggering that. I am somewhat new to the Rabbit/Dynamic C API.

I appreciate any help you can offer.
asked Apr 14, 2020 in Rabbit Software by zrebstock1 New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
If boards are rebooting randomly, it's probably due to a crash in your code that will be difficult to track down. If you want to intentionally reboot, you can call exit(0).

If you run your code in the debugger, it might stop execution before crashing and you might be able to determine what led up to the crash. You can also place printf() statements in your code so you have a log of what was happening before the reboot. It's even possible to enable those printfs() on the programming port for release builds (see Samples/STDIO_SERIAL.C).

Without a known "steps to reproduce" the reboots, you'll have a hard time tracking down the root cause. My recommendation would be to write down a list of things you did leading up to any random reboot and try to look for a pattern. If you're lucky, you can come up with those "steps to reproduce" and then start single stepping the debugger on the last step that typically results in a reboot.
answered Apr 14, 2020 by TomCollins Veteran of the Digi Community (2,083 points)