I have implemented 2 ways to update the system. One is via a file installed on the SD card and the other is by downloading a file from a web server which is then stored on the SD card. In essence, both files will be the same on the SD card, only the method used to add them is different. I have a secondary file that is used to detect a new file to write and this gets deleted after I have detected there is a valid update on the SD card.
I have read through the documentation and looked around here on the web for how to update and each points to the system being in bootloader mode. I have therefore put the following call in my code when I am ready to do the upgrade.
When this gets called, the system reboots and sits in the bootloading state! Not exactly what I was hoping would happen.
What is the process to doing an update from within existing running software?