The invention provides a global replacement type on-
orbit programming method and
system supporting multiple memories. The method comprises the steps that S1, a
software uploading
remote control package is generated; s2, sending an instruction to clear a cache region of the current
software for receiving the uploading
software; s3, uploading the
remote control packet by the uploading software; step S4, verifying all the
remote control packets which are already injected; s5, writing the uploading software in the cache region into the curable storage device according to the configuration condition; s6, FPGA gating operation is executed, and a newly written program is selected and loaded; and S7, the monitoring software loads a program to a memory for execution according to the FPGA gating
signal. According to the method, the program is completely re-injected without interrupting the running of the on-
satellite software, the comparison of new and old version codes is not needed, and the operation is simple and convenient; by adopting a mode of separately managing the pre-
storage area and the uploading area for on-
satellite codes, a storage device where a pre-
storage area program is located is isolated, the pre-
storage area program is guaranteed not to be tampered or damaged, and on-
orbit software is easier and more reliable to change.