A way to upgrade device firmware via i2c
A device and firmware technology, applied in the field of upgrading device firmware through I2C, can solve the problems of many main CPU resources, many buses and control lines, and high design cost, and achieve the effect of simplifying the design process, simple connection method and saving design cost.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2019-02-22
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention relates to the technical field of embedded device design, and discloses a method for upgrading device firmware through I2C. Background technique
[0002] IIC, also known as I2C, is Inter-Integrated Circuit, an integrated bus circuit. This bus type was designed by Philips Semiconductors in the early 1980s. The bus consists of two lines: data line (SDA) and clock line (SCL). Multiple IIC slave devices can be connected to one IIC bus, and these slave devices are distinguished by different slave addresses.
[0003] In system design, there is a structure of a single master device and multiple slave devices or modules (hereinafter collectively referred to as slave devices). Among them, the main control device has rich functions and supports multiple management methods; while the function of the slave device is relatively single, and its functions can be realized by using a relatively low-cost ordinary single-chip microcomputer, and these singl...
Examples
Embodiment Construction
[0024] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
[0025] The invention discloses a method for upgrading device firmware through I2C, which specifically includes the following steps: Step 1. Connect N slave devices to a master control device through an I2C bus, and the system of each slave device includes a boot program area , system function program area and system upgrade program area; step 2, when starting from the device, the boot program selects the system function program to be loaded, when the loading is successful, the system function program starts; when the loading fails, wait for the master device to upgrade ; Step 3: After the master...