Main Site Documentation

How to reboot EMX and protect the firmware to be dumped in 4.1?


#1

In old version, we can use the following code:
// Reboot the device
SystemManager.Reboot(…);

// protect firmware to be dumped
GHIElectronics.System.SystemManager.ProtectFirmware(true)

Since we upgraded the SDK to 4.1, the SystemManager class is missing and I cannot find a replacement to do these jobs. Does anyone know about this?

Thanks & Best Regards!
Phoenix


#2

Rebooting is in NETMF’s classes. SPOT.Hardware I think, look for PowerState.Reboot(…)

Protecting reading, is under GHIElectronics.NETMF.Configuration.TinyBooter.DisableAccess…


#3

The method Mike suggested accepts soft reboot or hard reboot. Please only soft reboot.


#4

Thanks for you guys. My problem should be solved.

Best Regards!
Phoenix