We can unlock arm mcu stm32f051k8 flash memory fuse bit and carry on the ST ARM STM32F051K8 Microcomputer Heximal Replication, and then restore the embedded firmware from microprocessor stm32f051k8;

In addition to the internal peripheral current consumption measured previously (see
Table 31: Peripheral current consumption), the I/Os used by an application also contribute to the current consumption for the sake of extract arm cpu stm32f051k8 source code. When an I/O pin switches, it uses the current from the I/O supply voltage to supply the I/O pin circuitry and to charge/discharge the capacitive load (internal or external) connected to the pin:
ISW =
VDDIOx ´ fSW ´ C
where
ISW is the current sunk by a switching I/O to charge/discharge the capacitive load VDDIOx is the I/O supply voltage
fSW is the I/O switching frequency
C is the total capacitance seen by the I/O pin: C = CINT + CEXT + CS CS is the PCB board capacitance including the pad pin.
The test pin is configured in push-pull output mode and is toggled by software at a fixed frequency.
The current consumption of the on-chip peripherals is given in below Table.

The MCU is placed under the following conditions:
- All I/O pins are in analog mode
- All peripherals are disabled unless otherwise mentioned
- The given value is calculated by measuring the current consumption
- with all peripherals clocked off
- with only one peripheral clocked on
- Ambient operating temperature and supply voltage conditions summarized in Table 17: Voltage characteristics