CN102063318A - Upgrading method of power supply MCU (Micro Control Unit) - Google Patents

Upgrading method of power supply MCU (Micro Control Unit) Download PDF

Info

Publication number
CN102063318A
CN102063318A CN2010106016147A CN201010601614A CN102063318A CN 102063318 A CN102063318 A CN 102063318A CN 2010106016147 A CN2010106016147 A CN 2010106016147A CN 201010601614 A CN201010601614 A CN 201010601614A CN 102063318 A CN102063318 A CN 102063318A
Authority
CN
China
Prior art keywords
mcu
upgrade
power supply
software
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010106016147A
Other languages
Chinese (zh)
Inventor
韩光辉
李效坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Corp
TCL Technology Electronics Huizhou Co Ltd
TCL Tongli Electronics Huizhou Co Ltd
Original Assignee
TCL Corp
TCL Tongli Electronics Huizhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Corp, TCL Tongli Electronics Huizhou Co Ltd filed Critical TCL Corp
Priority to CN2010106016147A priority Critical patent/CN102063318A/en
Publication of CN102063318A publication Critical patent/CN102063318A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides an upgrading method of a power supply MCU (Micro Control Unit), which is suitable for the technical field of communication. The upgrading method of the power supply MCU comprises the following steps: S1, the version information of MCU upgrade software and the version information of current MCU software are acquired; S2, whether upgrade is needed or not is judged, and if the upgrade is needed, a step S3 is carried out; S3, the power supply MCU sends an upgrade request, restarts a BOOT and sends an upgrade confirmation signal; S4, a main chip sends the upgrade software to the power supply MCU; and S5, the power supply MCU receives and burns data. The upgrading method can be used for completing the upgrade of an MCU chip by utilizing the communication between the main chip and a power supply MCU chip and does not need to recall and rework when the software of the MCU chip goes wrong, thereby effectively reducing the after-sale maintenance cost.

Description

The upgrade method of a kind of MCU that powers
Technical field
The invention belongs to communication technique field, relate in particular to the upgrade method of a kind of MCU of power supply.
Background technology
In order to realize real low energy consumption, just true idle function, household electrical appliances such as present DVD/BD/HTS/TV generally all have the MCU chip of a MPEG chip (master chip) and a control MPEG chip power supply.Two chips all have the software of oneself, but the software of MCU chip all solidifies, in case MCU is posted after circuit board, software can't be upgraded, and its main cause is that the ROM of MCU chip is less, and ROMPaq is generally complicated, complicated process is written among the less ROM, needs special staff and replication tool, this just makes cost up, so the seldom upgradeable MCU chip of industry can not guarantee its security even have.This in case software is out of joint in the MCU chip, will recalls and do over again after coming into the market with regard to the machine that causes adopting power supply MCU chip, and this can increase the after-sales service cost greatly.
Therefore, be necessary to provide the upgrade method of a kind of MCU of power supply.
Summary of the invention
The object of the present invention is to provide the upgrade method of a kind of MCU of power supply, it is out of joint to be intended to solve in the prior art in the MCU chip software, need recall and do over again, and increases the problem of after-sales service cost.
The present invention is achieved in that the upgrade method of a kind of MCU of power supply, comprising: step S1, obtain the version information of MCU upgrade software and the version information of current MCU software; Step S2 need to judge whether upgrading, as need upgrading then carrying out step S3; Step S3, MCU sends upgrade request, and restarts BOOT, sends the upgrading confirmation signal; Step S4, master chip send upgrade software to MCU; Step S5, MCU receives and burning data.
Among the step S1, master chip obtains its version information by search in network or external memory device, parsing and the upgradeable MCU program file of verification, obtains the version information of current MCU software simultaneously; Master chip is the MPEG chip.
Among the step S2,, compare according to current MCU version number that resolves among the step S1 and the MCU software version number that searches, if the MCU software version that searches is higher than current software version, then upgrading; Judge that perhaps whether current application program is normal, if undesired, then upgrades.
Among the step S3, MCU sends upgrade request by communications protocol to master chip, and changes MCU self over to upgrade mode, sends the upgrading confirmation signal simultaneously to master chip.
Among the step S4, master chip sends effective upgrade data piecemeal to MCU after receiving the upgrading confirmation signal.
Comprise memory device in the MCU chip of this method, memory device comprises three districts: Boot district, Flag district and App district, Boot district storage Boot boot; The Flag district is used for the storage mark position; The program that the App district receives and storage need be upgraded.
Among the step S5, MCU receives data that data and burning receive to the App district, controls master chip then and MCU is restarted, and after restarting, master chip checks at first whether the MCU program work is correct, incorrectly then points out the user MCU software of upgrading again once more.
In the memory device of the MCU that this method relates to, Boot and App are two independently engineerings, shared same lkr partitioned file; The MCU software upgrading App that only upgrades; The upgrading mode that adopts is: master chip reads the APP.hex file of External memory equipment or network, resolves, and issues Boot among the MCU; Communication modes: SPI or I2C or Uart.
By said method, utilize the communication between master chip and the power supply MCU chip, can finish the upgrading of MCU chip, when the MCU chip software goes wrong, need not to recall and do over again, effectively reduce the after-sales service cost.
Description of drawings
Fig. 1 is the structural representation of MCU chip and master chip;
Fig. 2 is a Flash subregion synoptic diagram;
Fig. 3 is the process flow diagram of upgrading MCU.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
As shown in Figure 1, be the structural representation of MCU chip and master chip.The MCU chip is to the master chip control of powering, to realize true idle function; Master chip is the MPEG chip of host computer normally, and itself and MCU carry out communication by simple serial communication protocol, as agreements such as SPI, I2C.
Comprise memory device in the MCU chip, as a rule, memory device is Flash, and the concrete subregion of Flash comprises three districts as shown in Figure 2 among the Flash: Boot district, Flag district and App district.Boot district storage Boot boot; The Flag district is used for the storage mark position; The program that the App district receives and storage need be upgraded, normally application program.
With the MCU chip with 128kFlash is that example is carried out the subregion explanation, and among the Flash of 128K, address space range is: 0x00000-0x1FFFF, 0x00000-0x0FFF are the Boot districts; 0x1000-0x107F is the Flag district; 0x1080-0x1FFFF is the App district.APP is an application program, and Boot and Flag play guiding function, upgrading if desired, and Boot can start the App district that communication with the Mpeg chip receives the App program and writes Flash.Flag is used for being used to represent whether the application program in the current App of being stored in district is normal in the storage mark position, whether needs upgrading.
Based on hardware configuration shown in Figure 1, the upgrading MCU process flow diagram as shown in Figure 3, this flow process specifically comprises the steps:
Step S1 obtains the version information of MCU upgrade software and the version information of current MCU software;
After the user triggers upgrading, master chip, i.e. MPEG chip, by at network or external memory device, as USB flash disk, CD-ROM drive etc., the upgradeable MCU program file of search, parsing and verification obtains its version information, obtains the version information of current MCU software simultaneously;
Step S2 need to judge whether upgrading, as need upgrading then carrying out step S3;
According to current MCU version number that resolves among the step S1 and the MCU software version number that searches, compare, if the MCU software version that searches is higher than current software version, then upgrading; Perhaps, judge that whether current application program is normal, if undesired, then upgrades according to zone bit in the Flag storage area;
Step S3, MCU sends upgrade request, and restarts BOOT, sends the upgrading confirmation signal;
MCU sends upgrade request by communications protocol to master chip, changes oneself over to upgrade mode, promptly restarts to enter BOOT, sends the upgrading confirmation signal simultaneously to master chip;
Step S4, master chip send upgrade software to MCU;
Master chip sends effective upgrade data subdividing to MCU after receiving the upgrading confirmation signal;
Step S5, MCU receives and burning data.
MCU receives the data of data and burning reception to the App district, control master chip then and MCU is restarted, after restarting, master chip checks at first whether the MCU program work is correct, incorrect (i.e. upgrading failure) then points out the user MCU software of upgrading again once more, and be normal to guarantee system works.
In escalation process, have following problem to note: BOOT and APP are two independently engineerings in fact, can be together with a lkr partitioned file, and BOOT is just in the BOOT district like this, and APP is just in the APP district.Do not disturb mutually; Each USB/DISC upgrading only upgrading APP; The upgrading mode that adopts: master chip reads the APP.hex file of USB/DISC the inside, resolve, and form is by appointment issued the BOOT among the MCU; BD/MCU communication modes: SPI/I2C/Uart.
By said method, utilize the communication between master chip and the power supply MCU chip, can finish the upgrading of MCU chip, when the MCU chip software goes wrong, need not to recall and do over again, effectively reduce the after-sales service cost.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. the upgrade method of the MCU that powers comprises:
Step S1 obtains the version information of MCU upgrade software and the version information of current MCU software;
Step S2 need to judge whether upgrading, as need upgrading then carrying out step S3;
Step S3, MCU sends upgrade request, and restarts BOOT, sends the upgrading confirmation signal;
Step S4, master chip send upgrade software to MCU;
Step S5, MCU receives and burning data.
2. the upgrade method of power supply MCU according to claim 1, it is characterized in that among the step S1, master chip is by search in network or external memory device, parsing and the upgradeable MCU program file of verification, obtain its version information, obtain the version information of current MCU software simultaneously.
3. the upgrade method of power supply MCU according to claim 2 is characterized in that master chip is the MPEG chip.
4. the upgrade method of power supply MCU according to claim 2 is characterized in that, among the step S2, according to current MCU version number that resolves among the step S1 and the MCU software version number that searches, compare, if the MCU software version that searches is higher than current software version, then upgrading; Judge that perhaps whether current application program is normal, if undesired, then upgrades.
5. the upgrade method of power supply MCU according to claim 1 is characterized in that among the step S3, MCU sends upgrade request by communications protocol to master chip, and changes MCU self over to upgrade mode, sends the upgrading confirmation signal simultaneously to master chip.
6. the upgrade method of power supply MCU according to claim 1 is characterized in that, among the step S4, master chip sends effective upgrade data piecemeal to MCU after receiving the upgrading confirmation signal.
7. the upgrade method of power supply MCU according to claim 1 is characterized in that comprise memory device in the MCU chip, memory device comprises three districts: Boot district, Flag district and App district, Boot district storage Boot boot; The Flag district is used for the storage mark position; The program that the App district receives and storage need be upgraded.
8. the upgrade method of power supply MCU according to claim 7, it is characterized in that, among the step S5, MCU receives the data of data and burning reception to the App district, control master chip then and MCU is restarted, after restarting, master chip checks at first whether the MCU program work is correct, incorrectly then points out the user MCU software of upgrading again once more.
9. the upgrade method of power supply MCU according to claim 7 is characterized in that in the memory device of MCU, Boot and App are two independently engineerings, shared same lkr partitioned file; The MCU software upgrading App that only upgrades; The upgrading mode that adopts is: master chip reads the APP.hex file of External memory equipment or network, resolves, and issues Boot among the MCU; Communication modes: SPI or I2C or Uart.
CN2010106016147A 2010-12-22 2010-12-22 Upgrading method of power supply MCU (Micro Control Unit) Pending CN102063318A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010106016147A CN102063318A (en) 2010-12-22 2010-12-22 Upgrading method of power supply MCU (Micro Control Unit)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010106016147A CN102063318A (en) 2010-12-22 2010-12-22 Upgrading method of power supply MCU (Micro Control Unit)

Publications (1)

Publication Number Publication Date
CN102063318A true CN102063318A (en) 2011-05-18

Family

ID=43998605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010106016147A Pending CN102063318A (en) 2010-12-22 2010-12-22 Upgrading method of power supply MCU (Micro Control Unit)

Country Status (1)

Country Link
CN (1) CN102063318A (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298526A (en) * 2011-06-08 2011-12-28 厦门雅迅网络股份有限公司 Mechanism for upgrading programs of peripheral equipment based on single chips without external extended memories
CN102508732A (en) * 2011-10-25 2012-06-20 深圳芯邦科技股份有限公司 Method and device for improving one-time programmable memory use performance
CN103135996A (en) * 2011-11-23 2013-06-05 上海博泰悦臻网络技术服务有限公司 Vehicle-mounted equipment and program document refresh method thereof
CN103309717A (en) * 2013-07-01 2013-09-18 深圳市元征科技股份有限公司 Controlling method and device for entering DOWNLOAD storage area
CN103870305A (en) * 2014-02-19 2014-06-18 江苏天宝汽车电子有限公司 Software upgrading method of vehicle-mounted sound box with USB (Universal Serial Bus) interface/memory card interface
CN105760165A (en) * 2016-02-22 2016-07-13 深圳威迈斯电源有限公司 MCU self-backup loading and refreshing method
CN105786541A (en) * 2014-12-23 2016-07-20 Tcl通力电子(惠州)有限公司 Upgrade method and system based on broadcast signal
CN106855815A (en) * 2015-12-09 2017-06-16 株式会社理光 Equipment management device, equipment management system and verification method
CN107037757A (en) * 2017-04-17 2017-08-11 浙江威星智能仪表股份有限公司 A kind of BootLoader programme upgrade methods based on photoelectricity transmission
CN107894900A (en) * 2017-12-06 2018-04-10 郑州云海信息技术有限公司 A kind of method and system of MCU upgradings
CN108572848A (en) * 2018-06-26 2018-09-25 深圳市未来感知科技有限公司 The bottom firmware on line upgrading method, apparatus and storage medium of interactive system
US10318270B2 (en) 2015-09-24 2019-06-11 Guangdong Oppo Mobile Telecommunications Corp, Ltd. Method for upgrading firmware of adapter, apparatus, and system thereof
CN110162321A (en) * 2019-05-06 2019-08-23 晶晨半导体(上海)股份有限公司 A kind of update method of bootstrap loader
CN110858147A (en) * 2018-08-24 2020-03-03 深圳市优必选科技有限公司 MCU information acquisition method and terminal equipment
CN111459519A (en) * 2020-03-30 2020-07-28 北京经纬恒润科技有限公司 MCU upgrading method and device
CN111831309A (en) * 2020-07-16 2020-10-27 深圳市朗科智能电气股份有限公司 Upgrading method, device, equipment and medium for multiple MCUs (micro control units) in Wifi (wireless fidelity) of Internet of things
CN111857785A (en) * 2019-04-29 2020-10-30 深圳市优必选科技有限公司 MCU starting method and device and terminal equipment
CN111930408A (en) * 2020-06-29 2020-11-13 东风电驱动系统有限公司 Software upgrading method
CN112114193A (en) * 2020-07-30 2020-12-22 宁波三星医疗电气股份有限公司 Method for upgrading module terminal metering core without losing electric quantity
CN116610347A (en) * 2023-05-23 2023-08-18 润芯微科技(江苏)有限公司 Method for upgrading vehicle-mounted chip by using USB flash disk

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1598772A (en) * 2004-08-31 2005-03-23 四川长虹电器股份有限公司 Program updating method of single chip processor
KR20070015704A (en) * 2005-08-01 2007-02-06 양재우 Method for upgrading software mcu
CN101196822A (en) * 2007-07-02 2008-06-11 深圳创维-Rgb电子有限公司 Code upgrading device, method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1598772A (en) * 2004-08-31 2005-03-23 四川长虹电器股份有限公司 Program updating method of single chip processor
KR20070015704A (en) * 2005-08-01 2007-02-06 양재우 Method for upgrading software mcu
CN101196822A (en) * 2007-07-02 2008-06-11 深圳创维-Rgb电子有限公司 Code upgrading device, method and system

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298526A (en) * 2011-06-08 2011-12-28 厦门雅迅网络股份有限公司 Mechanism for upgrading programs of peripheral equipment based on single chips without external extended memories
CN102298526B (en) * 2011-06-08 2017-02-08 厦门雅迅网络股份有限公司 Method for upgrading programs of peripheral equipment based on single chips without external extended memories
CN102508732A (en) * 2011-10-25 2012-06-20 深圳芯邦科技股份有限公司 Method and device for improving one-time programmable memory use performance
CN102508732B (en) * 2011-10-25 2015-08-19 深圳芯邦科技股份有限公司 Improve method and the device of disposable programmable memory usability
CN103135996A (en) * 2011-11-23 2013-06-05 上海博泰悦臻网络技术服务有限公司 Vehicle-mounted equipment and program document refresh method thereof
CN103309717A (en) * 2013-07-01 2013-09-18 深圳市元征科技股份有限公司 Controlling method and device for entering DOWNLOAD storage area
CN103309717B (en) * 2013-07-01 2016-06-15 深圳市元征科技股份有限公司 A kind of control method entering DOWNLOAD storage area and device
CN103870305A (en) * 2014-02-19 2014-06-18 江苏天宝汽车电子有限公司 Software upgrading method of vehicle-mounted sound box with USB (Universal Serial Bus) interface/memory card interface
CN105786541A (en) * 2014-12-23 2016-07-20 Tcl通力电子(惠州)有限公司 Upgrade method and system based on broadcast signal
US10318270B2 (en) 2015-09-24 2019-06-11 Guangdong Oppo Mobile Telecommunications Corp, Ltd. Method for upgrading firmware of adapter, apparatus, and system thereof
CN106855815A (en) * 2015-12-09 2017-06-16 株式会社理光 Equipment management device, equipment management system and verification method
CN106855815B (en) * 2015-12-09 2020-05-19 株式会社理光 Device management apparatus, device management system, and verification method
CN105760165A (en) * 2016-02-22 2016-07-13 深圳威迈斯电源有限公司 MCU self-backup loading and refreshing method
CN105760165B (en) * 2016-02-22 2019-09-06 深圳威迈斯新能源股份有限公司 A kind of method that self backup load of MCU refreshes
CN107037757A (en) * 2017-04-17 2017-08-11 浙江威星智能仪表股份有限公司 A kind of BootLoader programme upgrade methods based on photoelectricity transmission
CN107894900A (en) * 2017-12-06 2018-04-10 郑州云海信息技术有限公司 A kind of method and system of MCU upgradings
CN108572848A (en) * 2018-06-26 2018-09-25 深圳市未来感知科技有限公司 The bottom firmware on line upgrading method, apparatus and storage medium of interactive system
CN110858147B (en) * 2018-08-24 2023-12-29 深圳市优必选科技有限公司 MCU information acquisition method and terminal equipment
CN110858147A (en) * 2018-08-24 2020-03-03 深圳市优必选科技有限公司 MCU information acquisition method and terminal equipment
CN111857785A (en) * 2019-04-29 2020-10-30 深圳市优必选科技有限公司 MCU starting method and device and terminal equipment
CN111857785B (en) * 2019-04-29 2023-06-09 深圳市优必选科技有限公司 MCU starting method and device and terminal equipment
CN110162321A (en) * 2019-05-06 2019-08-23 晶晨半导体(上海)股份有限公司 A kind of update method of bootstrap loader
CN111459519A (en) * 2020-03-30 2020-07-28 北京经纬恒润科技有限公司 MCU upgrading method and device
CN111930408A (en) * 2020-06-29 2020-11-13 东风电驱动系统有限公司 Software upgrading method
CN111831309A (en) * 2020-07-16 2020-10-27 深圳市朗科智能电气股份有限公司 Upgrading method, device, equipment and medium for multiple MCUs (micro control units) in Wifi (wireless fidelity) of Internet of things
CN112114193A (en) * 2020-07-30 2020-12-22 宁波三星医疗电气股份有限公司 Method for upgrading module terminal metering core without losing electric quantity
CN112114193B (en) * 2020-07-30 2022-06-03 宁波三星医疗电气股份有限公司 Method for metering single chip microcomputer power loss prevention through upgrading module terminal
CN116610347A (en) * 2023-05-23 2023-08-18 润芯微科技(江苏)有限公司 Method for upgrading vehicle-mounted chip by using USB flash disk
CN116610347B (en) * 2023-05-23 2024-03-08 润芯微科技(江苏)有限公司 Method for upgrading vehicle-mounted chip by using USB flash disk

Similar Documents

Publication Publication Date Title
CN102063318A (en) Upgrading method of power supply MCU (Micro Control Unit)
US8856772B2 (en) Server and firmware updating method
CN105354070A (en) Method for upgrading equipment firmware through I2C
US20120272226A1 (en) Control panel and firmware updating method
CN101909366B (en) Wireless local area network WLAN device and WLAN adapter thereof
CN102567135B (en) Refreshing/recovering method and electronic equipment
CN101373433A (en) Method for updating BIOS and computer and system using the same
US9219339B2 (en) Computer host power management system having extension cord sockets
CN102880527B (en) Data recovery method of baseboard management controller
CN103744708A (en) Method of fixing disk device names in Linux operating system
CN103823769A (en) Computer system and data recovery method
CN104424048A (en) Data storage method and equipment
CN104503796A (en) IAP (Internet Access Provider) based configurable full-network remote node firmware upgrading method
CN1992611B (en) Mobile computing device and method for receiving data packet thereof
CN105045599A (en) Television and computer integrated machine and method for realizing remote startup and shutdown control of same
CN103176582A (en) Power supply sequential control device and adjusting method for power supply time sequence delay time
CN104750516A (en) Upgrading method for terminal equipment operating system
CN107015622B (en) Spark cluster power-off self-protection and incoming call self-starting method
WO2021018208A1 (en) Firmware upgrade method and apparatus, electronic device, and storage medium
US10007529B2 (en) Data terminal running mode switching method, device, and data terminal
CN105335166A (en) System of embedded device and remote upgrading method of embedded device
CN102833079A (en) Method and device for preventing over-supply of pluggable power supply
CN102131120B (en) Set top box starting method and system
CN105634635A (en) Real-time clock (RTC) sharing method, device and system
CN101464814A (en) Embedded system and its implementing method, and embedded equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110518