We are using basically identical code to the guide to gain IFU features on a G120:
Our process is:
- Wipe and setup using G120 Updater to 4.2 from package “NETMF and Gadgeteer Package 2013 R2”
- Use MFDeploy to write our hex file
Our code then runs and we check a USB drive for an app.hex file, only upgrading the Deployment flash area.
First flash upgrade always works. Flash is upgraded and new code runs.
On the second attempt we can monitor (using MFDeploy to view the Debug.Print output) that the USB image is being written ok to SystemUpdate. But when FlashAndReset() is called, it sits there for a long time before resets and not writing the new image.