CN106775904A - A kind of program burn writing system and method for microcontroller built-in type system - Google Patents

A kind of program burn writing system and method for microcontroller built-in type system Download PDF

Info

Publication number
CN106775904A
CN106775904A CN201710124808.4A CN201710124808A CN106775904A CN 106775904 A CN106775904 A CN 106775904A CN 201710124808 A CN201710124808 A CN 201710124808A CN 106775904 A CN106775904 A CN 106775904A
Authority
CN
China
Prior art keywords
module
host computer
data
communication module
microcontroller
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
CN201710124808.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.)
Beijing Electric Power Polytron Technologies Inc
Original Assignee
Beijing Electric Power Polytron Technologies Inc
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 Beijing Electric Power Polytron Technologies Inc filed Critical Beijing Electric Power Polytron Technologies Inc
Priority to CN201710124808.4A priority Critical patent/CN106775904A/en
Publication of CN106775904A publication Critical patent/CN106775904A/en
Pending 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
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present invention relates to a kind of program burn writing system and method for microcontroller built-in type system, the system includes host computer and slave computer, the host computer includes that User Interface, file read and parsing module and host computer communication module, the slave computer includes BootLoader modules, the BootLoader modules are located at the FX of microcontroller Flash, are made up of slave computer communication module, data resolution module and program burn writing module.The present invention can reduce host computer parsing difficulty and workload, it is ensured that while verification success rate, obtain speed of download faster.

Description

A kind of program burn writing system and method for microcontroller built-in type system
Technical field
The present invention relates to embedded device technology field, a kind of journey of microcontroller built-in type system is concretely related to Sequence programming system and method.
Background technology
Embedded system is should by advanced computer technology, semiconductor technology and electronic technology and the specific of industry-by-industry With the product after being combined, the development of chip technology so that one single chip has stronger disposal ability, and makes integrated various Interface has become possibility, additionally, the need for and to product reliability, cost, the raising of the requirement that updates so that Embedded system turns into the focus for attracting people's attention in recent years.Embedded system is widely used in electronic equipment, such as mobile phone, palm Computer, electromechanical equipment etc., using preceding, need to by the burning program of embedded system to objective chip, but it is existing embedded There is poor reliability, the slow problem of replication rate in the programming system and method for program.
The content of the invention
An object of the present invention is just to provide a kind of program burn writing system of microcontroller built-in type system, existing to solve There is programming system reliability poor, the slow problem of replication rate.
The second object of the present invention is just to provide a kind of program burn writing method of microcontroller built-in type system.
An object of the present invention is realized by following scheme:A kind of program burn writing of microcontroller built-in type system System, including host computer and slave computer, the host computer include that User Interface, file read and parsing module and host computer Communication module, the slave computer includes BootLoader modules, and the BootLoader modules are located at consolidating for microcontroller Flash Determine region, be made up of slave computer communication module, data resolution module and program burn writing module;
The User Interface is connected with file reading and parsing module and the communication of host computer communication module respectively, user mutual Interface is used to carry out selection operation and point out downloading process information for user;
The file reads and parsing module is connected with the communication of host computer communication module, and file reads and parsing module is used for choosing Fixed treats that programming file is read out, classifies and parses;
The host computer communication module communicates with one another with slave computer communication module and is connected, and host computer communication module is used to parse Data carry out and verify and check information and data are sent to slave computer;
The slave computer communication module communicates with one another with data resolution module and is connected, and slave computer communication module is used to receive and transmit The data of host computer simultaneously send the feedback information of data resolution module to host computer;
The data resolution module is connected with program burn writing module communication, and data resolution module is used to solve the data for receiving Analysis and verification calculate and download password check;
Described program programming module receive data resolution module transmission through verify data and programming to microcontroller Flash FX.
The BootLoader modules are set to non-erasable in the microcontroller.
The second object of the present invention is realized by following scheme:A kind of program burn writing of microcontroller built-in type system Method, comprises the following steps:
A, host computer start, and microcontroller type is selected by User Interface, set communications parameter;
B, slave computer communication connection start and are shaken hands with host computer;
C, by User Interface select the executable file to be downloaded, input download password simultaneously click on download function;
D, host computer communication module and slave computer communication module receive and transmit encrypted message and by under data resolution module verification Carry password;
E, allow to download after, the file of host computer reads and parsing module is read out to executable file, classifies and parses, and The transmission and and verification of data are carried out by host computer communication module;
F, slave computer communication module receive data and send data resolution module to and parsed and and verified, data resolution module The data that will be parsed send program burn writing module to and the result with verification are fed back into host computer, and host computer is tied according to feedback Fruit continues to send data or mistake is downloaded in prompting.
FX of the data programming that g, program burn writing module will be received to the Flash of microcontroller.
During program burn writing, User Interface display downloading process information.
Parsing and verification, transmission that host computer is grouped according to the form of executable file.
The setting of each module of host computer of the present invention is realized when being parsed to data, according to the lattice of loading procedure file Formula, the parsing being grouped and verification and transmission, can reduce upper computer software parsing difficulty and workload, ensure to verify While success rate, speed of download faster is obtained.By the cooperation of password check and each module of slave computer, side verification is realized Side burning, while burning process reliability is ensured, improves replication rate.
Brief description of the drawings
Fig. 1 is structural representation of the invention.
Fig. 2 is burning flow chart of the invention.
Specific embodiment
As shown in figure 1, programming system of the invention includes host computer 1 and slave computer 2, host computer 1 includes user mutual circle Face 3, file is read and parsing module 4 and host computer communication module 5, and host computer 1 can be PC ends, and slave computer 2 includes BootLoader modules, BootLoader modules are located at the FX of microcontroller Flash, by slave computer communication module 6, number Constituted according to parsing module 7 and program burn writing module 8, BootLoader modules are loaded on microcontroller down in advance and be set to can not Erasing, only need to once be downloaded to BootLoader modules, be communicated by USBCAN between host computer 1 and slave computer 2 Card connection.
User Interface 3 is connected with file reading and parsing module 4 and the communication of host computer communication module 5 respectively, user By User Interface 3, be downloaded target selection, communication modes selection, communications parameter set, download Password Input, can Perform file data to select and send, select the basic parameters such as download function to set, setting communications parameter includes that selection communication sets Standby type and communication speed, User Interface 3 can also point out during burning program download file format correctness, Write the information such as address, the speed of write-in data of data.The actual functional capability of program burn writing also may be selected in host computer, such as only burn Write, only wipe, wipe simultaneously programming etc..
File reads and parsing module 4 is connected with the communication of host computer communication module 5, for treating that programming file enters to what is selected Row reads, classification and parse, so as to the parsing that is grouped and and verification, reduce parsing difficulty and workload, the number for parsing According to the main address information comprising program and code information.
Host computer communication module 5 is communicated with one another with slave computer communication module 6 and is connected, and host computer communication module 5 will be parsed Code data be sent to slave computer 2, every 24 byte datas for sending can be carried out and be verified calculating during transmission, and will Result of calculation is sent to slave computer 2, then waits the check information that slave computer 2 is returned, if verification passes through, continues to send 24 Individual byte data, if do not verify passed through, failed download information is shown by User Interface 3.
Slave computer 2 receives the instruction and data that host computer 1 sends, wherein, slave computer communication module 6 and data resolution module 7 communicate with one another connection, and slave computer communication module 6 receives and transmit order and the data of host computer 1, all data for receiving by Data resolution module 7 is parsed and is verified calculating and downloaded password check.Such as when download password is parsed, data solution Analysis module 7 is checked password, and verification is downloaded by then allowing, and slave computer 2 will continue to the data from host computer 1 simultaneously Parsed, while by program burn writing module 8 according to the address information and program information for parsing, by program burn writing to microcontroller The FX of the Flash of device, by the feedback of the information of code error to host computer 1 if verification does not pass through.Receiving host computer In data procedures, data resolution module 7 is carried out and verifies calculating simultaneously, often receives 24 bytes, then will be with verification result of calculation Sent with host computer 1 and verification result of calculation is compared, relatively more identical, then explanation sends errorless, is then back to The information for passing through is verified to host computer 1, host computer 1 continues to send data according to the information.
Specific method for burn-recording during the application of this programming system is as shown in Fig. 2 mainly include the following steps that:
A, host computer 1 start, and microcontroller type is selected by User Interface 3, set communications parameter;
B, the communication connection of slave computer 2 start and are shaken hands with host computer 1, by the display reminding of User Interface 3 if connection failure Information;
C, by User Interface 3 select the executable file to be downloaded, input download password simultaneously click on download function;
D, host computer communication module 5 and slave computer communication module 6 receive and transmit encrypted message and checked by data resolution module 7 Download password;
E, password check are downloaded by then allowing, the file of host computer reads and parsing module 4 is read out to executable file, Classification and parse, and by host computer communication module 5 carry out data transmission and and verification, password check by then by user hand over Mutual interface 3 display reminding information;
F, slave computer communication module 6 receive data and send data resolution module 7 to and parsed and and verified, data parsing mould The data that block 7 will be parsed send program burn writing module 8 to and the result with verification are fed back into host computer 1, the basis of host computer 1 Feedback result continues to send data or mistake is downloaded in prompting.
FX of the data programming that g, program burn writing module 8 will be received to the Flash of microcontroller.

Claims (5)

1. a kind of program burn writing system of microcontroller built-in type system, it is characterized in that, including host computer and slave computer, it is described on Position machine includes that User Interface, file read and parsing module and host computer communication module, and the slave computer includes BootLoader modules, the BootLoader modules are located at the FX of microcontroller Flash, are communicated mould by slave computer Block, data resolution module and program burn writing module composition;
The User Interface is connected with file reading and parsing module and the communication of host computer communication module respectively, user mutual Interface is used to carry out selection operation and point out downloading process information for user;
The file reads and parsing module is connected with the communication of host computer communication module, and file reads and parsing module is used for choosing Fixed treats that programming file is read out, classifies and parses;
The host computer communication module communicates with one another with slave computer communication module and is connected, and host computer communication module is used to parse Data carry out and verify and check information and data are sent to slave computer;
The slave computer communication module communicates with one another with data resolution module and is connected, and slave computer communication module is used to receive and transmit The data of host computer simultaneously send the feedback information of data resolution module to host computer;
The data resolution module is connected with program burn writing module communication, and data resolution module is used to solve the data for receiving Analysis and verification calculate and download password check;
Described program programming module receive data resolution module transmission through verify data and programming to microcontroller Flash FX.
2. the program burn writing system of microcontroller built-in type system according to claim 1, it is characterized in that, it is described BootLoader modules are set to non-erasable in the microcontroller.
3. a kind of program burn writing method of microcontroller built-in type system, it is characterized in that, comprise the following steps:
A, host computer start, and microcontroller type is selected by User Interface, set communications parameter;
B, slave computer communication connection start and are shaken hands with host computer;
C, by User Interface select the executable file to be downloaded, input download password simultaneously click on download function;
D, host computer communication module and slave computer communication module receive and transmit encrypted message and by under data resolution module verification Carry password;
E, allow to download after, the file of host computer reads and parsing module is read out to executable file, classifies and parses, and The transmission and and verification of data are carried out by host computer communication module;
F, slave computer communication module receive data and send data resolution module to and parsed and and verified, data resolution module The data that will be parsed send program burn writing module to and the result with verification are fed back into host computer, and host computer is tied according to feedback Fruit continues to send data or mistake is downloaded in prompting;
FX of the data programming that g, program burn writing module will be received to the Flash of microcontroller.
4. the program burn writing method of microcontroller built-in type system according to claim 3, it is characterized in that, in program burn writing During, User Interface display downloading process information.
5. the program burn writing method of microcontroller built-in type system according to claim 3, it is characterized in that, host computer according to Parsing and verification, transmission that the form of executable file is grouped.
CN201710124808.4A 2017-03-03 2017-03-03 A kind of program burn writing system and method for microcontroller built-in type system Pending CN106775904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710124808.4A CN106775904A (en) 2017-03-03 2017-03-03 A kind of program burn writing system and method for microcontroller built-in type system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710124808.4A CN106775904A (en) 2017-03-03 2017-03-03 A kind of program burn writing system and method for microcontroller built-in type system

Publications (1)

Publication Number Publication Date
CN106775904A true CN106775904A (en) 2017-05-31

Family

ID=58961218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710124808.4A Pending CN106775904A (en) 2017-03-03 2017-03-03 A kind of program burn writing system and method for microcontroller built-in type system

Country Status (1)

Country Link
CN (1) CN106775904A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678760A (en) * 2017-09-11 2018-02-09 浙江中科正方电子技术有限公司 A kind of CAN programmings program interaction control system and method
CN111880830A (en) * 2020-07-23 2020-11-03 中国航发控制系统研究所 Automatic compiling, linking and loading method for distributed control software source code
WO2022120599A1 (en) * 2020-12-08 2022-06-16 华为技术有限公司 Data packet processing method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120689A1 (en) * 2006-11-16 2008-05-22 Novell, Inc. Representing extensible markup language (XML) as an executable having conditional authentication or policy logic
CN204347592U (en) * 2015-01-21 2015-05-20 华高科技(苏州)有限公司 A kind of household appliances intelligent controlling device
CN108345464A (en) * 2018-03-06 2018-07-31 播思通讯技术(北京)有限公司 A kind of the startup method and Android vehicle device of Android system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120689A1 (en) * 2006-11-16 2008-05-22 Novell, Inc. Representing extensible markup language (XML) as an executable having conditional authentication or policy logic
CN204347592U (en) * 2015-01-21 2015-05-20 华高科技(苏州)有限公司 A kind of household appliances intelligent controlling device
CN108345464A (en) * 2018-03-06 2018-07-31 播思通讯技术(北京)有限公司 A kind of the startup method and Android vehicle device of Android system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
乐志国;金启前;: "电动汽车整车控制器BootLoader功能开发" *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678760A (en) * 2017-09-11 2018-02-09 浙江中科正方电子技术有限公司 A kind of CAN programmings program interaction control system and method
CN111880830A (en) * 2020-07-23 2020-11-03 中国航发控制系统研究所 Automatic compiling, linking and loading method for distributed control software source code
CN111880830B (en) * 2020-07-23 2022-10-11 中国航发控制系统研究所 Automatic compiling, linking and loading method for distributed control software source code
WO2022120599A1 (en) * 2020-12-08 2022-06-16 华为技术有限公司 Data packet processing method and apparatus

Similar Documents

Publication Publication Date Title
CN104199706B (en) A kind of eMMC firmware upgrade method and its equipment
CN103309709B (en) A kind of firmware upgrade method, device and communication equipment
CN101216773A (en) Embedded Linux system firmware downloading method and device
CN104407878B (en) C6000 digital signal processor online upgrading methods
CN107634859A (en) A kind of firmware upgrade method and device
CN107346244B (en) A kind of automobile EPS director demon automation download system and method
CN101673202A (en) Program writing method and system, pre-writing device and writing device
CN106775904A (en) A kind of program burn writing system and method for microcontroller built-in type system
CN108170457A (en) Firmware upgrade method, device and VR head-mounted displays
CN1630403A (en) Subscriber identification module (SIM) emulator
CN113608772B (en) Application program upgrading method and device
CN102711095A (en) Method for updating nodes of wireless sensor network in wireless mode
CN105487890A (en) Firmware downloading method based on C51 series single chip microcomputer kernel
CN206892846U (en) A kind of program burn writing system of microcontroller built-in type system
CN106227571A (en) Method for upgrading system and mobile terminal thereof
CN108153548A (en) A kind of EMMC firmware upgrade methods and device
CN103530551A (en) Software restriction method and system based on mobile Internet and cloud computing
CN103092648A (en) Method and system of mirror image upgrade and user device and personal computer
CN106952426A (en) Data processing method and device
CN101593123A (en) The curing of flash recordable plug-in component and terminal device
CN101620662B (en) Method for downloading data from intelligent card based on flash memory
CN105530544B (en) A kind of Modular electrical depending on display screen end upgrade method and Modular electrical regard
JP2009217351A (en) Setup terminal and program
CN105900072A (en) Image processing system, electronic blackboard, and program
CN105786685B (en) A kind of mobile terminal on-line debugging and the method and terminal of diagnosis

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