This invention proposes a
firmware update method for a controller with a master-slave board design, relating to the technical field of controller
firmware updates. It adds a
version identifier and version information to the end of the
interrupt vector table in the
firmware source code, which is simple, convenient, accurate, and universally applicable. It utilizes a large-capacity non-
volatile memory on the
motherboard and introduces a dual
backup mechanism to prevent firmware update failures from causing the controller to be unable to run the RTS firmware. The host computer caches the firmware in the
motherboard's non-
volatile memory, and the slave board pulls the version from the
motherboard's non-
volatile memory, reducing the complexity of the firmware update process. For ease of management, an RTS
package generator is used to
package an RTS firmware
package containing all RTS firmware for both the master and slave boards, and integrity
verification information is added. The master and slave board bootloaders synchronize the RTS
firmware version from the RTS firmware package cached in the non-volatile memory, achieving automatic distribution of RTS firmware between the master and slave boards and ensuring version compatibility.