EMX and IFU

Hi,

Having updated to 4.2, I have been changing my in field update code to work with the new firmware. It all appears to work grand, but one thing I have noticed is after calling


SystemUpdate.FlashAndReset()

, on reset this seems to get detected as a watchdog reset i.e.


        if (Watchdog.LastResetCause == Watchdog.ResetCause.WatchdogReset)
        {
            Debug.Print("Watchdog did Reset");
        }
        else
        {
            Debug.Print("Reset switch or system power");
        }

Is this expected?

Dunno if this is related, but when I do IFU with a G120 and have the watchdog enabled, something during IFU freezes my watchdog reset routine, and the watchdog inevitably trips. It might be best to disable the watchdog (if possible) during IFU. Just my observation.

Hi,

I thought that initially, but I have set my watchdog timeout to 2 minutes - and tested that it does not kick in till 2 minutes of ‘in-activity’ has elapsed.

Upon calling SystemUpdate.FlashAndReset() everything does hang, but only for around 15-20 seconds, so can’t see it being the watchdog kicking in.

I think it is better to stop watchdog before trying IFU,

http://www.ghielectronics.com/community/forum/topic?id=11652&page=2

Hi Dat,

Thanks for the response.

I added in the stopping of the watchdog but it still flags the reset as being initiated by the watchdog. Just to reiterate the software update runs fine, it is more of a curiosity question as to why FlashAndReset() gets apparently mistaken as a watchdog reset? And also to find out if I am the only one experiencing this, in which case maybe I am missing something.

The system uses watchdog internally to reset the device after programming is done.

Thanks Gus, that’s great to know, confirms I’m not doing anything wrong and all running as it should.

Cheers.