MOD5213 Serial Update
Posted: Fri Feb 10, 2017 12:26 pm
Hello,
I'm trying to implement serial update of our 5213-based product within our own Windows UI. The product uses a binary protocol, so we have serial update disabled by default to avoid unintended entry to the programming state. To update the 5213 flash from within our application, we do the following:
- stop our normal data collection
- send a binary protocol command that enables serial update in the 5213
- send the FC FC sequence that causes the 5213 to trap into the monitor
- send the S records from the _APP.S19 file
I'm sure that all of this is working correctly because after it completes, if I press the reset button on the device, the 5213 reboots and runs the new application.
My question is why doesn't the new application boot automatically after the last S record is sent? Does anyone know what, exactly, causes the monitor to recognize that the new program is complete and to then reboot? I assumed it was simply the S7 record at the end of the S19 file, but that doesn't seem to be enough.
Thanks,
Joe
I'm trying to implement serial update of our 5213-based product within our own Windows UI. The product uses a binary protocol, so we have serial update disabled by default to avoid unintended entry to the programming state. To update the 5213 flash from within our application, we do the following:
- stop our normal data collection
- send a binary protocol command that enables serial update in the 5213
- send the FC FC sequence that causes the 5213 to trap into the monitor
- send the S records from the _APP.S19 file
I'm sure that all of this is working correctly because after it completes, if I press the reset button on the device, the 5213 reboots and runs the new application.
My question is why doesn't the new application boot automatically after the last S record is sent? Does anyone know what, exactly, causes the monitor to recognize that the new program is complete and to then reboot? I assumed it was simply the S7 record at the end of the S19 file, but that doesn't seem to be enough.
Thanks,
Joe