Method and device for updating firmware

The invention relates to a method and device for updating a firmware. The method and the device are used for improving the safety in the firmware updating process. The method comprises the following steps that when the firmware of a first chip needs to be updated, a first partition, used for downloading the firmware of a second chip, in a flash memory of the second chip is identified; the new firmware of the first chip is downloaded into the first region; the new firmware of the first chip is copied to an effective region in the first chip from the first partition. The technical scheme disclosed by the invention has the advantages that the conflict occurring during the simultaneous updating on the firmware of a plurality of chips can be avoided, the safety during the updating on the firmware of the chips is improved, the adoption of additional control logics in the updating process is avoided, and resources of intelligent equipment are saved.