CN110333900A - A method of BOOT in upgrading single-chip microcontroller memory - Google Patents

A method of BOOT in upgrading single-chip microcontroller memory Download PDF

Info

Publication number
CN110333900A
CN110333900A CN201910581093.4A CN201910581093A CN110333900A CN 110333900 A CN110333900 A CN 110333900A CN 201910581093 A CN201910581093 A CN 201910581093A CN 110333900 A CN110333900 A CN 110333900A
Authority
CN
China
Prior art keywords
boot
chip microcontroller
upgrading
microcontroller memory
host computer
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.)
Withdrawn
Application number
CN201910581093.4A
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.)
NEOVOLTAIC ENERGY NANTONG CO Ltd
Original Assignee
NEOVOLTAIC ENERGY NANTONG 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 NEOVOLTAIC ENERGY NANTONG CO Ltd filed Critical NEOVOLTAIC ENERGY NANTONG CO Ltd
Priority to CN201910581093.4A priority Critical patent/CN110333900A/en
Publication of CN110333900A publication Critical patent/CN110333900A/en
Priority to PCT/CN2019/126609 priority patent/WO2021000535A1/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses the methods of BOOT in upgrading single-chip microcontroller memory a kind of, it realizes and is not necessarily to the tedious steps such as emulator, unpacking also scalable bottom BOOT, and upgrade corrupt data or upgrading interruption can also recall original state, keep bottom BOOT upgrading more convenient, it is more quick, reduce cost.

Description

A method of BOOT in upgrading single-chip microcontroller memory
Technical field
The invention belongs to electronic fields, and in particular to a method of BOOT in upgrading single-chip microcontroller memory.
Background technique
Under normal circumstances, be stored in the BOOT inside single-chip microcontroller before factory will burning complete, and fix one piece and deposit Storage area domain, but if need to modify BOOT in the case where product has dispatched from the factory BOOT existing defects or demand changes Just become abnormal cumbersome, common practices is that unpacking is needed to pass through emulator burning BOOT again, but this to the artificial mouth of single-chip microcontroller Belt transect comes troublesome unpacking, the dedicated emulated device of purchase, the dedicated exploitation software of installation, is not easy to realize.
Summary of the invention
Goal of the invention: the technical problem to be solved in the present invention, the logic upgraded first are write by BOOT, upgrading The response of instruction, the erasing of flash, the burning of flash content, completeness check are realized by code in BOOT, to be upgraded BOOT must run this part logic in BOOT as a big difficulty, and guarantee that success rate for upgrading also becomes a big difficulty, lead to It crosses and solves the above problems, to realize without the tedious steps such as emulator, unpacking also scalable bottom BOOT, upgrade bottom BOOT It is more convenient, more fast, reduce cost.
Technical solution: a kind of method upgrading BOOT in single-chip microcontroller memory of the present invention, the upgrading single-chip microcontroller The method and step of BOOT is as follows in memory:
A, host computer and single-chip microcontroller are established into data connection;
B, host computer sends flash erasing instruction, in single-chip microcontroller application program first by the content in the region BOOT copy to the area RAM with The area FLASHA, the entrance function for then jumping to ram region BOOT execute logic in BOOT, and BOOT directly will be in the region BOOT Hold erasing;
C, host computer sends flash content, and BOOT is by the content burning of corresponding position into flash;
D, host computer sends upgrading halt instruction, and BOOT carries out completeness check to institute's burning region, will be former if not passing through The BOOT in the area FLASHA is restored to the area BOOT, resets if passing through, runs new BOOT.
Further, in the execution upgrading single-chip microcontroller memory when method of BOOT, it is necessary to assure MCU is at any time There is the complete code of a BOOT in section.
Further, after the loss of data, recovery routine is carried out by unpacking.
Further, if occurring data entanglement in the bus of the host computer and single-chip microcontroller, there is imperfect situation in BOOT A BOOT can be traced back to.
Further, if described power off in escalation process, restart the rear first step and check BOOT integrality, if not It is complete to execute back tracking operation recovery BOOT.
The utility model has the advantages that present invention discloses it is a kind of upgrading single-chip microcontroller memory in BOOT method, realize without emulator, The tedious steps such as unpacking also scalable bottom BOOT, and upgrade corrupt data or upgrading is interrupted can also recall original state, make Bottom BOOT upgrading is more convenient, more fast, reduces cost.
Specific embodiment
A method of BOOT in upgrading single-chip microcontroller memory, the method and step for upgrading BOOT in single-chip microcontroller memory It is as follows:
A, host computer and single-chip microcontroller are established into data connection;
B, host computer sends flash erasing instruction, in single-chip microcontroller application program first by the content in the region BOOT copy to the area RAM with The area FLASHA, the entrance function for then jumping to ram region BOOT execute logic in BOOT, and BOOT directly will be in the region BOOT Hold erasing;
C, host computer sends flash content, and BOOT is by the content burning of corresponding position into flash;
D, host computer sends upgrading halt instruction, and BOOT carries out completeness check to institute's burning region, will be former if not passing through The BOOT in the area FLASHA is restored to the area BOOT, resets if passing through, runs new BOOT.
It is additionally provided with function in the method:
In this example, in the execution upgrading single-chip microcontroller memory when method of BOOT, it is necessary to assure MCU is at any time in section There is the complete code of a BOOT.
In this example, after the loss of data, recovery routine is carried out by unpacking, unpacking operation refers to for monolithic machine burning The not exposed product of record mouth must operate in this way.
In this example, if occurring data entanglement in the bus, imperfect situation, which occurs, in BOOT can trace back to one BOOT。
In this example, if described power off in escalation process, restarts the rear first step and check BOOT integrality, if not It is complete to execute back tracking operation recovery BOOT.
Advantages of the present invention: it realizes without tedious steps also scalable bottom BOOT, and ascending series such as emulator, unpackings Original state can also be recalled by interrupting according to error or upgrading, kept bottom BOOT upgrading more convenient, more fast, reduced cost.
The above described is only a preferred embodiment of the present invention, be not intended to limit the present invention in any form, though So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention, any technology people for being familiar with this profession Member, without departing from the scope of the present invention, when the technology contents using the disclosure above make a little change or modification For the equivalent embodiment of equivalent variations, but anything that does not depart from the technical scheme of the invention content, according to the technical essence of the invention Any simple modification, equivalent change and modification to the above embodiments, all of which are still within the scope of the technical scheme of the invention.

Claims (5)

1. a kind of method of BOOT in upgrading single-chip microcontroller memory, it is characterised in that: BOOT in the upgrading single-chip microcontroller memory Method and step it is as follows:
A, host computer and single-chip microcontroller are established into data connection;
B, host computer sends flash erasing instruction, in single-chip microcontroller application program first by the content in the region BOOT copy to the area RAM with The area FLASHA, the entrance function for then jumping to ram region BOOT execute logic in BOOT, and BOOT directly will be in the region BOOT Hold erasing;
C, host computer sends flash content, and BOOT is by the content burning of corresponding position into flash;
D, host computer sends upgrading halt instruction, and BOOT carries out completeness check to institute's burning region, will be former if not passing through The BOOT in the area FLASHA is restored to the area BOOT, resets if passing through, runs new BOOT.
2. the method for BOOT in a kind of upgrading single-chip microcontroller memory according to claim 1, it is characterised in that: the execution When upgrading the method for BOOT in single-chip microcontroller memory, it is necessary to assure MCU has the complete generation of a BOOT in section at any time Code.
3. the method for BOOT in a kind of upgrading single-chip microcontroller memory according to claim 1, it is characterised in that: the data After loss, recovery routine is carried out by unpacking.
4. the method for BOOT in a kind of upgrading single-chip microcontroller memory according to claim 1, it is characterised in that: described upper If occurring data entanglement in the bus of machine and single-chip microcontroller, imperfect situation, which occurs, in BOOT can trace back to a BOOT.
5. the method for BOOT in a kind of upgrading single-chip microcontroller memory according to claim 1, it is characterised in that: described to rise If being powered off during grade, restart the rear first step and check BOOT integrality, if imperfect execute back tracking operation recovery BOOT。
CN201910581093.4A 2019-06-29 2019-06-29 A method of BOOT in upgrading single-chip microcontroller memory Withdrawn CN110333900A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910581093.4A CN110333900A (en) 2019-06-29 2019-06-29 A method of BOOT in upgrading single-chip microcontroller memory
PCT/CN2019/126609 WO2021000535A1 (en) 2019-06-29 2019-12-19 Method for upgrading boot in memory of single chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910581093.4A CN110333900A (en) 2019-06-29 2019-06-29 A method of BOOT in upgrading single-chip microcontroller memory

Publications (1)

Publication Number Publication Date
CN110333900A true CN110333900A (en) 2019-10-15

Family

ID=68144592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910581093.4A Withdrawn CN110333900A (en) 2019-06-29 2019-06-29 A method of BOOT in upgrading single-chip microcontroller memory

Country Status (2)

Country Link
CN (1) CN110333900A (en)
WO (1) WO2021000535A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021000535A1 (en) * 2019-06-29 2021-01-07 沃太能源南通有限公司 Method for upgrading boot in memory of single chip microcomputer

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878366A (en) * 2005-06-09 2006-12-13 乐金电子(中国)研究开发中心有限公司 Firmware update method for mobile phone
CN104461644A (en) * 2014-12-18 2015-03-25 山东超越数控电子有限公司 Method of burning EC (embedded controller) firmware in made-in-China computer platforms
CN105867977A (en) * 2016-04-01 2016-08-17 天津七所精密机电技术有限公司 DSP user program upgrading and Flash downloading method
CN106227572A (en) * 2016-08-30 2016-12-14 深圳市蓝海华腾技术股份有限公司 A kind of frequency converter control system programme upgrade method
CN106569833A (en) * 2016-11-14 2017-04-19 积成电子股份有限公司 DSP program online upgrading method with secondary BOOT
CN106598654A (en) * 2016-11-30 2017-04-26 中国兵器装备集团自动化研究所 Method for updating PowerPC motherboard guide chip online

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677388A (en) * 2015-12-31 2016-06-15 清华大学苏州汽车研究院(吴江) Firmware updating method for motor controller of electric vehicle
CN108182079B (en) * 2017-12-21 2020-09-01 中国船舶重工集团公司第七0七研究所 TMS320C6748 program loading method based on serial port
CN110333900A (en) * 2019-06-29 2019-10-15 沃太能源南通有限公司 A method of BOOT in upgrading single-chip microcontroller memory

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878366A (en) * 2005-06-09 2006-12-13 乐金电子(中国)研究开发中心有限公司 Firmware update method for mobile phone
CN104461644A (en) * 2014-12-18 2015-03-25 山东超越数控电子有限公司 Method of burning EC (embedded controller) firmware in made-in-China computer platforms
CN105867977A (en) * 2016-04-01 2016-08-17 天津七所精密机电技术有限公司 DSP user program upgrading and Flash downloading method
CN106227572A (en) * 2016-08-30 2016-12-14 深圳市蓝海华腾技术股份有限公司 A kind of frequency converter control system programme upgrade method
CN106569833A (en) * 2016-11-14 2017-04-19 积成电子股份有限公司 DSP program online upgrading method with secondary BOOT
CN106598654A (en) * 2016-11-30 2017-04-26 中国兵器装备集团自动化研究所 Method for updating PowerPC motherboard guide chip online

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021000535A1 (en) * 2019-06-29 2021-01-07 沃太能源南通有限公司 Method for upgrading boot in memory of single chip microcomputer

Also Published As

Publication number Publication date
WO2021000535A1 (en) 2021-01-07

Similar Documents

Publication Publication Date Title
CN101477471B (en) Embedded system firmware on-line upgrading method
CN103207797B (en) Capsule type customized updating method based on universal extensible firmware interface firmware system
US9110682B2 (en) State machine control of a debugger
US20160357519A1 (en) Natural Language Engine for Coding and Debugging
WO2018045733A1 (en) Method for loading android system so files, and electronic device
CN109710320B (en) Two-stage driving boot loader starting and guiding method
CN109343854B (en) Intelligent automatic compiling method and system based on zynq system
CN103473067A (en) Embedded Linux partitioning and data recovery method, embedded Linux partitioning and data recovery system and system development method
CN109783195A (en) A kind of real-time adjustment method of intelligent contract based on container
CN105373407A (en) DSP and FPGA online upgrading method for embedded system
WO2016101503A1 (en) Hot patching realization method and apparatus
CN104407878B (en) C6000 digital signal processor online upgrading methods
CN103136002A (en) Automatic upgrade control method based on UBoot instruction and system
CN105760191A (en) Embedded system equipment programming mass production method
CN104111857A (en) Method for automatically configuring parameters of multi-model BIOS
CN103631712A (en) Modeled software key behavior tracking method based on memory management
CN106201608A (en) Computer UEFI firmware update
CN106406962A (en) Wind power generation controller failed remote upgrade recovery method based on ARM
CN112540780A (en) System and method for realizing batch firmware upgrade of formation unmanned aerial vehicles
CN105468390A (en) BOOT online upgrade apparatus and method
CN110333900A (en) A method of BOOT in upgrading single-chip microcontroller memory
CN108897576A (en) A method of the quick start BOOT based on ARM chip
CN103995717A (en) Method for upgrading software in embedded device
CN111984329B (en) Boot software standardized generation and execution method and system
CN103677928A (en) System and method for achieving rapid software serial port upgrading in GNSS receiver

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 226100 No.888, Jiuhua Road, high tech Zone, Nantong City, Jiangsu Province

Applicant after: Wotai Energy Co.,Ltd.

Address before: 226000 No.888, Jiuhua Road, high tech Zone, Nantong City, Jiangsu Province

Applicant before: NEOVOLTAIC ENERGY NANTONG Co.,Ltd.

CB02 Change of applicant information
WW01 Invention patent application withdrawn after publication

Application publication date: 20191015

WW01 Invention patent application withdrawn after publication