CN106648807B - DSP software uploading and updating method based on FLASH memory - Google Patents

DSP software uploading and updating method based on FLASH memory Download PDF

Info

Publication number
CN106648807B
CN106648807B CN201710014679.3A CN201710014679A CN106648807B CN 106648807 B CN106648807 B CN 106648807B CN 201710014679 A CN201710014679 A CN 201710014679A CN 106648807 B CN106648807 B CN 106648807B
Authority
CN
China
Prior art keywords
software
uploading
dsp
dsp software
flash memory
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.)
Active
Application number
CN201710014679.3A
Other languages
Chinese (zh)
Other versions
CN106648807A (en
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 Institute of Electronic System Engineering
Original Assignee
Beijing Institute of Electronic System Engineering
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 Institute of Electronic System Engineering filed Critical Beijing Institute of Electronic System Engineering
Priority to CN201710014679.3A priority Critical patent/CN106648807B/en
Publication of CN106648807A publication Critical patent/CN106648807A/en
Application granted granted Critical
Publication of CN106648807B publication Critical patent/CN106648807B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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)
  • Stored Programmes (AREA)

Abstract

The invention discloses a DSP software uploading and updating method based on a FLASH memory, which comprises the following steps: s1, the upper layer system establishes uploading software command frame information and sends the uploading software command frame information to the computer, the original DSP software which is stored in a FLASH memory of the computer and runs on a DSP chip generates uploading software according to the uploading software command frame information and stores the uploading software in an SRAM memory of the computer, and then the uploading software runs on the SRAM memory; s2, the upper layer system establishes new DSP software command frame information and sends the new DSP software command frame information to the computer, and the uploading software generates new DSP software according to the new DSP software command frame information and stores the new DSP software in the SRAM memory; s3, the upper system sends an erasing command to the computer, the uploading software erases the original DSP software in the FLASH memory after receiving the erasing command, and then the new DSP software in the SRAM memory is written into the FLASH memory; and S4, loading the new DSP software stored in the FLASH memory into the DSP chip for running, and completing the uploading and updating of the DSP software. The invention improves the uploading reliability and efficiency of the DSP software.

Description

DSP software uploading and updating method based on FLASH memory
Technical Field
The invention relates to a software uploading and updating method. More particularly, the invention relates to a DSP software uploading and updating method based on a FLASH memory.
Background
The existing DSP (Digital Signal Processing) software adopts an EPROM (EPROM) memory as a carrier to store programs, the software needs to be burnt in the EPROM memory before system test, when the system test is carried out, the system needs to be disassembled if software upgrading is needed, a hardware device for solidifying the DSP software is taken out, and the EPROM memory is burnt again to replace the software. In recent years, most DSP software is stored and run in FLASH memory, but due to different hardware interfaces, various software uploading methods are designed. In particular, some DSP software includes operations for directly erasing and writing the FLASH memory, and there is a risk of erroneously deleting and rewriting the DSP software in the FLASH memory.
Therefore, it is necessary to provide a DSP software uploading and updating method based on FLASH memory, which has small system integration scale and improves the DSP software uploading reliability and efficiency.
Disclosure of Invention
The invention aims to provide a DSP software uploading and updating method based on a FLASH memory, which solves the problem that the DSP software is mistakenly deleted and rewritten during uploading and updating, realizes the modularized and flow design of the uploading and updating of the DSP software, and meets the requirement of standardizing the flow design.
In order to achieve the purpose, the invention adopts the following technical scheme:
a DSP software uploading and updating method based on a FLASH memory comprises the following steps:
s1, the upper layer system organizes and establishes uploading software command frame information according to the frame format of the uploading software, sends the uploading software command frame information to the computer, the original DSP software which is stored in a FLASH memory of the computer and runs on a DSP chip generates the uploading software according to the uploading software command frame information, stores the uploading software in a fixed unit of an SRAM memory of the computer, and then runs the uploading software in the SRAM memory;
s2, the upper layer system organizes and establishes new DSP software command frame information according to the frame format of the new DSP software, sends the new DSP software command frame information to the computer, and the uploading software generates new DSP software according to the new DSP software command frame information and stores the new DSP software in the SRAM memory;
s3, the upper system sends an erasing command to the computer, the uploading software erases the original DSP software in the FLASH memory after receiving the erasing command, and then the new DSP software in the SRAM memory is written into the FLASH memory;
and S4, loading the new DSP software stored in the FLASH memory into the DSP chip for running, and completing the uploading and updating of the DSP software.
Preferably, the connection between the upper layer system and the computer is realized by a bus communication cable.
Preferably, step S2 further includes the steps of: and the uploading software reads the new DSP software from the SRAM memory and sends the new DSP software to the upper-layer system.
Preferably, step S3 further includes the steps of: the upper layer system compares the received new DSP software with the command frame information of the new DSP software, and if the comparison is correct, an erasing command is sent to the computer.
Preferably, step S3 further includes the steps of: and the uploading software judges whether the erasing is correct, and if so, the new DSP software in the SRAM memory is written into the FLASH memory and the erasing and writing results are sent to the upper system.
Preferably, step S4 further includes the steps of: and the upper-layer system executes restarting operation on the computer after receiving the erasing and writing results, loads the new DSP software stored in the FLASH memory into the DSP chip for running, and finishes uploading and updating of the DSP software.
Preferably, step S4 further includes the steps of: and deleting the uploading software and the new DSP software stored in the SRAM memory.
The invention has the following beneficial effects:
the technical scheme of the invention has small system integration scale and improves the uploading reliability and efficiency of the DSP software.
Drawings
The following describes embodiments of the present invention in further detail with reference to the accompanying drawings.
Fig. 1 shows an application schematic diagram of a DSP software uploading and updating method based on a FLASH memory.
Detailed Description
In order to more clearly illustrate the invention, the invention is further described below with reference to preferred embodiments and the accompanying drawings. Similar parts in the figures are denoted by the same reference numerals. It is to be understood by persons skilled in the art that the following detailed description is illustrative and not restrictive, and is not to be taken as limiting the scope of the invention.
As shown in fig. 1, the DSP software uploading and updating method based on FLASH memory provided in this embodiment is applied to an aircraft control system, where the aircraft control system includes an aircraft control computer 100 and a ground test system 200, the aircraft control computer 100 includes a DSP chip 101, an SRAM memory 102 and a FLASH memory 103, and the SRAM memory 102 is connected to the ground test system 200 through a bus communication cable 300;
the ground test system 200 serves as an upper layer system of the aircraft control computer 100, has a bus communication system organization information transmission function, and performs corresponding bus communication and control functions on the aircraft control computer 100 through a bus communication cable to complete uploading and updating of DSP software.
The FLASH memory 103 stores DSP software, and the SRAM memory 102 stores upload software and new DSP software.
When the aircraft control computer 100 is started, the original DSP software stored in the FLASH memory 103 is automatically loaded into the DSP chip 101 to run, waiting for a command from the ground test system 200.
The method for uploading and updating the DSP software based on the FLASH memory provided by the embodiment comprises the following steps:
s1, the ground test system 200 organizes and establishes upload software command frame information according to the frame format of the upload software, and sends the upload software command frame information to the aircraft control computer 100 through the bus communication cable 300, the original DSP software stored in the FLASH memory 103 and running on the DSP chip 101 receives the upload software command frame information, generates upload software according to the upload software command frame information and stores the upload software in the fixed unit of the SRAM memory 102, and then starts the upload software to run in the SRAM memory 102;
s2, the ground test system 200 organizes and creates new DSP software command frame information according to the frame format of the new DSP software, and sends the new DSP software command frame information frame by frame to the aircraft control computer 100 through the bus communication cable 300, the upload software stored in the SRAM memory 102 and running in the SRAM memory 102 receives the new DSP software command frame information, generates new DSP software according to the new DSP software command frame information and stores the new DSP software in the SRAM memory 102, reads the new DSP software from the SRAM memory 102, and downloads the read new DSP software to the ground test system 200;
s3, the ground test system 200 compares the received new DSP software with the command frame information of the new DSP software which is established at the beginning, if the comparison is correct, an erasing command is sent to the aircraft control computer 100, the new DSP software is stored in the SRAM memory 102, the uploading software which runs in the SRAM memory 102 erases the original DSP software in the FLASH memory 103 after receiving the erasing command, whether the erasing is correct is judged, if the erasing is correct, the new DSP software in the SRAM memory 102 is written into the FLASH memory 103, and the erasing and writing results are sent to the ground test system 200;
s4, after receiving the result of erasing and writing sent by the upload software, the ground test system 200 performs a restart operation on the aircraft control computer 100, and after the restart operation, automatically deletes the upload software and the new DSP software stored in the SRAM memory 102, and automatically loads the new DSP software stored in the FLASH memory 103 into the DSP chip 101 to run, thereby completing the update of the upload of the DSP software.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention, and it will be obvious to those skilled in the art that other variations or modifications may be made on the basis of the above description, and all embodiments may not be exhaustive, and all obvious variations or modifications may be included within the scope of the present invention.

Claims (7)

1. A DSP software uploading and updating method based on a FLASH memory is characterized by comprising the following steps:
s1, the upper layer system organizes and establishes uploading software command frame information according to the frame format of the uploading software, sends the uploading software command frame information to the computer, the original DSP software which is stored in a FLASH memory of the computer and runs on a DSP chip generates the uploading software according to the uploading software command frame information, stores the uploading software in a fixed unit of an SRAM memory of the computer, and then runs the uploading software in the SRAM memory;
s2, the upper layer system organizes and establishes new DSP software command frame information according to the frame format of the new DSP software, sends the new DSP software command frame information to the computer, and the uploading software generates new DSP software according to the new DSP software command frame information and stores the new DSP software in the SRAM memory;
s3, the upper system sends an erasing command to the computer, the uploading software erases the original DSP software in the FLASH memory after receiving the erasing command, and then the new DSP software in the SRAM memory is written into the FLASH memory;
and S4, loading the new DSP software stored in the FLASH memory into the DSP chip for running, and completing the uploading and updating of the DSP software.
2. The DSP software uploading updating method based on FLASH memory according to claim 1, wherein the connection between the upper system and the computer is realized by using a bus communication cable.
3. The DSP software uploading method based on FLASH memory according to claim 1, wherein the step S2 further comprises the steps of: and the uploading software reads the new DSP software from the SRAM memory and sends the new DSP software to the upper-layer system.
4. The DSP software uploading method based on FLASH memory of claim 3, wherein the step S3 further comprises the steps of: the upper layer system compares the received new DSP software with the command frame information of the new DSP software, and if the comparison is correct, an erasing command is sent to the computer.
5. The DSP software uploading method based on FLASH memory according to claim 1, wherein the step S3 further comprises the steps of: and the uploading software judges whether the erasing is correct, and if so, the new DSP software in the SRAM memory is written into the FLASH memory and the erasing and writing results are sent to the upper system.
6. The DSP software uploading updating method based on FLASH memory according to claim 5, wherein the step S4 further comprises the steps of: and the upper-layer system executes restarting operation on the computer after receiving the erasing and writing results, loads the new DSP software stored in the FLASH memory into the DSP chip for running, and finishes uploading and updating of the DSP software.
7. The DSP software uploading method based on FLASH memory of claim 6, wherein the step S4 further comprises the steps of: and deleting the uploading software and the new DSP software stored in the SRAM memory.
CN201710014679.3A 2017-01-10 2017-01-10 DSP software uploading and updating method based on FLASH memory Active CN106648807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710014679.3A CN106648807B (en) 2017-01-10 2017-01-10 DSP software uploading and updating method based on FLASH memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710014679.3A CN106648807B (en) 2017-01-10 2017-01-10 DSP software uploading and updating method based on FLASH memory

Publications (2)

Publication Number Publication Date
CN106648807A CN106648807A (en) 2017-05-10
CN106648807B true CN106648807B (en) 2020-12-01

Family

ID=58843860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710014679.3A Active CN106648807B (en) 2017-01-10 2017-01-10 DSP software uploading and updating method based on FLASH memory

Country Status (1)

Country Link
CN (1) CN106648807B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634623A (en) * 2018-12-12 2019-04-16 山东管理学院 Operation method is infused in program based on DSP

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7111292B2 (en) * 2001-09-10 2006-09-19 Texas Instruments Incorporated Apparatus and method for secure program upgrade
CN101287256A (en) * 2008-05-23 2008-10-15 南京邮电大学 System structure and controlling method for terminal reconfiguration in end-to-end reconfiguration environment
WO2014006451A1 (en) * 2012-07-03 2014-01-09 Freescale Semiconductor, Inc. Data path configuration component, signal processing device and method therefor
US9098370B2 (en) * 2010-11-08 2015-08-04 Cbs Interactive, Inc. Apparatus and methods for improving uninstall process

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8171192B2 (en) * 2005-09-20 2012-05-01 Qualcomm Incorporated Hardware-assisted device configuration detection
CN101183314A (en) * 2007-12-11 2008-05-21 中国科学院长春光学精密机械与物理研究所 Method for realizing digital signal processor program online programming
CN101452393A (en) * 2008-12-29 2009-06-10 中国科学院长春光学精密机械与物理研究所 DSP2812 program on-line upgrading method based on PCI bus
CN102520976B (en) * 2011-11-17 2015-04-01 四川九洲电器集团有限责任公司 Solidifying method of DSP (digital signal processor) program
CN102999350B (en) * 2012-10-24 2016-10-05 绵阳市维博电子有限责任公司 A kind of FPGA program upgrading download online method in digital signal processing platform
CN103257880B (en) * 2013-05-30 2016-03-30 航天恒星科技有限公司 A kind of remote application online updating method based on DSP
CN104407878B (en) * 2014-10-20 2018-02-23 北京航天发射技术研究所 C6000 digital signal processor online upgrading methods

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7111292B2 (en) * 2001-09-10 2006-09-19 Texas Instruments Incorporated Apparatus and method for secure program upgrade
CN101287256A (en) * 2008-05-23 2008-10-15 南京邮电大学 System structure and controlling method for terminal reconfiguration in end-to-end reconfiguration environment
US9098370B2 (en) * 2010-11-08 2015-08-04 Cbs Interactive, Inc. Apparatus and methods for improving uninstall process
WO2014006451A1 (en) * 2012-07-03 2014-01-09 Freescale Semiconductor, Inc. Data path configuration component, signal processing device and method therefor

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
In-System Programming Outer-Chip Flash of DSP with Ethernet Interface;Huang Huawei ET AL;《2009 WRI World Congress on Computer Science and Information Engineering》;20090724;全文 *
基于多DSP的嵌入式软件远程更新方法;袁彦;《2011年声频工程学术交流年会》;20120625;全文 *

Also Published As

Publication number Publication date
CN106648807A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
US20070074201A1 (en) Method and system for updating software and computer readable recording medium storing the method
CN103365696B (en) BIOS image file acquisition methods and device
EP2375323A1 (en) Firmware image update and management
CN111142907B (en) Partition upgrading method for off-line keyword recognition system
CN106371881B (en) Method and system for updating program version in server
CN103685495A (en) Method and system for upgrading software
CN110515634B (en) Method, computer system and medium for updating firmware by remote tool program
CN110119280A (en) The method and device of more firmware upgrades
KR20200090010A (en) Method for updating firmware, electronic device and storage medium therefor
CN101667133B (en) Method for updating firmware and chip updating firmware by using same
WO2023060893A1 (en) Storage space management method and apparatus, and device and storage medium
CN109117153A (en) Processing method, device, terminal and the storage medium of application program
CN112148337A (en) Firmware upgrading method and device
US20170199733A1 (en) Method for terminal to update operating system, terminal and system
CN106648807B (en) DSP software uploading and updating method based on FLASH memory
US20070233750A1 (en) Data control apparatus and method
WO2020057134A1 (en) Mobile terminal control method, and mobile terminal
CN106919391A (en) Towards the embedded system of the customizable operating system component of smart mobile phone
CN108153548A (en) A kind of EMMC firmware upgrade methods and device
CN109522174B (en) Method, device, terminal and storage medium for controlling adb enabling
CN107741854A (en) The installation method and device of the trawl performance of a kind of electronic equipment
CN111782236A (en) System software upgrading method and device, storage medium and all-in-one machine equipment
US8019985B2 (en) Data-processing arrangement for updating code in an auxiliary processor memory
CN105511904A (en) Method and apparatus for automatically updating shortcut window
CN113641376B (en) Intelligent terminal upgrading optimization method and intelligent terminal

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
GR01 Patent grant
GR01 Patent grant