The application discloses a code updating method and device of
firmware and
electronic equipment. The method comprises the following steps: obtaining a target code
package from a first cache area, wherein the first cache area is an area obtained by dividing a
storage area of a controller; determining a first position of
firmware original code in the first area and a second position corresponding to the first position in a second area; updating the
firmware original code in the second area corresponding to the second position based on the target code
package; in the case that the firmware original code in the second area is updated, switching to the second position of the second area to continue running and updating the firmware original code in the first area; and in the case that the firmware original code in the first area is updated, switching back to the first area to continue running according to the corresponding position. The application solves the technical problem of low updating reliability when updating the code of the firmware in the related art.