The invention relates to the technical field of
firmware updating, in particular to an embedded
firmware compilation-free updating method which comprises the following steps: S1,
firmware is divided into a plurality of
independent function modules through a link script, and each function module is allocated to an independent
memory address interval and recorded in a section table; s2, in response to the module replacement instruction, reading an identifier and a version number of a target function module; s3, positioning a target
memory address of the target function module according to the section table, and executing compatibility check; s4, if the compatibility check is passed, writing binary data atoms of the new function module into a target
memory address interval under the protection of a
memory barrier; and S5, updating a module version mark in the section table, and triggering soft restart to enable the new function module to take effect. The firmware is divided into independent modules, the updating efficiency and flexibility of the firmware are improved, real-time loading and replacement of the firmware modules are supported, the flexibility and response speed of the
system are improved, an automatic
rollback mechanism is introduced, and the stability and safety of the
system are guaranteed.