CN112328253A - Multi-file automatic generation and combination method based on single-chip microcomputer compiler - Google Patents
Multi-file automatic generation and combination method based on single-chip microcomputer compiler Download PDFInfo
- Publication number
- CN112328253A CN112328253A CN202011049860.6A CN202011049860A CN112328253A CN 112328253 A CN112328253 A CN 112328253A CN 202011049860 A CN202011049860 A CN 202011049860A CN 112328253 A CN112328253 A CN 112328253A
- Authority
- CN
- China
- Prior art keywords
- file
- hex
- bmcu
- application
- compiler
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 10
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to a multi-file automatic generation and combination method based on a singlechip compiler, which is characterized in that an executable tool is written by a python language, and the executable tool is HexPad.exe: the Hex file is 256 bytes filled; hex binconvert. exe: the Hex and Bin files are converted with each other; createhexfromxml. exe: converting the data in the xml file into a Hex file; combinehex.exe: merging the needed Hex files; the invention automatically generates the files after compiling, shortens the time for burning and upgrading the files, avoids manual errors, can uniformly manage executable tools, meets the requirements of different chips and is convenient to transplant and popularize.
Description
Technical Field
The invention relates to the field of single-chip microcomputers, in particular to a multi-file automatic generation and combination method based on a single-chip microcomputer compiler.
Background
With the widespread use of the single chip microcomputer system, the Flash memory system of the single chip microcomputer is generally divided into 3 parts: bootloader, Application, and DFlash, where Bootloader and Application compiler are usually compiled into two separate files, and DFlash needs to be written in a specific way, but 3 parts need to be burned in during mass production chip burning, which is complicated in steps.
At present, a plurality of open-source tools can combine the parts 3 manually to burn in a unified way, and the manual operation steps are multiple and are easy to make mistakes.
Disclosure of Invention
The invention aims to provide a multi-file automatic generation and combination method based on a single-chip microcomputer compiler aiming at the technical problems.
The technical scheme for solving the technical problems is as follows:
the multi-file automatic generation and combination method based on the singlechip compiler comprises the following steps:
step 1, filling a BMCU _ Application _ Pad.hex file compiled by a compiler into a BMCU _ Application _ Pad.hex file with the width of 256 bytes, converting data in a Dataflash.xml file into a Dataflash.hex file, combining the BMCU _ Bootloader.hex file, the BMCU _ Application _ Pad.hex file and the Dataflash.hex file into a BMCU _ Application _ ALL.hex file and storing the BMCU _ Application _ ALL.hex file, wherein the BMCU _ Application _ ALL.hex file is a burning file;
and 2, converting the BMCU _ Application _ pad.hex file into a BMCU _ Application _ pad.bin file, wherein the BMCU _ Application _ pad.bin file is an upgrading file.
The invention has the beneficial effects that: the automatic generation after compiling shortens the time of burning and upgrading file production, avoids manual mistakes, can implement unified management of tools, meets the requirements of different chips, and is convenient to transplant and popularize.
Drawings
FIG. 1 is a schematic flow chart of the method of the present invention.
Detailed Description
The principles and features of this invention are described below in conjunction with examples which are set forth to illustrate, but are not to be construed to limit the scope of the invention.
As shown in fig. 1, the multi-file automatic generation and merging method based on the single-chip microcomputer compiler includes the following steps:
step 1, filling a BMCU _ Application _ Pad.hex file compiled by a compiler into a BMCU _ Application _ Pad.hex file with the width of 256 bytes, converting data in a Dataflash.xml file into a Dataflash.hex file, combining the BMCU _ Bootloader.hex file, the BMCU _ Application _ Pad.hex file and the Dataflash.hex file into a BMCU _ Application _ ALL.hex file and storing the BMCU _ Application _ ALL.hex file, wherein the BMCU _ Application _ ALL.hex file is a burning file;
and 2, converting the BMCU _ Application _ pad.hex file into a BMCU _ Application _ pad.bin file, wherein the BMCU _ Application _ pad.bin file is an upgrading file.
In this embodiment, the executable tool is written in the python language
Hex. exe: 256 byte stuffing of Hex file
Hex binconvert. exe: hex and Bin file interconversion
Createhexfromxml. exe: converting data in xml file into Hex file
Combinehex.exe: merging required Hex files
Adding corresponding executable file execution method after link linking in compiler, correspondingly converting required 3 parts and combining into burning and upgrading file required by single chip microcomputer chip
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (1)
1. The multi-file automatic generation and combination method based on the singlechip compiler is characterized by comprising the following steps of:
step 1, filling a BMCU _ Application _ Pad.hex file compiled by a compiler into a BMCU _ Application _ Pad.hex file with the width of 256 bytes, converting data in a Dataflash.xml file into a Dataflash.hex file, combining the BMCU _ Bootloader.hex file, the BMCU _ Application _ Pad.hex file and the Dataflash.hex file into a BMCU _ Application _ ALL.hex file and storing the BMCU _ Application _ ALL.hex file, wherein the BMCU _ Application _ ALL.hex file is a burning file;
and 2, converting the BMCU _ Application _ pad.hex file into a BMCU _ Application _ pad.bin file, wherein the BMCU _ Application _ pad.bin file is an upgrading file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011049860.6A CN112328253A (en) | 2020-09-29 | 2020-09-29 | Multi-file automatic generation and combination method based on single-chip microcomputer compiler |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011049860.6A CN112328253A (en) | 2020-09-29 | 2020-09-29 | Multi-file automatic generation and combination method based on single-chip microcomputer compiler |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112328253A true CN112328253A (en) | 2021-02-05 |
Family
ID=74313398
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011049860.6A Pending CN112328253A (en) | 2020-09-29 | 2020-09-29 | Multi-file automatic generation and combination method based on single-chip microcomputer compiler |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112328253A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101004690A (en) * | 2007-01-09 | 2007-07-25 | 京信通信技术(广州)有限公司 | Integrative method for updating load program and application program in embedded type system |
US20110219308A1 (en) * | 2010-03-02 | 2011-09-08 | Twentieth Century Fox Film Corporation | Pre-processing and encoding media content |
CN102508685A (en) * | 2011-11-21 | 2012-06-20 | 浪潮电子信息产业股份有限公司 | Method for quickly burning Firmware on blade server |
CN104123158A (en) * | 2014-07-17 | 2014-10-29 | 杭州古北电子科技有限公司 | WIFI module burning method and device |
CN104572140A (en) * | 2013-10-10 | 2015-04-29 | 深圳中电长城信息安全系统有限公司 | Method, device and system for transplanting operating system |
CN111506334A (en) * | 2020-04-27 | 2020-08-07 | 湖北三江航天红峰控制有限公司 | DSP chip program online upgrading method and system |
-
2020
- 2020-09-29 CN CN202011049860.6A patent/CN112328253A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101004690A (en) * | 2007-01-09 | 2007-07-25 | 京信通信技术(广州)有限公司 | Integrative method for updating load program and application program in embedded type system |
US20110219308A1 (en) * | 2010-03-02 | 2011-09-08 | Twentieth Century Fox Film Corporation | Pre-processing and encoding media content |
CN102508685A (en) * | 2011-11-21 | 2012-06-20 | 浪潮电子信息产业股份有限公司 | Method for quickly burning Firmware on blade server |
CN104572140A (en) * | 2013-10-10 | 2015-04-29 | 深圳中电长城信息安全系统有限公司 | Method, device and system for transplanting operating system |
CN104123158A (en) * | 2014-07-17 | 2014-10-29 | 杭州古北电子科技有限公司 | WIFI module burning method and device |
CN111506334A (en) * | 2020-04-27 | 2020-08-07 | 湖北三江航天红峰控制有限公司 | DSP chip program online upgrading method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2487585B1 (en) | Method and device for dynamically loading relocatable file | |
CN103955363B (en) | A kind of manufacture method of program upgrade installation package | |
EP3084596B1 (en) | Executable code for constrained computing environments | |
CN105867977B (en) | The upgrading of DSP user program and Flash method for down loading | |
Hepp et al. | The platin tool kit-the T-CREST approach for compiler and WCET integration | |
CN103777983A (en) | Satellite-borne software in-orbit maintaining and upgrading method | |
CN105068860A (en) | Linux coal cutter management host system based on ARM | |
CN102520761A (en) | Arbitrary waveform generating system based on user-defined processor | |
CN111142928A (en) | Method and terminal for automatically constructing front-end project | |
CN111770116A (en) | Method for executing intelligent contract, block chain node and storage medium | |
CN110569040A (en) | Method for installing and running application program in embedded system | |
CN105446200A (en) | Automatic control method and device | |
CN112328253A (en) | Multi-file automatic generation and combination method based on single-chip microcomputer compiler | |
CN109992517A (en) | Firmware module adjustment method and system based on UEFI | |
CN110275706A (en) | Program issuing and loading method, device, computer system and readable storage medium | |
CN102375749B (en) | Method for quickly downloading and updating firmware by using I2C (Inter-Integrated Circuit) bus | |
CN102591752A (en) | On-line debugging method of peripheral equipment based on high pass platform | |
CN201708785U (en) | System for realizing real-time dynamic configuration of FPGA | |
CN107402885A (en) | A kind of program debugging method and device | |
CN103176815A (en) | Sewing machine control method of carrying out software updating by utilizing external memory | |
CN110366038B (en) | Method for multi-version software equipment to be compatible with multiple technical states | |
CN107479920B (en) | Method for realizing multi-operating-system loading of single ELF file | |
CN116662161A (en) | Function debugging method, device, equipment and storage medium | |
CN103530264A (en) | DSP serial on-line programming device | |
CN202394528U (en) | Programming device for storage board |
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 |