CN109683985B - DSP multi-image starting method based on AIS command - Google Patents

DSP multi-image starting method based on AIS command Download PDF

Info

Publication number
CN109683985B
CN109683985B CN201811552079.3A CN201811552079A CN109683985B CN 109683985 B CN109683985 B CN 109683985B CN 201811552079 A CN201811552079 A CN 201811552079A CN 109683985 B CN109683985 B CN 109683985B
Authority
CN
China
Prior art keywords
program
ais
command
dsp
mirror
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
CN201811552079.3A
Other languages
Chinese (zh)
Other versions
CN109683985A (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.)
CETC 54 Research Institute
Original Assignee
CETC 54 Research Institute
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 CETC 54 Research Institute filed Critical CETC 54 Research Institute
Priority to CN201811552079.3A priority Critical patent/CN109683985B/en
Publication of CN109683985A publication Critical patent/CN109683985A/en
Application granted granted Critical
Publication of CN109683985B publication Critical patent/CN109683985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
    • 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

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

Abstract

The invention discloses a DSP multi-mirror starting method based on an AIS command, which is used for solving the problem of multi-mirror starting of a DSP digital signal processing system. The technical scheme is that a plurality of image files are addressed and selected according to user requirements through a multi-image program starting algorithm, and are loaded into a program memory of a DSP (digital signal processor) from an external memory by analyzing an AIS (automatic identification system) command and automatically executed. The invention utilizes the multi-image program starting algorithm to flexibly and selectively execute a plurality of image files, realizes the overloading and switching of the DSP program according to different user requirements, and improves the universality, the adaptability and the maintainability of the digital signal processing system.

Description

DSP multi-image starting method based on AIS command
Technical Field
The invention relates to the technical field of digital signal processing, in particular to a DSP multi-image starting method based on an AIS command.
Background
The AIS is an abbreviation of Application Image Script (Application Image Script), which is a special command set for Image loading and running. A program starting module capable of receiving AIS commands is usually integrated in a digital signal processing chip (DSP), and application image loading and starting operation are completed when the DSP is powered on. These boot modules generally have a single function, and only can read a unique mirror image from a fixed address for execution, and cannot implement multi-mirror boot or a function of addressing a mirror image storage address. With the development and diversified application of digital technology, more and more digital signal processing systems require the DSP to realize double-image or multi-image starting, and proper images are selected from a plurality of images to be started and executed during each task execution according to different use requirements, so that the diversified application requirements are met. This requires the program start module of the DSP to have the functions of addressing and selecting from multiple application images, and the self-contained program start module of the DSP realizes these functions, so a flexibly configurable DSP multi-image start method is needed.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a DSP multi-image starting method based on AIS command flexibility and configuration.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a DSP multi-image starting method based on an AIS command comprises the following steps:
step 1, automatically loading and executing a multi-mirror image program starting program: the image file in the multi-image program starting program is used as an image file which is loaded by default when the DSP is electrified and is stored in an initial address space of an external memory of the DSP;
step 2: executing a mirror selection strategy: the multi-mirror image program starting program selects one mirror image file in the mirror image file group as a current mirror image file; the mirror image selection strategy is formulated according to the use requirements of users and is integrated into a starting program of a multi-mirror image program; the mirror image file group comprises more than 1 mirror image file which converts the application program into the image file containing the AIS command according to the user requirement; the mirror image files are stored in the address space of the DSP external memory in a non-overlapping way; all the mirror image files are manufactured by using an AIS design tool;
and step 3: loading a mirror image file; determining the storage address of the current mirror image file in a DSP external memory; reading a current mirror image file;
and 4, step 4: detecting whether an AIS command is received, if so, turning to step 5; otherwise, turning to the step 4;
and 5: and analyzing the AIS command: the multi-image program starting program completes the loading of the current image file by analyzing the AIS command and controls the DSP to automatically run; and turning to step 4.
Preferably, the step 5 specifically includes the following steps:
when the AIS command 'program block Load (Section Load)' is analyzed, the multi-mirror program starting program reads the corresponding mirror file block from the external memory into the internal program storage space;
when the AIS command ' Enable CRC ' (Enable CRC) ' is analyzed, the multi-mirror program starting program enables the cyclic check coding (CRC) of the mirror file;
when the AIS command 'close CRC (Disable CRC)' is analyzed, the multi-image program starting program closes the cyclic check coding (CRC) of the image file;
when the AIS command 'validation CRC (valid CRC)' is analyzed, the multi-image program starting program carries out cyclic check coding (CRC) on the image file read from the external memory, the coding result is compared with the coding result in the file for validation, if the validation is passed, the next command is continuously executed, otherwise, the image file read from the external memory is read again and is validated again;
when the AIS command 'program block filling (Section Fill)' is analyzed, the multi-mirror program starting program fills the designated internal program storage space into the content required by the AIS command;
when an AIS command 'Function setting (Function execution)' is analyzed, the multi-image program starting program carries out initialization setting on the internal Function module of the DSP;
when the AIS command 'Jump & Close' is resolved, the multi-mirror program startup program ends the running of the current program and jumps the program Pointer (PC) of the DSP to the user application program to run.
The invention has the beneficial effects that: the invention addresses and selects a plurality of image files according to the user requirements, realizes the overloading and switching of the DSP application program according to different user requirements, and improves the universality, the adaptability and the maintainability of the digital signal processing system.
Drawings
FIG. 1 is a flowchart of a multi-mirroring program initiation procedure in accordance with an embodiment of the present invention;
Detailed Description
Example 1:
the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present invention.
A DSP multi-image starting method based on an AIS command comprises the following steps:
step 1, automatically loading and executing a multi-mirror image program starting program: the image file in the multi-image program starting program is used as an image file which is loaded by default when the DSP is electrified and is stored in an initial address space of an external memory of the DSP;
step 2: executing a mirror selection strategy: the multi-mirror image program starting program selects one mirror image file in the mirror image file group as a current mirror image file; the mirror image selection strategy is formulated according to the use requirements of users and is integrated into a starting program of a multi-mirror image program; the mirror image file group comprises more than 1 mirror image file which converts the application program into the image file containing the AIS command according to the user requirement; the mirror image files are stored in the address space of the DSP external memory in a non-overlapping way; all the mirror image files are manufactured by using an AIS design tool;
and step 3: loading a mirror image file; determining the storage address of the current mirror image file in a DSP external memory; reading a current mirror image file;
and 4, step 4: detecting whether an AIS command is received, if so, turning to step 5; otherwise, turning to the step 4;
and 5: and analyzing the AIS command: the multi-image program starting program completes the loading of the current image file by analyzing the AIS command and controls the DSP to automatically run; and turning to step 4.
Whether the program is a user program or a multi-image program starting program, an AIS design tool is used for converting an all-out file generated by compiling a DSP program into a binary image file all-in;
the image file is stored in the DSP external memory, wherein the image file in the multi-image program starting program is stored in the initial address of the external memory, namely the address 0; other user program image files are stored to other address spaces that are not the starting address.
The multi-mirror program starting program finishes loading the mirror file and controls the DSP to automatically run by analyzing the AIS command, and the method comprises the following steps of:
a. "chunk Load (Section Load)": reading the mirror image file block from the external memory into the internal program storage space;
b. "Enable CRC check (Enable CRC)": enabling cyclic check coding (CRC) of the image file;
c. "close CRC check (Disable CRC)": closing a cyclic check code (CRC) of the image file;
d. "Validate CRC check (valid CRC)": performing cyclic check coding (CRC) and comparison verification, and re-reading file blocks which do not pass the verification;
e. "Section Fill": filling the designated internal program storage space as the content required by the command;
f. "Function setting (Function execution)": initializing and setting internal function modules of the DSP;
g. "Jump and end (Jump & Close)": ending the running of the current program, and jumping a program Pointer (PC) of the DSP to a user application program for running;
4. the image file is ended by a Jump and Close command, so that after the Jump and Close command is analyzed, the DSP ends the multi-image program starting program and jumps to the user application program to run.

Claims (2)

1. A DSP multi-image starting method based on an AIS command is characterized by comprising the following steps:
step 1, automatically loading and executing a multi-mirror image program starting program: the image file in the multi-image program starting program is used as an image file which is loaded by default when the DSP is electrified and is stored in an initial address space of an external memory of the DSP;
step 2: executing a mirror selection strategy: the multi-mirror image program starting program selects one mirror image file in the mirror image file group as a current mirror image file; the mirror image selection strategy is formulated according to the use requirements of users and is integrated into a starting program of a multi-mirror image program; the mirror image file group comprises more than 1 mirror image file which converts the application program into the image file containing the AIS command according to the user requirement; the mirror image files are stored in the address space of the DSP external memory in a non-overlapping way; all the mirror image files are manufactured by using an AIS design tool;
and step 3: loading a mirror image file; determining the storage address of the current mirror image file in a DSP external memory; reading a current mirror image file;
and 4, step 4: detecting whether an AIS command is received, if so, turning to step 5; otherwise, turning to the step 4;
and 5: and analyzing the AIS command: the multi-image program starting program completes the loading of the current image file by analyzing the AIS command and controls the DSP to automatically run; and turning to step 4.
2. The AIS command-based DSP multi-image startup method according to claim 1, wherein said step 5 comprises the following specific steps:
when the AIS command 'program block Load (Section Load)' is analyzed, the multi-mirror program starting program reads the corresponding mirror file block from the external memory into the internal program storage space;
when the AIS command ' Enable CRC ' (Enable CRC) ' is analyzed, the multi-mirror program starting program enables the cyclic check coding (CRC) of the mirror file;
when the AIS command 'close CRC (Disable CRC)' is analyzed, the multi-image program starting program closes the cyclic check coding (CRC) of the image file;
when the AIS command 'validation CRC (valid CRC)' is analyzed, the multi-image program starting program carries out cyclic check coding (CRC) on the image file read from the external memory, the coding result is compared with the coding result in the file for validation, if the validation is passed, the next command is continuously executed, otherwise, the image file read from the external memory is read again and is validated again;
when the AIS command 'program block filling (Section Fill)' is analyzed, the multi-mirror program starting program fills the designated internal program storage space into the content required by the AIS command;
when an AIS command 'Function setting (Function execution)' is analyzed, the multi-image program starting program carries out initialization setting on the internal Function module of the DSP;
when the AIS command 'Jump & Close' is resolved, the multi-mirror program startup program ends the running of the current program and jumps the program Pointer (PC) of the DSP to the user application program to run.
CN201811552079.3A 2018-12-19 2018-12-19 DSP multi-image starting method based on AIS command Active CN109683985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811552079.3A CN109683985B (en) 2018-12-19 2018-12-19 DSP multi-image starting method based on AIS command

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811552079.3A CN109683985B (en) 2018-12-19 2018-12-19 DSP multi-image starting method based on AIS command

Publications (2)

Publication Number Publication Date
CN109683985A CN109683985A (en) 2019-04-26
CN109683985B true CN109683985B (en) 2021-10-22

Family

ID=66186821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811552079.3A Active CN109683985B (en) 2018-12-19 2018-12-19 DSP multi-image starting method based on AIS command

Country Status (1)

Country Link
CN (1) CN109683985B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116594955B (en) * 2023-07-17 2023-09-26 中国电子科技集团公司第五十八研究所 Dynamic global reconfigurable method based on DSP chip

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750364A (en) * 2012-06-13 2012-10-24 华为技术有限公司 Method, compiler and system for distributing memory address space for image files
CN103198192A (en) * 2013-04-12 2013-07-10 厦门大学 Snapping method for virtually and quickly assembling three-dimensional components
CN104184990A (en) * 2014-06-03 2014-12-03 南通航运职业技术学院 Navigation radar or AIS tracking parameter booted intelligent video monitoring system
CN105573789A (en) * 2015-09-07 2016-05-11 武汉精测电子技术股份有限公司 FPGA (Field Programmable Gate Array) multi-mirror upgrading-loading method and device based on soft-core processor
CN106155730A (en) * 2015-04-21 2016-11-23 北京信威通信技术股份有限公司 Operating system loading method and device
CN106874056A (en) * 2017-03-14 2017-06-20 成都天奥电子股份有限公司 TI C2000 DSP serial ports online upgrading methods based on Ymodem
CN107239358A (en) * 2017-06-01 2017-10-10 捷开通讯(深圳)有限公司 Startup method, mobile terminal and the device with store function of Android system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7855727B2 (en) * 2004-09-15 2010-12-21 Gyrus Acmi, Inc. Endoscopy device supporting multiple input devices
CN102520989A (en) * 2011-12-01 2012-06-27 浪潮电子信息产业股份有限公司 Intelligent colony system deployment method based on U disk
CN103778087B (en) * 2012-10-25 2016-10-19 加弘科技咨询(上海)有限公司 Homologous series multi-platform FPGA application combination system
US9219645B2 (en) * 2013-03-12 2015-12-22 Dell Products L.P. Systems and methods for sharing a single firmware image in a chassis configured to receive a plurality of modular information handling systems
CN103595430A (en) * 2013-11-22 2014-02-19 中国人民解放军国防科学技术大学 Satellite-borne AIS channelized receiving device and receiving method
CN105912382A (en) * 2016-04-07 2016-08-31 浪潮电子信息产业股份有限公司 Mirror image management device, system and method
CN107491333B (en) * 2017-08-25 2020-06-30 四川长虹电器股份有限公司 Method for generating and burning software mirror image on intelligent device
CN108154025A (en) * 2017-12-22 2018-06-12 北京四达时代软件技术股份有限公司 Method, the method and device of application program mirror image processing of embedded device startup
CN108852308B (en) * 2018-06-22 2021-03-30 苏州高新区人民医院 Time-out window AIS clinical reperfusion method based on multi-parameter image technology optimization detection system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750364A (en) * 2012-06-13 2012-10-24 华为技术有限公司 Method, compiler and system for distributing memory address space for image files
CN103198192A (en) * 2013-04-12 2013-07-10 厦门大学 Snapping method for virtually and quickly assembling three-dimensional components
CN104184990A (en) * 2014-06-03 2014-12-03 南通航运职业技术学院 Navigation radar or AIS tracking parameter booted intelligent video monitoring system
CN106155730A (en) * 2015-04-21 2016-11-23 北京信威通信技术股份有限公司 Operating system loading method and device
CN105573789A (en) * 2015-09-07 2016-05-11 武汉精测电子技术股份有限公司 FPGA (Field Programmable Gate Array) multi-mirror upgrading-loading method and device based on soft-core processor
CN106874056A (en) * 2017-03-14 2017-06-20 成都天奥电子股份有限公司 TI C2000 DSP serial ports online upgrading methods based on Ymodem
CN107239358A (en) * 2017-06-01 2017-10-10 捷开通讯(深圳)有限公司 Startup method, mobile terminal and the device with store function of Android system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"DM6437 dsp系列之启动过程全析(2)—AIS文件解析";weixin_30414245;《https://blog.csdn.net/weixin_30414245/article/details/94948983》;20130702;第1-5页 *

Also Published As

Publication number Publication date
CN109683985A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
US7925877B2 (en) Method, system and apparatus for providing a boot loader of an embedded system
US8561040B2 (en) One-pass compilation of virtual instructions
CN107729240B (en) Embedded software stack overflow detection method and device
CN102486733B (en) The upgrade method of boot and device
CN108829449B (en) Method, device, equipment and medium for starting operating system by BIOS (basic input output System)
KR100725386B1 (en) Method for executing virtual machine application, and the digital broadcast receiver thereof
EP1820100B1 (en) Efficient switching between prioritized tasks
CN109683985B (en) DSP multi-image starting method based on AIS command
CN116466995B (en) Instruction based on compound instruction and operand optimization method and device thereof
KR20120050406A (en) Process, computer program, and device for security of intermediate code of programming for the execution thereof by a virtual machine
US7647489B2 (en) Function calling mechanism with embedded index for a handler program and an embedded immediate value for passing a parameter
WO2020166159A1 (en) Microprocessor and operation method therefor
KR100640389B1 (en) Method for executing application in an apparatus having nand flash memory and the apparatus
CN101697129B (en) Logic self-loading method and system for field programmable gate array of embedded system
CN111399926A (en) Method and device for downloading starting program
CN1673959A (en) Loading system and method
KR20070108646A (en) Method and terminal for managing of compression binary file
JPWO2006101123A1 (en) Nonvolatile memory device, nonvolatile memory controller, and nonvolatile memory system
JP2000330792A (en) System for controlling byte code program execution
CN114328063A (en) Simulation method and device based on mapping mechanism and electronic equipment
CN109947476B (en) Statistical method and system for runtime stack space
CN117193887B (en) Sound console distributed control method and device and readable storage medium
CN117251221B (en) Micro control chip, management method thereof and storage medium
CN110286963B (en) Control code loading method and device, starting controller and electronic equipment
CN115729652A (en) Execution method, device and equipment of interpretation routine and storage medium

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