CN108108179A - A kind of TMS32C6713 burning program FLASH methods based on serial ports - Google Patents

A kind of TMS32C6713 burning program FLASH methods based on serial ports Download PDF

Info

Publication number
CN108108179A
CN108108179A CN201711346131.5A CN201711346131A CN108108179A CN 108108179 A CN108108179 A CN 108108179A CN 201711346131 A CN201711346131 A CN 201711346131A CN 108108179 A CN108108179 A CN 108108179A
Authority
CN
China
Prior art keywords
burning
serial ports
file
sector
bootstrap
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
CN201711346131.5A
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.)
707th Research Institute of CSIC
Original Assignee
707th Research Institute of CSIC
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 707th Research Institute of CSIC filed Critical 707th Research Institute of CSIC
Priority to CN201711346131.5A priority Critical patent/CN108108179A/en
Publication of CN108108179A publication Critical patent/CN108108179A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention relates to a kind of TMS32C6713 burning program FLASH methods based on serial ports, and technical characterstic is to include:Pre- burning program receives bootstrap file by serial ports, by bootstrap file write-in bootstrap sector, and the mark for performing burning program is set in burning program mark sector;Burning is completed to send file tool transmission burning completion prompting to serial ports;Bootstrap receives working procedure file by serial ports, write-in free sector after verification is correct, working procedure file from free sector is read after code complete verification is correct and writes working procedure sector, finally removes the execution burning program mark in burning program mark sector;Burning is completed to send file tool transmission burning completion prompting to serial ports.Present invention design is reasonable, realizes fiber strapdown navigation system and can quickly and reliably be updated without dismounting into line program, ensure that state of the art it is constant in the case of program update, can be extensively using the miniaturization inertial navigation system that TMS320C6713 is acp chip.

Description

A kind of TMS32C6713 burning program FLASH methods based on serial ports
Technical field
The invention belongs to fiber strapdown navigation system technical field, especially a kind of TMS32C6713 programs based on serial ports Burning FLASH methods.
Background technology
As fiber strapdown inertial navigation system performance is constantly improved and improved, peculiar to vessel, Lu Yonghe is widely used in The fields such as aviation, therefore the requirement to system compact, real-time, reliability is higher and higher.It is mainly manifested in:First, increasingly Compact structure design causes the disassembly of system to be deteriorated, and disassembly system can cause the calibrating parameters failure of early period or even have Installation site does not allow to be dismounted.Secondly, burning FLASH general at present is online will using burn recording software using emulator It is re-write after FLASH erasings, recordable time is very long, very high to room and time requirement, updates and burns in debugging process Program Record FLASH frequently occurs, and quick burning program in real time is particularly important.Again, traditional burning program mode is in burning process In, the problems such as due to computer or cable, emulator, burning failure is sometimes resulted in, greatly reduces the reliability of burning.Cause This without dismounting without emulator using system external debugging interface realize communicate and complete write FLASH it is extremely important.
The content of the invention
Be overcome the deficiencies in the prior art the mesh of the present invention, propose a kind of design rationally, reliability it is high and it is quick just The prompt TMS32C6713 burning program FLASH methods based on serial ports.
The present invention solves its technical problem and following technical scheme is taken to realize:
A kind of TMS32C6713 burning program FLASH methods based on serial ports, comprise the following steps:
Step 1, pre- burning program receive bootstrap file by serial ports, by bootstrap file write-in bootstrap fan Area, and the mark for performing burning program is set in burning program mark sector;Burning is completed to send file tool transmission to serial ports Prompting is completed in burning;
Step 2, bootstrap receive working procedure file by serial ports, verify correct rear write-in free sector, treat code Working procedure file from free sector is read after complete verification is correct and writes working procedure sector, finally removes burning program Identify the execution burning program mark in sector;Burning is completed to send file tool transmission burning completion prompting to serial ports.
The bootstrap file and working procedure file are hex file.
The advantages and positive effects of the present invention are:
Working procedure is burnt to FLASH by the present invention into with bootstrap by pre- burning by serial ports, realizes light Fine strap-down navigation system can quickly and reliably be updated without dismounting into line program, in the case of ensure that state of the art is constant Program update, can extensively using TMS320C6713 be acp chip miniaturization inertial navigation system.
Description of the drawings
Fig. 1 is " pre- burning program " flow chart of the invention;
Fig. 2 is " bootstrap " flow chart of the invention.
Specific embodiment
The embodiment of the present invention is further described below in conjunction with attached drawing.
A kind of TMS32C6713 burning program FLASH methods based on serial ports, be by pre- burning program, bootstrap and What working procedure was realized.The function of pre- burning program is to receive bootstrap by serial ports and write in the vacant addresses of FLASH.Draw The function of helical pitch sequence is to receive working procedure by serial ports and write in FLASH.Working procedure is divided independently of each other with bootstrap Not Xie Ru FLASH different sectors, after burning send file serial ports instrument reception interface on have corresponding prompting.Upper During stating burning program, in addition to burning bootstrap, each working procedure update only needs erasable working procedure section code, without It is erasable to full wafer FLASH progress, so as to remain parameter section content.
The hardware condition that the present invention applies is:
By taking FLASH chip S29AL008J as an example, address range includes 19 sectors (SA0-SA18), as shown in table 1. For startup program in sector SA0, working procedure writes on SA1-SA7, and bootstrap is accounted in SA8-SA11, parameter section in SA17, mark Use SA18.
1 S29AL008J address ranges of table
Hex file explanation:TMS320C6713 code compilations, link generation * .out files, use hex6x.exe Order uses "-x " parameter generation * .hex files in hex.cmd command files.Wherein * .hex files are and to write The hex file of FLASH.
In the present invention, program includes working procedure and bootstrap.Working procedure and bootstrap use same startup Program (bootrom).Execution burning program is decided whether according to the value of FLASHSA18 sectors fixing address in startup program (determining whether 0x6666), otherwise runs working procedure.
The specific processing method of the present invention comprises the following steps:
Step 1, pre- burning step
As shown in Figure 1, pre- burning program receives the hex file B.hex of bootstrap by serial ports, B.hex is write Enter bootstrap sector (SA8~SA11 sectors), and whether performing burning program mark sector (SA18 sectors) and put and whether hold The mark (write-in 0x6666) of row burning program.Burning is completed to send file tool transmission burning completion prompting to serial ports.It is going here and there In the case of the hardware conditions such as port address are immovable, this single stepping generally only carries out once.Each block of new line plate is required for B.hex is sent file function by serial ports and writes FLASH appropriate address by the pre- burning program of emulator on-line operation.
Step 2, bootstrap perform step
As shown in Fig. 2, bootstrap receives working procedure hex file * .hex by serial ports, write after verification is correct Enter free sector (SA12-SA15 sectors), treat that code complete verification is correct, working procedure code is read simultaneously from SA12-SA15 It writes working procedure sector (SA1~SA7), finally wipes in burning program mark sector (SA18 sectors) whether perform burning journey Sequence mark.If since communicating interrupt or other reasons cause burning failure during burning, because SA18 marks are not wiped, Burning work can be re-started after re-powering.Burning is completed to send file tool transmission burning completion prompting to serial ports.
5 minutes are needed using general one secondary program of burn recording software burning at present, and the present invention is arranged in serial port baud rate In the case of 230400bit/s, recordable time is only 47 seconds, it can be seen that recordable time is greatly shortened.
Practical application of the present invention is completed many successes in the light-duty scout car inertial navigation of novel wheel-type, without disassembly system and is burnt Record, time were shorten to 47 seconds by 5 minutes, and reliability rapidity is by making strict assessment and verifying.
It is emphasized that embodiment of the present invention is illustrative rather than limited, therefore present invention bag The embodiment being not limited to described in specific embodiment is included, it is every by those skilled in the art's technique according to the invention scheme The other embodiment drawn, also belongs to the scope of protection of the invention.

Claims (2)

  1. A kind of 1. TMS32C6713 burning program FLASH methods based on serial ports, it is characterised in that comprise the following steps:
    Step 1, pre- burning program receive bootstrap file by serial ports, and bootstrap file is write bootstrap sector, And the mark for performing burning program is set in burning program mark sector;Burning is completed to send file tool transmission burning to serial ports Complete prompting;
    Step 2, bootstrap receive working procedure file by serial ports, verify correct rear write-in free sector, treat code whole Working procedure file from free sector is read after verification is correct and writes working procedure sector, finally removes burning program mark Execution burning program mark in sector;Burning is completed to send file tool transmission burning completion prompting to serial ports.
  2. 2. the TMS32C6713 burning program FLASH methods according to claim 1 based on serial ports, it is characterised in that:Institute It is hex file to state bootstrap file and working procedure file.
CN201711346131.5A 2017-12-15 2017-12-15 A kind of TMS32C6713 burning program FLASH methods based on serial ports Pending CN108108179A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711346131.5A CN108108179A (en) 2017-12-15 2017-12-15 A kind of TMS32C6713 burning program FLASH methods based on serial ports

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711346131.5A CN108108179A (en) 2017-12-15 2017-12-15 A kind of TMS32C6713 burning program FLASH methods based on serial ports

Publications (1)

Publication Number Publication Date
CN108108179A true CN108108179A (en) 2018-06-01

Family

ID=62217089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711346131.5A Pending CN108108179A (en) 2017-12-15 2017-12-15 A kind of TMS32C6713 burning program FLASH methods based on serial ports

Country Status (1)

Country Link
CN (1) CN108108179A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346746A (en) * 2020-10-30 2021-02-09 中国船舶重工集团公司第七0七研究所 TMS32C6748 program burning method based on serial port high reliability

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040143828A1 (en) * 2003-01-20 2004-07-22 Tun-Hsing Liu Firmware updating method and related apparatus for checking content of replacing firmware before firmware updating
WO2008007922A1 (en) * 2006-07-14 2008-01-17 Samsung Electronics Co., Ltd. Program upgrade system and method for ota-capable mobile terminal
CN101216773A (en) * 2008-01-09 2008-07-09 深圳国人通信有限公司 Embedded Linux system firmware downloading method and device
CN101673202A (en) * 2008-09-09 2010-03-17 比亚迪股份有限公司 Program writing method and system, pre-writing device and writing device
CN103530264A (en) * 2013-10-22 2014-01-22 贵州航天控制技术有限公司 DSP serial on-line programming device
CN104049996A (en) * 2014-05-29 2014-09-17 湖北三江航天红峰控制有限公司 Method for carrying out software updating of missile-borne computer based on serial port
CN104572206A (en) * 2015-01-14 2015-04-29 厦门为那通信科技有限公司 Application program self updating and backup recovery method
CN106293807A (en) * 2016-07-26 2017-01-04 中国航空工业集团公司西安飞行自动控制研究所 A kind of Flash chip based on DSP guides loading method
CN106371863A (en) * 2016-08-24 2017-02-01 武汉光迅科技股份有限公司 Embedded multi-operation system boot program upgrading method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040143828A1 (en) * 2003-01-20 2004-07-22 Tun-Hsing Liu Firmware updating method and related apparatus for checking content of replacing firmware before firmware updating
WO2008007922A1 (en) * 2006-07-14 2008-01-17 Samsung Electronics Co., Ltd. Program upgrade system and method for ota-capable mobile terminal
CN101216773A (en) * 2008-01-09 2008-07-09 深圳国人通信有限公司 Embedded Linux system firmware downloading method and device
CN101673202A (en) * 2008-09-09 2010-03-17 比亚迪股份有限公司 Program writing method and system, pre-writing device and writing device
CN103530264A (en) * 2013-10-22 2014-01-22 贵州航天控制技术有限公司 DSP serial on-line programming device
CN104049996A (en) * 2014-05-29 2014-09-17 湖北三江航天红峰控制有限公司 Method for carrying out software updating of missile-borne computer based on serial port
CN104572206A (en) * 2015-01-14 2015-04-29 厦门为那通信科技有限公司 Application program self updating and backup recovery method
CN106293807A (en) * 2016-07-26 2017-01-04 中国航空工业集团公司西安飞行自动控制研究所 A kind of Flash chip based on DSP guides loading method
CN106371863A (en) * 2016-08-24 2017-02-01 武汉光迅科技股份有限公司 Embedded multi-operation system boot program upgrading method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346746A (en) * 2020-10-30 2021-02-09 中国船舶重工集团公司第七0七研究所 TMS32C6748 program burning method based on serial port high reliability

Similar Documents

Publication Publication Date Title
CN105354070B (en) A method of passing through I2C updating apparatus firmware
TWI220962B (en) Firmware updating method and related apparatus for checking content of replacing firmware before firmware updating
CN104965725B (en) A kind of full-automatic firmware programming method of embedded device based on SD card
CN106506649A (en) A kind of remote online upgrade method of vehicle-mounted control terminal and device
US9870301B2 (en) High-speed debug port using standard platform connectivity
CN110187909A (en) A kind of single-chip microcontroller firmware upgrade method based on android system
CN102214125A (en) Method for testing error checking and correcting (ECC) function of memory
CN109885905B (en) Verification system for improving function verification efficiency of digital circuit
WO2016078315A1 (en) Programming apparatus, programming system and programming method
CN106598654A (en) Method for updating PowerPC motherboard guide chip online
CN108108179A (en) A kind of TMS32C6713 burning program FLASH methods based on serial ports
CN110955447A (en) Multi-sector programming and checking method for laser inertial measurement unit coefficient based on programming module
CN110941520B (en) Hardware function test system and method based on two-out-of-two safety control unit
US20100205423A1 (en) Bios, computer device and method for recovering bios
CN103412775A (en) Method for refreshing BMC firmware intelligently and automatically
CN110310702A (en) A kind of method, apparatus and storage medium of gene order-checking assembling result reparation
CN107832176A (en) Hard disk pressure automatic test approach and system under a kind of Windows
CN107704351B (en) Chip verification method and device
CN104133743A (en) Method and device for burning file into EMMC (Embedded MultiMedia Card)
CN111414182B (en) SPI-based FPGA remote upgrading method
CN105871598A (en) Router equipment and upgrade method of router equipment
CN111176682B (en) Online updating and debugging method for remote network of equipment
CN115328798A (en) Chip verification automatic regression testing method and computer readable storage medium
CN109817270B (en) Test method of embedded OTP 8-bit MCU chip
CN100455031C (en) Apparatus and method for carrying out random treatment to memory data

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180601