The invention discloses a
software design method for supporting OTA
upgrade of a thermal management controller of an
electric vehicle, which comprises the following steps of: firstly, electrifying / resetting an MCU, automatically loading a stack pointer and a program
entry point by a hardware circuit, waiting for
frequency stabilization and release of the MCU, providing takt for a
bus, latching MCU start configuration, entering the program
entry point x (x = A, B... N), reading an option
byte [0] of an internal reserved memory, and starting the program
entry point x (x = A, B... N); judging whether the partition number of the current bootstrap program is consistent with the option bytes or not, if not, skipping to a target partition number to re-enter a program entry point, if yes, entering a main program main (), determining program updating states (including resetting, updating, updating completion and updating failure), MCU hardware drive initialization and
system parameter initialization according to the option
byte partition number, and if not, executing the next step; and finally, entering a
transaction processing cycle, and feeding a watchdog. The method is high in flashing speed, high in updating degree and good in safety, the using intelligence and convenience of the
electric vehicle can be remarkably improved, and the vehicle using experience is guaranteed.