CN111309364A - Chip program upgrading method and device and storage medium - Google Patents

Chip program upgrading method and device and storage medium Download PDF

Info

Publication number
CN111309364A
CN111309364A CN202010390739.3A CN202010390739A CN111309364A CN 111309364 A CN111309364 A CN 111309364A CN 202010390739 A CN202010390739 A CN 202010390739A CN 111309364 A CN111309364 A CN 111309364A
Authority
CN
China
Prior art keywords
program
upgraded
area
initial address
address
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.)
Granted
Application number
CN202010390739.3A
Other languages
Chinese (zh)
Other versions
CN111309364B (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.)
Shenzhen Kexin Communication Technology Co Ltd
Original Assignee
Shenzhen Kexin Communication Technology Co Ltd
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 Shenzhen Kexin Communication Technology Co Ltd filed Critical Shenzhen Kexin Communication Technology Co Ltd
Priority to CN202010390739.3A priority Critical patent/CN111309364B/en
Publication of CN111309364A publication Critical patent/CN111309364A/en
Application granted granted Critical
Publication of CN111309364B publication Critical patent/CN111309364B/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 provides a method for upgrading various chip programs, which comprises the following steps: creating a burning file of a program to be upgraded according to an area divided by an FLSAH memory in the embedded single chip microcomputer, wherein the burning file comprises the program to be upgraded and an initial address of the program to be upgraded in the embedded single chip microcomputer; when the program is upgraded, receiving an initial address and a program to be upgraded which are sent by an upper computer according to the burning file, and storing the program to be upgraded according to the initial address; when the program to be upgraded is a bootstrap program, after the program to be upgraded is received, receiving a verification instruction sent by an upper computer according to the burning file; and verifying the program to be upgraded according to the verification instruction, and writing the program to be upgraded on the initial address into a specified area of a FLASH memory after the verification is passed. The invention solves the problems that the prior art does not support bootstrap program self-upgrade and cannot flexibly write in the application program.

Description

Chip program upgrading method and device and storage medium
Technical Field
The present invention relates to the field of information technology, and in particular, to a method and an apparatus for upgrading a chip program, and a storage medium.
Background
In the prior art, the STM32 single chip microcomputer is subjected to burning program mainly in a JLink, unlink and serial port burning mode. The program in the STM32 single chip microcomputer comprises a bootstrap program and an application program, wherein the application program is a code with product function control, and the bootstrap program is a code for assisting application program upgrading. Generally, the STM32 single chip microcomputer realizes related functions by running application programs, and realizes the functions by running a bootstrap program when the application programs need to be upgraded.
However, the bootstrap program in the existing STM32 single chip microcomputer cannot be automatically upgraded. If the problem of the bootstrap program occurs and the defect needs to be repaired or a new bootstrap function needs to be added, the simulator needs to be refreshed through dismantling the machine, which wastes time and labor. On the other hand, the storage address of the application program in STM32 is fixed, and the application program cannot be flexibly written, so that the storage address of the symbolic data cannot be flexibly allocated, and the fixed storage address increases the risk of being cracked.
Disclosure of Invention
The invention provides a method and a device for upgrading a chip program and a storage medium, which are used for solving the problems that the conventional embedded single chip microcomputer does not support automatic upgrading of a bootstrap program and cannot flexibly write an application program.
The invention is realized in such a way that a chip program upgrading method comprises the following steps:
creating a burning file of a program to be upgraded according to an area divided by an FLSAH memory in an embedded single-chip microcomputer, wherein the burning file comprises the program to be upgraded and an initial address of the program to be upgraded in the embedded single-chip microcomputer;
when the program is upgraded, receiving an initial address and a program to be upgraded which are sent by an upper computer according to the burning file, and storing the program to be upgraded according to the initial address;
when the program to be upgraded is a bootstrap program, after the program to be upgraded is received, receiving a verification instruction sent by an upper computer according to the burning file, and verifying the program to be upgraded according to the verification instruction;
and after the verification is passed, writing the program to be upgraded on the initial address into a specified area of the FLASH memory.
Optionally, the creating a burning file of the program to be upgraded according to the area divided by the FLSAH memory in the embedded single chip microcomputer includes:
dividing the FLSAH memory into a loading area, a loading buffer area and an application program area;
creating a dispersed loading description file in a preset development environment, and configuring the initial address of an application program as an address in an application program area when the program to be upgraded is the application program or configuring the initial address of a bootstrap program as an address in a loading buffer area when the program to be upgraded is the bootstrap program;
and compiling the scattered loading description file to obtain a burning file of the program to be upgraded.
Optionally, the creating a burning file of the program to be upgraded according to the area divided by the FLSAH memory in the embedded single chip microcomputer includes:
dividing the FLSAH memory into a load area and an application area;
creating a scattered loading description file in a preset development environment, and configuring the initial address of the application program as an address in an application program area when the program to be upgraded is the application program or configuring the initial address of the application program as an address in an RAM memory area when the program to be upgraded is a bootstrap program;
and compiling the scattered loading description file to obtain a burning file of the program to be upgraded.
Optionally, when the program to be upgraded is a boot program, and when the program is upgraded, receiving an initial address and the program to be upgraded which are sent by an upper computer according to the burning file, and storing the program to be upgraded according to the initial address includes:
receiving initial address and length information sent by an upper computer according to the burning file, and erasing a loading buffer area determined by the initial address and the length information;
and receiving a program to be upgraded sent by an upper computer according to the burning file, and storing the program to be upgraded to the erased loading buffer area.
Optionally, when the program to be upgraded is a boot program, and when the program is upgraded, receiving an initial address and the program to be upgraded which are sent by an upper computer according to the burning file, and storing the program to be upgraded according to the initial address includes:
receiving initial address and length information sent by an upper computer according to the burning file, and determining an RAM memory area according to the initial address and the length information;
and receiving a program to be upgraded sent by an upper computer according to the burning file, and storing the program to be upgraded to the RAM memory area.
Optionally, when the program to be upgraded is an application program, and when the program is upgraded, receiving an initial address and the program to be upgraded which are sent by an upper computer according to the burning file, and storing the program to be upgraded according to the initial address includes:
receiving initial address and length information sent by an upper computer according to the burning file, and erasing an application program area determined by the initial address and the length information;
and receiving a program to be upgraded sent by the upper computer according to the burning file, and storing the program to be upgraded to the erased application program area.
An apparatus for upgrading a chip program, comprising:
the device comprises a creating module, a storage module and a processing module, wherein the creating module is used for creating a burning file of a program to be upgraded according to an area divided by an FLSAH storage in an embedded single chip microcomputer, and the burning file comprises the program to be upgraded and an initial address of the program to be upgraded in the embedded single chip microcomputer;
the upgrading module is used for receiving an initial address and a program to be upgraded which are sent by an upper computer according to the burning file when the program is upgraded, and storing the program to be upgraded according to the initial address;
the verification module is used for receiving a verification instruction sent by an upper computer according to the burning file after the program to be upgraded is received when the program to be upgraded is a bootstrap program, and verifying the program to be upgraded according to the verification instruction;
and the self-upgrading module is used for writing the program to be upgraded on the initial address into a specified area of the FLASH memory after the verification is passed.
Optionally, the creating module includes:
a first dividing unit, configured to divide the FLSAH memory into a load area, a load buffer area, and an application area;
the system comprises a first configuration unit, a second configuration unit and a third configuration unit, wherein the first configuration unit is used for creating a distributed loading description file in a preset development environment, and configuring a starting address of an application program to be an address in an application program area when the program to be upgraded is the application program or configuring the starting address of the application program to be an address in a loading buffer area when the program to be upgraded is a boot program;
and the first compiling unit is used for compiling the scattered loading description file to obtain a burning file of the program to be upgraded.
Optionally, the creating module includes:
a second dividing unit for dividing the FLSAH memory into a load area and an application area;
the second configuration unit is used for creating a dispersed loading description file in a preset development environment, and configuring the initial address of the application program as an address in an application program area when the program to be upgraded is the application program or configuring the initial address of the boot program as an address in an RAM memory area when the program to be upgraded is the boot program;
and the second compiling unit is used for compiling the scattered loading description file to obtain a burning file of the program to be upgraded.
A computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the method for upgrading the above-described chip program.
The embodiment of the invention improves the burning mode of the STM32 singlechip in the prior art, creates the burning file of the program to be upgraded according to the memory area divided by the FLSAH memory, and records the program to be upgraded and the initial address of the program to be upgraded in the embedded singlechip; when the program is upgraded, receiving an initial address and a program to be upgraded which are sent by an upper computer according to the burning file, and storing the program to be upgraded according to the initial address; when the program to be upgraded is a bootstrap program, after the program to be upgraded is received, receiving a verification instruction sent by an upper computer according to the burning file; and verifying the program to be upgraded according to the verification instruction, and writing the program to be upgraded on the initial address into a designated area of a FLASH memory after the verification is passed, so that the program is written according to the initial address, the self-upgrading of the bootstrap program is realized, and the updating of the bootstrap program can be realized by directly connecting a communication interface without plugging and unplugging hardware and removing a shell when the content of a downloading flow and the file of the bootstrap program is changed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an implementation of a method for upgrading a chip program according to an embodiment of the present invention;
fig. 2 is a flowchart of another implementation of a method for upgrading a chip program according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the area division of the FLASH memory according to an embodiment of the present invention;
fig. 4 is a flowchart of another implementation of a method for upgrading a chip program according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of the area division of a FLASH memory according to another embodiment of the present invention;
fig. 6 is another flowchart of step S102 in the method for upgrading a chip program according to another embodiment of the present invention;
fig. 7 is a block diagram of an upgrade apparatus for a chip program according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention solves the problems that the existing STM32 embedded single chip microcomputer does not support automatic upgrading of the bootstrap program and cannot flexibly write in the application program, and the upgrading method of the chip program provided by the embodiment of the invention can complete the updating of the bootstrap program by connecting the communication interface under the conditions of not plugging and unplugging hardware and dismounting a shell, thereby realizing the effects of self-upgrading of the bootstrap program and writing in an address of the appointed application program, and effectively reducing the cracking risk generated by writing in the application program by using a fixed address. The upgrading method of the chip program provided by the present embodiment is described in detail below.
Fig. 1 is an upgrading method of a chip program provided by the present invention, as shown in fig. 1, the upgrading method includes:
in step S101, a burning file of the program to be upgraded is created according to the area divided by the FLSAH memory of the embedded single chip microcomputer.
In this embodiment, the embedded single chip microcomputer refers to an STM32F103RC chip. In this embodiment, the size of the FLASH memory in the embedded single chip microcomputer is 256Kbytes, and the FLASH memory can be divided into a plurality of memory areas according to different modes. According to different area division modes, a corresponding burning file of the program to be upgraded is created, wherein the burning file records the program to be upgraded and an initial address of the program to be upgraded in the embedded single chip microcomputer. The starting address designates which area of the embedded single chip microcomputer and which position to store the program to be upgraded. The program to be upgraded refers to a program code to be upgraded.
In step S102, when a program is upgraded, an initial address and a program to be upgraded, which are sent by an upper computer according to the burning file, are received, and the program to be upgraded is stored according to the initial address.
The upper computer obtains the initial address of the file to be upgraded by decrypting the burning file and sequentially sends the initial address and the program to be upgraded to the embedded single chip microcomputer. And the embedded single chip microcomputer receives the starting address and then receives and stores the program to be upgraded according to the starting address.
The programs to be upgraded include, but are not limited to, boot programs and application programs. For the application program, the initial address is the storage address of the application program in the embedded single-chip microcomputer, and different initial addresses are configured in the burning file, so that the application program can be written into any position in the embedded single-chip microcomputer, the application program can be upgraded, and the cracking risk generated in a fixed address writing mode in the prior art can be reduced.
For the bootstrap program, the starting address is the backup address of the bootstrap program in the embedded single chip microcomputer, so that the backup of the bootstrap program is realized. After the bootstrap program is finished, the embedded single chip microcomputer can perform self-upgrading according to the bootstrap program. The upgrading method further comprises the following steps:
in step S103, when the program to be upgraded is a boot program, after the program to be upgraded is received, a verification instruction sent by the upper computer according to the burning file is received, and the program to be upgraded is verified according to the verification instruction.
Here, the check instruction includes check code information for instructing the embedded single chip to check the received boot program. Optionally, the check code information is a CRC check code. The embedded single chip microcomputer calculates a CRC check code according to the received program to be upgraded and compares the calculated CRC check code with the received check code information,
in step S104, after the verification is passed, the program to be upgraded at the start address is written into the designated area of the FLASH memory.
If the computed CRC check code is the same as the received check code information, the comparison is passed, the bootstrap program is started to be carried, and the bootstrap program recorded by the initial address is carried to a specified area in the FLASH memory, so that the self-upgrade of the bootstrap program is realized, and the updating of the bootstrap program can be realized without plugging and unplugging hardware and removing a shell when the file content of the download process and the bootstrap program is changed and directly connecting a communication interface.
In the embedded single chip microcomputer, a FLASH memory needs to be partitioned to store a bootstrap program and an application program. The FLASH memory is generally divided into a loading area, also called a BOOT area, for storing a BOOT program and an application area, also called an APP area, for storing an application program.
As a preferred example of the present invention, a memory area may be further divided into a FLASH memory of the embedded single chip microcomputer to serve as a backup interval of the boot program. As shown in fig. 2, the creating of the burning file of the program to be upgraded according to the area divided by the FLSAH memory in the embedded single chip microcomputer in step S101 includes:
in step S201, the FLSAH memory is divided into a load area, a load buffer area, and an application area.
Optionally, as shown in fig. 3, an area with memory addresses of 0X 08000000 to 0X08007FFF in the FLASH memory may be used as a load area, and the size of the load area is 32KBytes, and the load area is used for storing a boot program; the area with the memory address of 0X 08008000-0X 0800 FFFF in the FLASH memory is used as a loading BUFFER area, also called a BOOT _ BUFFER area, and the size of the area is 32Kbytes, and the area is used for backing up a bootstrap program; the FLASH stores an area with the memory address of 0X 08010000-0X 08040000 as an application program area, the size of the application program area is 192Kbytes, and the application program area is used for storing application programs.
And when a burning file of the bootstrap program is created, the embedded single chip microcomputer is instructed to back up the bootstrap program by setting the initial address as the address in the loading buffer area.
In step S202, a distributed loading description file is created in a preset development environment, and when the program to be upgraded is an application program, the start address of the application program is configured as an address in an application program area, or when the program to be upgraded is a boot program, the start address of the boot program is configured as an address in a loading buffer area.
Optionally, the distributed load description file includes, but is not limited to, a program identifier and program information, where the program identifier includes, but is not limited to, type information, check code information, and length information, and the type information is obtained by performing mask encryption on a start address, where the start address points to a load buffer or an application program area.
Here, according to the loading area, the loading buffer area and the application program area divided by the FLASH memory, the present embodiment creates a distributed loading description file.sct in a preset development environment, and configures identification information and program information of a program to be upgraded in the distributed loading description file.sct. The size of the identification information is 12 bytes, and the identification information includes but is not limited to type information, check code information and length information of the program to be upgraded, and the program information refers to the code of the program to be upgraded. The type information is the type of the program to be upgraded, is 4 bytes in size and is used for distinguishing whether the program to be upgraded is a bootstrap program or an application program; the check code information refers to a CRC check code of a program to be upgraded, and the size of the check code information is 4 bytes; the length information refers to the code length of the program to be upgraded and is 4 bytes in size. In this embodiment, since the boot program and the application program are stored in different areas of the FLASH memory, the boot program and the application program can be used as the type information of the program to be upgraded by performing mask encryption on the start address of the program to be upgraded in the FLASH memory. When the program to be upgraded is a bootstrap program, the starting address is configured as an address in a loading buffer area of the FLASH memory. And when the program to be upgraded is an application program, configuring the initial address as an address in an application program area of the FLASH memory.
In step S203, the distributed loading description file is compiled to obtain a burning file of the program to be upgraded.
And after the distributed encryption description file is configured, compiling the distributed encryption description file to obtain a burning file of the program to be upgraded. Here, the burning file of the program to be upgraded refers to a bin file for performing program upgrade on the embedded single chip microcomputer through an upper computer.
The area division of the FLASH memory is simple and easy to operate. In the embodiment, the initial address of the application program is configured, so that the application program can be written into any address in the application program area, and the cracking risk generated in a fixed address writing mode is favorably reduced; and the loading buffer area is divided in the FLASH memory for receiving and storing the bootstrap program, so that the bootstrap program is conveniently received and backed up, and the self-upgrading of the bootstrap program is realized. The boot self-upgrade process will be described in detail below.
The receiving, by the upper computer, the start address and the program to be upgraded sent by the burning file in the step S102, and storing the program to be upgraded according to the start address includes:
in step S204, the receiving upper computer erases the loading buffer determined by the start address and the length information according to the start address and the length information sent by the burning file.
When the program is burned, the upper computer analyzes the burning file to obtain the program to be upgraded and the initial address, the check code information and the length information of the program to be upgraded, and the initial address, the length information, the check code information and the program to be upgraded are sequentially sent to a lower computer, namely the embedded single chip microcomputer.
When receiving the initial address and the length information sent by the upper computer, the embedded single chip microcomputer determines the backup space of the program to be upgraded in the loading buffer area according to the initial address and the length information, and erases the backup space in the loading buffer area to vacate the space to receive the program to be upgraded.
In step S205, a program to be upgraded sent by the upper computer according to the burning file is received, and the program to be upgraded is stored in the erased load buffer.
And after the erasing is finished, the upper computer sends a program to be upgraded to the embedded single chip microcomputer. And the embedded single chip microcomputer receives the program to be upgraded and stores the program to be upgraded in the erased loading buffer area, so that the receiving and backup of the boot program are completed, and the program to be upgraded is stored in the loading buffer area.
In step S206, after the program to be upgraded is received, a verification instruction sent by the upper computer according to the burning file is received, and the program to be upgraded is verified according to the verification instruction. After the backup of the bootstrap program is finished, the embedded single chip microcomputer can perform self-upgrade according to the bootstrap program. Step S206 is the same as step S103, and please refer to the description of the above embodiments, which is not repeated herein.
In step S207, after the verification is passed, the loading area in the FLASH memory is erased, and the program to be upgraded in the loading buffer area is written into the erased loading area.
And if the computed CRC check code is the same as the received check code information, the comparison is passed, the boot program is started to be carried, and the original boot program in the loading area is erased firstly to make room for receiving the boot program. And then the bootstrap program stored in the loading buffer area is transported to the loading area in the FLASH memory, so that the self-upgrading of the bootstrap program is realized, and the updating of the bootstrap program can be realized by directly connecting a communication interface without plugging and unplugging hardware and removing a shell when the content of a downloading flow and a bootstrap program file is changed.
As another preferred example of the present invention, when the FLSAH memory is divided into the loading area and the application area and remains unchanged, a memory area may be further divided into a memory area in the RAM memory of the embedded single chip microcomputer to serve as a backup area for the boot program. As shown in fig. 4, the creating of the burning file of the program to be upgraded according to the area divided by the FLSAH memory in the embedded single chip microcomputer in step S101 includes:
in step S401, the FLSAH memory is divided into a load area and an application area.
Optionally, as shown in fig. 5, at this time, an area with memory addresses of 0X 08000000 to 0X08007FFF in the FLASH memory may be used as a load area, the size of which is 32KBytes, for storing the boot program; the area with memory addresses of 0X 08008000-0X 08040000 in the FLASH memory is used as an application program area with the size of 224Kbytes and used for storing application programs. And when the burning file of the bootstrap program is created, a RAM memory area with the size of 32Kbytes is divided from the embedded single chip microcomputer and is used for backing up the bootstrap program. The method further comprises the following steps:
in step S402, a distributed loading description file is created in a preset development environment, and when the program to be upgraded is an application program, the start address of the application program is configured as an address in an application program area, or when the program to be upgraded is a boot program, the start address of the boot program is configured as an address in an RAM memory area.
Similarly, the distributed loading description file includes, but is not limited to, a program identifier and program information, the program identifier includes, but is not limited to, type information, check code information, and length information, the type information is obtained by performing mask encryption on a start address, and the start address points to a RAM memory area or an application program area.
In the embodiment, a distributed loading description file sct is created in a preset development environment according to a loading area and an application area which are divided by a FLASH memory, and identification information and program information of a program to be upgraded are configured in the distributed loading description file sct, and a RAM memory area with a size of 32Kbytes is configured, so that a code of a boot program is received when the boot program is self-upgraded. The size of the identification information is 12 bytes, and the identification information includes but is not limited to type information, check code information and length information of the program to be upgraded, and the program information refers to the code of the program to be upgraded. The type information is the type of the program to be upgraded, is 4 bytes in size and is used for distinguishing whether the program to be upgraded is a bootstrap program or an application program; the check code information refers to a CRC check code of a program to be upgraded, and the size of the check code information is 4 bytes; the length information refers to the code length of the program to be upgraded and is 4 bytes in size. In this embodiment, since the boot program is backed up in the RAM memory area and the application program is stored in the FLASH memory, the start address of the program to be upgraded in the RAM memory area or the FLASH memory may be mask-encrypted to serve as the type information of the program to be upgraded. When the program to be upgraded is a boot program, the starting address is configured to be an address in the RAM memory area. And when the program to be upgraded is an application program, configuring the initial address as an address in an application program area of the FLASH memory.
In step S403, the distributed loading description file is compiled to obtain a burning file of the program to be upgraded.
And after the distributed encryption description file is configured, compiling the distributed encryption description file to obtain a burning file of the program to be upgraded. Here, the burning file of the program to be upgraded refers to a bin file that can be upgraded by an upper computer.
The area division of the FLASH memory is simple and easy to operate. In the embodiment, the initial address of the application program is configured, so that the application program can be written into any address in the application program area, and the cracking risk generated in a fixed address writing mode is favorably reduced; and the RAM memory area is used for receiving and storing the bootstrap program, so that the bootstrap program is conveniently received and backed up, and the self-upgrade of the bootstrap program is realized. The boot self-upgrade process will be described in detail below.
The receiving, by the upper computer, the start address and the program to be upgraded sent by the burning file in the step S102, and storing the program to be upgraded according to the start address includes:
in step S404, receiving the start address and the length information sent by the upper computer according to the burning file, and determining the RAM memory area according to the start address and the length information.
When the program is burned, the upper computer analyzes the burning file to obtain the program to be upgraded and the initial address, the check code information and the length information of the program to be upgraded, and the initial address, the length information, the check code information and the program to be upgraded are sequentially sent to a lower computer, namely the embedded single chip microcomputer.
When receiving the initial address and the length information sent by the upper computer, determining the backup space of the program to be upgraded in the RAM memory area according to the initial address and the length information so as to vacate the space to receive the program to be upgraded.
In step S405, a program to be upgraded, which is sent by the upper computer according to the burning file, is received, and the program to be upgraded is stored in the RAM memory area.
And the upper computer sends a program to be upgraded to the embedded single chip microcomputer. And the embedded single chip microcomputer receives the program to be upgraded and stores the program to be upgraded in the RAM memory area, so that the receiving and backup of the bootstrap program are completed.
In step S406, after the program to be upgraded is received, a verification instruction sent by the upper computer according to the burning file is received, and the program to be upgraded is verified according to the verification instruction.
After the receiving of the bootstrap program is finished, the embedded single chip microcomputer can perform self-upgrading according to the bootstrap program. Step S406 is the same as step S103, please refer to the description of the above embodiments, and the description thereof is omitted here.
In step S407, after the verification is passed, the loading area in the FLASH memory is erased, and the program to be upgraded in the RAM memory area is written into the erased loading area.
And if the computed CRC check code is the same as the received check code information, the comparison is passed, the boot program is started to be carried, and the original boot program in the loading area is erased firstly to make room for receiving the boot program. And then the bootstrap program stored in the RAM memory area is carried to a loading area in a FLASH memory, so that self-upgrading of the bootstrap program is realized, and the bootstrap program can be updated by directly connecting a communication interface without plugging and unplugging hardware and removing a shell when the content of a downloading flow and the file content of the bootstrap program are changed.
For the dividing manner of the FLASH memory shown in fig. 2 or fig. 4, when the program to be upgraded is an application program, the program to be upgraded is stored in the application program area. As shown in fig. 6, when the program is upgraded in step S102, receiving an initial address and a program to be upgraded, which are sent by an upper computer according to the burning file, and storing the program to be upgraded according to the initial address includes:
in step S601, the upper computer is received, according to the start address and the length information sent by the burning file, to erase the application program area determined by the start address and the length information.
When the program is burned, the upper computer analyzes the burning file to obtain the program to be upgraded and the initial address, the check code information and the length information of the program to be upgraded, and the initial address, the length information, the check code information and the program to be upgraded are sequentially sent to a lower computer, namely the embedded single chip microcomputer.
When receiving the initial address and the length information sent by the upper computer, determining the backup space of the program to be upgraded in the application program area according to the initial address and the length information, and erasing the backup space in the application program area to vacate the space to receive the program to be upgraded.
In step S602, a program to be upgraded, which is sent by the upper computer according to the burning file, is received, and the program to be upgraded is stored in the erased application program area.
And after the erasing is finished, the upper computer sends a program to be upgraded to the embedded single chip microcomputer. The embedded single chip microcomputer receives the program to be upgraded and stores the program to the erased application program area, so that the receiving and the storing of the application program are completed, the application program can be written into any address in the application program area, and the cracking risk generated in a fixed address writing mode in the prior art is favorably reduced.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, an upgrading apparatus for a chip program is provided, where the upgrading apparatus for the chip program corresponds to the upgrading method for the chip program in the foregoing embodiment one to one. As shown in fig. 7, the upgrading apparatus for the chip program includes a creating module 71, an upgrading module 72, a receiving module 73, and a self-upgrading module 74. The functional modules are explained in detail as follows:
the creating module 71 is configured to create a burning file of the program to be upgraded according to an area divided by an FLSAH memory in the embedded single chip microcomputer, where the burning file includes the program to be upgraded and an initial address of the program to be upgraded in the embedded single chip microcomputer;
the upgrading module 72 is configured to receive an initial address and a program to be upgraded, which are sent by the upper computer according to the burning file, when the program is upgraded, and store the program to be upgraded according to the initial address;
the verification module 73 is configured to receive a verification instruction sent by the upper computer according to the burning file after the program to be upgraded is received when the program to be upgraded is the boot program, and verify the program to be upgraded according to the verification instruction;
and the self-upgrading module 74 is configured to write the program to be upgraded on the starting address into the designated area of the FLASH memory after the verification is passed.
Optionally, the creating module 71 includes:
a first dividing unit, configured to divide the FLSAH memory into a load area, a load buffer area, and an application area;
the system comprises a first configuration unit, a second configuration unit and a third configuration unit, wherein the first configuration unit is used for creating a distributed loading description file in a preset development environment, and configuring a starting address of an application program to be an address in an application program area when the program to be upgraded is the application program or configuring the starting address of a boot program to be an address in a loading buffer area when the program to be upgraded is the boot program;
and the first compiling unit is used for compiling the scattered loading description file to obtain a burning file of the program to be upgraded.
Optionally, the creating module 71 includes:
a second dividing unit for dividing the FLSAH memory into a load area and an application area;
the second configuration unit is used for creating a dispersed loading description file in a preset development environment, and configuring the initial address of the application program as an address in an application program area when the program to be upgraded is the application program or configuring the initial address of the boot program as an address in an RAM memory area when the program to be upgraded is the boot program;
and the second compiling unit is used for compiling the scattered loading description file to obtain a burning file of the program to be upgraded.
Optionally, when the program to be upgraded is a boot program, the upgrading module 72 includes:
the first erasing unit is used for receiving the initial address and the length information sent by the upper computer according to the burning file and erasing the loading buffer area determined by the initial address and the length information;
the first storage unit is used for receiving a program to be upgraded sent by an upper computer according to the burning file and storing the program to be upgraded to the erased loading buffer area;
the self-upgrade module 74 includes:
and the first writing-in unit is used for erasing the loading area in the FLASH memory after the verification is passed, and writing the program to be upgraded in the loading buffer area into the erased loading area.
Optionally, when the program to be upgraded is a boot program, the upgrading module 72 includes:
the second erasing unit is used for receiving the initial address and the length information sent by the upper computer according to the burning file and determining an RAM memory area according to the initial address and the length information;
the second storage unit is used for receiving a program to be upgraded sent by an upper computer according to the burning file and storing the program to be upgraded to the RAM memory area;
the self-upgrade module 74 includes:
and the second writing unit is used for erasing the loading area in the FLASH memory after the verification is passed, and writing the program to be upgraded in the loading buffer area into the erased loading area.
Optionally, when the program to be upgraded is an application program, the upgrading module 72 includes:
the third erasing unit is used for receiving the initial address and the length information sent by the upper computer according to the burning file and erasing the application program area determined by the initial address and the length information;
and the third storage unit is used for receiving a program to be upgraded sent by the upper computer according to the burning file and storing the program to be upgraded to the erased application program area.
For the specific definition of the upgrading apparatus of the chip program, reference may be made to the above definition of the upgrading method of the chip program, and details are not described here. The modules in the upgrading device of the chip program can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method for upgrading a chip program.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
creating a burning file of a program to be upgraded according to an area divided by an FLSAH memory in an embedded single-chip microcomputer, wherein the burning file comprises the program to be upgraded and an initial address of the program to be upgraded in the embedded single-chip microcomputer;
when the program is upgraded, receiving an initial address and a program to be upgraded which are sent by an upper computer according to the burning file, and storing the program to be upgraded according to the initial address;
when the program to be upgraded is a bootstrap program, after the program to be upgraded is received, receiving a verification instruction sent by an upper computer according to the burning file, and verifying the program to be upgraded according to the verification instruction;
and after the verification is passed, writing the program to be upgraded on the initial address into a specified area of the FLASH memory.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for upgrading a chip program, comprising:
creating a burning file of a program to be upgraded according to an area divided by an FLSAH memory in an embedded single-chip microcomputer, wherein the burning file comprises the program to be upgraded and an initial address of the program to be upgraded in the embedded single-chip microcomputer;
when the program is upgraded, receiving an initial address and a program to be upgraded which are sent by an upper computer according to the burning file, and storing the program to be upgraded according to the initial address;
when the program to be upgraded is a bootstrap program, after the program to be upgraded is received, receiving a verification instruction sent by an upper computer according to the burning file, and verifying the program to be upgraded according to the verification instruction;
and after the verification is passed, writing the program to be upgraded on the initial address into a specified area of the FLASH memory.
2. The method for upgrading a chip program according to claim 1, wherein the creating of the burning file of the program to be upgraded according to the area divided by the FLSAH memory in the embedded single chip microcomputer comprises:
dividing the FLSAH memory into a loading area, a loading buffer area and an application program area;
creating a dispersed loading description file in a preset development environment, and configuring the initial address of an application program as an address in an application program area when the program to be upgraded is the application program or configuring the initial address of a bootstrap program as an address in a loading buffer area when the program to be upgraded is the bootstrap program;
and compiling the scattered loading description file to obtain a burning file of the program to be upgraded.
3. The method for upgrading a chip program according to claim 2, wherein the creating of the burning file of the program to be upgraded according to the area divided by the FLSAH memory in the embedded single chip microcomputer comprises:
dividing the FLSAH memory into a load area and an application area;
creating a scattered loading description file in a preset development environment, and configuring the initial address of the application program as an address in an application program area when the program to be upgraded is the application program or configuring the initial address of the application program as an address in an RAM memory area when the program to be upgraded is a bootstrap program;
and compiling the scattered loading description file to obtain a burning file of the program to be upgraded.
4. The method for upgrading a chip program according to claim 2, wherein when the program to be upgraded is a boot program, the receiving an initial address and the program to be upgraded which are sent by an upper computer according to the burning file and storing the program to be upgraded according to the initial address when the program to be upgraded is upgraded comprises:
receiving initial address and length information sent by an upper computer according to the burning file, and erasing a loading buffer area determined by the initial address and the length information;
receiving a program to be upgraded sent by an upper computer according to the burning file, and storing the program to be upgraded to the erased loading buffer area;
after the verification is passed, writing the program to be upgraded on the initial address into the designated area of the FLASH memory comprises the following steps:
after the verification is passed, erasing the loading area in the FLASH memory, and writing the program to be upgraded in the loading buffer area into the erased loading area.
5. The method for upgrading a chip program according to claim 3, wherein when the program to be upgraded is a boot program, the receiving an initial address and the program to be upgraded which are sent by an upper computer according to the burning file and storing the program to be upgraded according to the initial address when the program to be upgraded is upgraded comprises:
receiving initial address and length information sent by an upper computer according to the burning file, and determining an RAM memory area according to the initial address and the length information;
receiving a program to be upgraded sent by an upper computer according to the burning file, and storing the program to be upgraded to the RAM memory area;
after the verification is passed, writing the program to be upgraded on the initial address into the designated area of the FLASH memory comprises the following steps:
and after the verification is passed, erasing the loading area in the FLASH memory, and writing the program to be upgraded in the RAM memory area into the erased loading area.
6. The method for upgrading a chip program according to one of claims 2 and 3, wherein when the program to be upgraded is an application program, the receiving an initial address and the program to be upgraded which are sent by an upper computer according to the burning file and storing the program to be upgraded according to the initial address includes:
receiving initial address and length information sent by an upper computer according to the burning file, and erasing an application program area determined by the initial address and the length information;
and receiving a program to be upgraded sent by the upper computer according to the burning file, and storing the program to be upgraded to the erased application program area.
7. An apparatus for upgrading a chip program, the apparatus comprising:
the device comprises a creating module, a storage module and a processing module, wherein the creating module is used for creating a burning file of a program to be upgraded according to an area divided by an FLSAH storage in an embedded single chip microcomputer, and the burning file comprises the program to be upgraded and an initial address of the program to be upgraded in the embedded single chip microcomputer;
the upgrading module is used for receiving an initial address and a program to be upgraded which are sent by an upper computer according to the burning file when the program is upgraded, and storing the program to be upgraded according to the initial address;
the verification module is used for receiving a verification instruction sent by an upper computer according to the burning file after the program to be upgraded is received when the program to be upgraded is a bootstrap program, and verifying the program to be upgraded according to the verification instruction;
and the self-upgrading module is used for writing the program to be upgraded on the initial address into a specified area of the FLASH memory after the verification is passed.
8. The apparatus for upgrading a chip program according to claim 7, wherein the creating module includes:
a first dividing unit, configured to divide the FLSAH memory into a load area, a load buffer area, and an application area;
the system comprises a first configuration unit, a second configuration unit and a third configuration unit, wherein the first configuration unit is used for creating a distributed loading description file in a preset development environment, and configuring a starting address of an application program to be an address in an application program area when the program to be upgraded is the application program or configuring the starting address of the application program to be an address in a loading buffer area when the program to be upgraded is a boot program;
and the first compiling unit is used for compiling the scattered loading description file to obtain a burning file of the program to be upgraded.
9. The apparatus for upgrading a chip program according to claim 7, wherein the creating module includes:
a second dividing unit for dividing the FLSAH memory into a load area and an application area;
the second configuration unit is used for creating a dispersed loading description file in a preset development environment, and configuring the initial address of the application program as an address in an application program area when the program to be upgraded is the application program or configuring the initial address of the boot program as an address in an RAM memory area when the program to be upgraded is the boot program;
and the second compiling unit is used for compiling the scattered loading description file to obtain a burning file of the program to be upgraded.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements a method of upgrading a chip program according to any one of claims 1 to 6.
CN202010390739.3A 2020-05-11 2020-05-11 Chip program upgrading method and device and storage medium Active CN111309364B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010390739.3A CN111309364B (en) 2020-05-11 2020-05-11 Chip program upgrading method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010390739.3A CN111309364B (en) 2020-05-11 2020-05-11 Chip program upgrading method and device and storage medium

Publications (2)

Publication Number Publication Date
CN111309364A true CN111309364A (en) 2020-06-19
CN111309364B CN111309364B (en) 2020-10-27

Family

ID=71146431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010390739.3A Active CN111309364B (en) 2020-05-11 2020-05-11 Chip program upgrading method and device and storage medium

Country Status (1)

Country Link
CN (1) CN111309364B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984298A (en) * 2020-07-17 2020-11-24 歌尔光学科技有限公司 Program upgrading area in flash memory, program upgrading method and system
CN112241161A (en) * 2020-10-22 2021-01-19 贝思特门机(嘉兴)有限公司 Software upgrading mode of gantry crane controller
CN112379901A (en) * 2020-11-04 2021-02-19 深圳市科信通信技术股份有限公司 Singlechip firmware upgrading method and device, computer equipment and storage medium
CN112698857A (en) * 2021-01-04 2021-04-23 潍柴动力股份有限公司 Data flashing method and device
CN113467842A (en) * 2021-06-25 2021-10-01 厦门码灵半导体技术有限公司 Starting method of embedded equipment suitable for industrial application scene, embedded equipment and computer readable storage medium
CN113641378A (en) * 2021-07-13 2021-11-12 烽火通信科技股份有限公司 Optical module program upgrading method, device, equipment and readable storage medium
CN113672271A (en) * 2021-08-24 2021-11-19 天津津航计算技术研究所 Domestic FPGA remote upgrading system and method
CN113778472A (en) * 2021-09-14 2021-12-10 合肥芯颖科技有限公司 FLASH chip programming method and device and electronic equipment
CN113806774A (en) * 2021-09-15 2021-12-17 惠州市德赛电池有限公司 Encryption method, decryption method and system
CN116230060A (en) * 2023-05-08 2023-06-06 无锡国芯微高新技术有限公司 Data programming verification method and device for one-time programmable memory
CN116431189A (en) * 2023-06-12 2023-07-14 广州万协通信息技术有限公司 Board card upgrading method, device, equipment and storage medium based on PCIE link
CN116594661A (en) * 2023-07-19 2023-08-15 成都泰格微电子研究所有限责任公司 Singlechip upgrading method for ensuring matching of firmware and engineering in compiling stage

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461638A (en) * 2014-12-12 2015-03-25 四川华拓光通信股份有限公司 Bootloader based XFP optical module upgrading method
CN105677388A (en) * 2015-12-31 2016-06-15 清华大学苏州汽车研究院(吴江) Firmware updating method for motor controller of electric vehicle
CN105786573A (en) * 2016-03-16 2016-07-20 烽火通信科技股份有限公司 Method and system for rapidly upgrading ZigBee controller in smart home
CN107608702A (en) * 2017-10-25 2018-01-19 迈普通信技术股份有限公司 Bootloader program modules update method and device
CN108572830A (en) * 2017-12-22 2018-09-25 深圳市鼎阳科技有限公司 Upgrade method, the system of a kind of embedded system and its bootstrap
CN109213510A (en) * 2018-09-21 2019-01-15 深圳市鼎阳科技有限公司 A kind of application program updating method and storage medium for embedded device
US10241803B2 (en) * 2016-10-03 2019-03-26 Schneider Electric It Corporation System and method for updating device software
CN109871223A (en) * 2019-01-17 2019-06-11 南京品畅科技发展有限公司 A kind of IAP method and system based on stm32 single-chip microcontroller
US20190187970A1 (en) * 2017-12-20 2019-06-20 Coolbitx Ltd. Method of updating firmware of closed storage device
CN110045968A (en) * 2019-04-16 2019-07-23 广东欧谱曼迪科技有限公司 A kind of method of the STM32 across single-chip microcontroller burning program
CN110187909A (en) * 2019-06-03 2019-08-30 山东海格尔信息技术股份有限公司 A kind of single-chip microcontroller firmware upgrade method based on android system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461638A (en) * 2014-12-12 2015-03-25 四川华拓光通信股份有限公司 Bootloader based XFP optical module upgrading method
CN105677388A (en) * 2015-12-31 2016-06-15 清华大学苏州汽车研究院(吴江) Firmware updating method for motor controller of electric vehicle
CN105786573A (en) * 2016-03-16 2016-07-20 烽火通信科技股份有限公司 Method and system for rapidly upgrading ZigBee controller in smart home
US10241803B2 (en) * 2016-10-03 2019-03-26 Schneider Electric It Corporation System and method for updating device software
CN107608702A (en) * 2017-10-25 2018-01-19 迈普通信技术股份有限公司 Bootloader program modules update method and device
US20190187970A1 (en) * 2017-12-20 2019-06-20 Coolbitx Ltd. Method of updating firmware of closed storage device
CN108572830A (en) * 2017-12-22 2018-09-25 深圳市鼎阳科技有限公司 Upgrade method, the system of a kind of embedded system and its bootstrap
CN109213510A (en) * 2018-09-21 2019-01-15 深圳市鼎阳科技有限公司 A kind of application program updating method and storage medium for embedded device
CN109871223A (en) * 2019-01-17 2019-06-11 南京品畅科技发展有限公司 A kind of IAP method and system based on stm32 single-chip microcontroller
CN110045968A (en) * 2019-04-16 2019-07-23 广东欧谱曼迪科技有限公司 A kind of method of the STM32 across single-chip microcontroller burning program
CN110187909A (en) * 2019-06-03 2019-08-30 山东海格尔信息技术股份有限公司 A kind of single-chip microcontroller firmware upgrade method based on android system

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984298A (en) * 2020-07-17 2020-11-24 歌尔光学科技有限公司 Program upgrading area in flash memory, program upgrading method and system
CN111984298B (en) * 2020-07-17 2023-07-25 歌尔科技有限公司 Program upgrading area in flash memory, program upgrading method and system
CN112241161A (en) * 2020-10-22 2021-01-19 贝思特门机(嘉兴)有限公司 Software upgrading mode of gantry crane controller
CN112379901A (en) * 2020-11-04 2021-02-19 深圳市科信通信技术股份有限公司 Singlechip firmware upgrading method and device, computer equipment and storage medium
CN112698857B (en) * 2021-01-04 2023-09-19 潍柴动力股份有限公司 Method and equipment for data refreshing
CN112698857A (en) * 2021-01-04 2021-04-23 潍柴动力股份有限公司 Data flashing method and device
CN113467842A (en) * 2021-06-25 2021-10-01 厦门码灵半导体技术有限公司 Starting method of embedded equipment suitable for industrial application scene, embedded equipment and computer readable storage medium
CN113467842B (en) * 2021-06-25 2023-09-19 厦门码灵半导体技术有限公司 Method for starting embedded device suitable for industrial application scene, embedded device and computer readable storage medium
CN113641378A (en) * 2021-07-13 2021-11-12 烽火通信科技股份有限公司 Optical module program upgrading method, device, equipment and readable storage medium
CN113641378B (en) * 2021-07-13 2024-01-26 烽火通信科技股份有限公司 Optical module program upgrading method, device, equipment and readable storage medium
CN113672271A (en) * 2021-08-24 2021-11-19 天津津航计算技术研究所 Domestic FPGA remote upgrading system and method
CN113778472A (en) * 2021-09-14 2021-12-10 合肥芯颖科技有限公司 FLASH chip programming method and device and electronic equipment
CN113806774A (en) * 2021-09-15 2021-12-17 惠州市德赛电池有限公司 Encryption method, decryption method and system
CN113806774B (en) * 2021-09-15 2024-02-13 惠州市德赛电池有限公司 Encryption method, decryption method and system
CN116230060A (en) * 2023-05-08 2023-06-06 无锡国芯微高新技术有限公司 Data programming verification method and device for one-time programmable memory
CN116431189A (en) * 2023-06-12 2023-07-14 广州万协通信息技术有限公司 Board card upgrading method, device, equipment and storage medium based on PCIE link
CN116431189B (en) * 2023-06-12 2024-02-27 广州万协通信息技术有限公司 Board card upgrading method, device, equipment and storage medium based on PCIE link
CN116594661A (en) * 2023-07-19 2023-08-15 成都泰格微电子研究所有限责任公司 Singlechip upgrading method for ensuring matching of firmware and engineering in compiling stage
CN116594661B (en) * 2023-07-19 2023-09-19 成都泰格微电子研究所有限责任公司 Singlechip upgrading method for ensuring matching of firmware and engineering in compiling stage

Also Published As

Publication number Publication date
CN111309364B (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN111309364B (en) Chip program upgrading method and device and storage medium
CN110231952B (en) ECU program backup and cyclic upgrade control method and device
KR100584338B1 (en) Method and system for updating software
US6047128A (en) System for downloading software
CN107566169B (en) Firmware upgrading method based on openwrt and router
CN109086078B (en) Android system upgrading method and device, server and mobile terminal
CN111026417A (en) Embedded equipment upgrading method and embedded equipment
US7809878B2 (en) Apparatus and method for controlling flash memory
CN106919865B (en) Non-volatile memory data encryption system
JP4740553B2 (en) Data access request remapping system
CN113094077A (en) System differential upgrading method and device, intelligent terminal and storage medium
CN112860287A (en) System program upgrading method and device, computer equipment and storage medium
CN110928570A (en) Firmware upgrading method and device and readable storage medium
CN112148377B (en) Method and device for preventing SSD from abnormal power failure in EFI Shell environment
JP2002175193A (en) Device and method for rewriting program
JP3649932B2 (en) Program update apparatus and program update method
JP4910402B2 (en) Nonvolatile memory rewriting device and rewriting method
CN112732309B (en) Flash memory updating method and device and electronic equipment
CN114567628B (en) OTA upgrading method and device
CN111625265B (en) Method and device for reducing DRAM space consumption in firmware upgrade
CN116594661B (en) Singlechip upgrading method for ensuring matching of firmware and engineering in compiling stage
CN117215720A (en) Method, system, medium and device for accessing RBD device by virtual machine
CN116560687A (en) Firmware upgrading method and system based on USB MSC transmission protocol
KR20010056103A (en) Flash Memory To Share With Booting And Main Operation Program In System And Upgrade Method In That Memory
CN104077153A (en) Method for burning computer system firmware

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