——From DWIN Forum
When developing my own project, I encountered the problem of inconvenient file upgrade, so an online upgrade solution was designed, which can effectively solve the following problems:
1. When the product has issued a bug that needs to be fixed, it cannot be fixed online.
2. Unable to determine the old and new versions, repeated upgrades were performed when the data files did not change.
3. When upgrading in batches, each device needs to be inserted into the card separately or upgraded with the upper computer of the computer.
1. Design ideas
1) Boot loading the upgrade program, there is always a piece of code for program loading in the system, and the code is executed at startup. Based on the Nor Flash version number difference, it is judged whether to run the existing version of the program or download a new program from the host.
2) When the DWIN screen is powered on and reset, the on-chip loader is executed first, and the current version number of each data file is stored in the Nor Flash address as the basis for the next judgment whether the data file needs to be updated. (Note that the current version number of the data file must be saved after the data file is upgraded successfully).
3) The main control board judges whether Diwen Screen needs to download a new program according to the difference of the version number. If the local version number is different from the last updated version number, the main control board sends a request to update the program to the Divin screen, and the kernel file is sent to theDWIN screen by switching the SD card signal line through the relay.
4) DWIN screen receives new application content and writes it into external Flash after final confirmation. When the update program is executed, reset the DGUS system and execute the program in the on-chip RAM. If reset again, the above load execution process will be repeated. How many different version numbers are here, how many files will be updated to avoid repeated updates of the same version.
2.Design block diagram
Post time: Aug-30-2022