Main Site Documentation

Force EMX to Reboot


#1

Dear all,
I need to force my EMX to reboot in case of fatal errors. It looks like I have found the function to be called but I am not able to reache the expected results.

Could you please help?

To force reboot I have used the following code


PowerState.RebootDevice(true);

I looks like when that instruction is reached, the EMX reboots but then stucks: from Output I can see

and then nothing happens. :frowning:

Does anybody have an idea if I am doing anything wrong?

Thanks in advance!


#2

Are you doing this while debugging? You can’t have USB debugger attached to the device while reseting.


#3

Right, i was doing that while debugging… me newbie…
now it’s working fine!

Thanks!