CPC G06F 9/4416 (2013.01) [G06F 9/4406 (2013.01); G06F 9/4411 (2013.01)] | 6 Claims |
1. A method for controlling an electronic device, the electronic device comprising a processor, a read-only memory (ROM), a random access memory (RAM), an image sensor control (ISC) circuit, an image signal processor (ISP) and a communication interface circuit, the method comprising:
in response to the electronic device being powered up, executing a first program code in the ROM by the processor to initialize the communication interface circuit;
transmitting identification information to an external device through the communication interface circuit;
receiving, through the communication interface circuit, a second program code that the external device sends in response to the identification information so as to store the second program code to the RAM;
executing the second program code by the processor to initialize the ISC circuit and the ISP,
wherein the second program code comprises a firmware code and a software code, the firmware code is used to initialize the ISC circuit and the ISP, and the software code is used to activate an operating system, and
the method further comprising:
before receiving the second program code, receiving, through the communication interface circuit, a third program code that the external device sends so as to store the third program code to a memory in the processor; and
executing the third program code by the processor to initialize the RAM.
|