This paper introduces a highly reliable chip code upgrade method,which is applied to micro-controller units(MCU)or system on chip(SoC).The key point is to divide a dedicated status recording area in the flash memory to synchronously record the status information of code upgrades.When the code upgrade terminates abnormally,the flash writes real-time status information to the status recording area.When the upgrade is resumed,the system reads the information in the status record area and continues the upgrade from the last failure point.With the method,it improves the efficiency and reliability during the code upgrade.