CN110059005B - Program detection method of flash memory and implantable medical device - Google Patents

Program detection method of flash memory and implantable medical device Download PDF

Info

Publication number
CN110059005B
CN110059005B CN201910233555.3A CN201910233555A CN110059005B CN 110059005 B CN110059005 B CN 110059005B CN 201910233555 A CN201910233555 A CN 201910233555A CN 110059005 B CN110059005 B CN 110059005B
Authority
CN
China
Prior art keywords
program
storage unit
application program
boot
normal
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
CN201910233555.3A
Other languages
Chinese (zh)
Other versions
CN110059005A (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.)
Tsinghua University
Beijing Pins Medical Co Ltd
Original Assignee
Tsinghua University
Beijing Pins Medical 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 Tsinghua University, Beijing Pins Medical Co Ltd filed Critical Tsinghua University
Publication of CN110059005A publication Critical patent/CN110059005A/en
Application granted granted Critical
Publication of CN110059005B publication Critical patent/CN110059005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing

Abstract

The invention provides a program detection method of a flash memory and an implanted medical device, wherein the flash memory comprises at least two first storage units for storing the same boot program and at least two second storage units for storing the same application program; wherein the program detection method comprises: whether the self-check of the currently executed application program is normal or not; when the self-checking is normal, whether the programs stored in each of the first storage units and each of the other second storage units are normal or not is checked, and processing is performed when an abnormality is detected.

Description

Program detection method of flash memory and implantable medical device
Technical Field
The invention relates to the field of electronic equipment memories, in particular to a program detection method of a flash memory and implantable medical equipment.
Background
Flash memory (Flash memory or Flash memory) has the advantages of no data loss in power-off, convenient multiple times of erasing and the like, and most of the embedded processors in the current electronic equipment use the Flash memory as a program memory.
When a device is operated in an extreme environment (e.g., high temperature, low temperature, strong electromagnetic interference, strong radiation, etc.), or even in a normal environment but requires a long-term operation, the code stored in the Flash memory may be damaged due to environmental influences and potential defects of the Flash memory itself. The influence is light, and partial data errors can be caused; when the influence is serious, the program can be confused and even can not be executed at all.
The prior art typically writes a Bootloader program (bootstrap program) in Flash. The Bootloader program can initialize hardware equipment and establish a memory space mapping chart, so that the software and hardware environment of the system is brought to a proper state, and a correct environment is prepared for finally calling an operating system kernel. When the device is started, the application program can be checked through the Bootloader program, and when the application program is damaged, the Bootloader program rewrites the application program by using the application program backup stored in advance.
However, the prior art has two problems, the first is that for some electronic devices which need to operate for a long time, such as implantable medical devices, the devices need to perform certain treatment on human bodies without interruption, and the rebooting operation cannot be performed frequently, so that the Bootloader program cannot be started; and secondly, even if the device can be restarted periodically, the exception caused by the error of the Bootloader program cannot be avoided. Therefore, the existing abnormal detection scheme of the Flash memory has certain limitations, and when the scheme is applied to the medical field, even potential safety hazards exist, and the reliability of the scheme needs to be improved.
Disclosure of Invention
In view of the above, the present invention provides a program detecting method for detecting a program in a flash memory, the flash memory including at least two first storage units for storing a same boot program and at least two second storage units for storing a same application program, the method comprising:
whether the self-check of the currently executed application program is normal or not;
when the self-checking is normal, whether the programs stored in each of the first storage units and each of the other second storage units are normal or not is detected, and processing is performed when an abnormality is detected.
Optionally, when the self-checking is abnormal, waking up a bootstrap program in a first storage unit;
the awakened bootstrap program starts another application program in the second storage unit.
Optionally, the processing when the abnormality is detected includes:
the currently executed application program respectively detects whether the bootstrap program in each first storage unit is normal;
and when at least one boot program in the first storage unit is normal and at least one boot program in the first storage unit is abnormal, refreshing the abnormal boot program code by using the normal boot program code.
Optionally, the processing when the abnormality is detected includes:
the currently executed application program respectively detects whether the application programs in other second storage units are normal;
and when the application program in the second storage unit is abnormal, refreshing the abnormal application program code by using the code of the application program.
Optionally, the flash memory further comprises a parameter storage unit;
when the self-checking is abnormal, the currently executed application program stores at least part of parameters in the parameter storage unit;
waking up a boot program in a first storage unit;
the awakened bootstrap program starts an application program in another second storage unit;
the started application program reads the parameters in the parameter storage unit.
Optionally, when the boot program is woken up, it is determined whether the number of times of waking up the boot program is equal to the number of the second storage units, and when the number of times of waking up the boot program is equal to the number of the second storage units, an error message is output.
Optionally, the flash memory further includes a check code storage unit, in which a plurality of boot program check codes are stored, where the boot program check codes respectively correspond to the data segments of the boot program; the currently executed application program determines whether the bootstrap program is normal by calculating the check codes of the data segments of the bootstrap program and comparing the calculated check codes with the stored check codes of the bootstrap program.
Optionally, the flash memory further includes a check code storage unit, in which a plurality of application check codes are stored, where the application check codes respectively correspond to the data segments of the application; the currently executed application program determines whether the application program is normal or not by calculating the check codes of all data segments of the application program and comparing the calculated check codes with the stored check codes of the application program.
The present invention also provides an implantable medical device comprising: at least one processor; and a flash memory communicatively connected to the at least one processor; wherein the flash memory stores instructions executable by the processor, the instructions being executable by the at least one processor to cause the at least one processor to perform the program detection method.
According to the flash memory program detection method provided by the embodiment of the invention, the application program with the detection function is programmed in the memory, the executed application program firstly determines whether the application program is normal, detects whether programs of all other storage units are normal when the application program is determined to be normal, and can take corresponding measures when the abnormality is detected. According to the scheme, the detection operation is not required to be executed by the bootstrap program, so that the equipment is not required to be restarted, whether the bootstrap program is abnormal or not can be detected, and the reliability of the system can be improved when the scheme is applied.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings 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 some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a diagram of a flash memory structure according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a bootstrap detection method in one embodiment of the present invention;
FIG. 3 is a branch flow diagram of an application detection method in accordance with an embodiment of the present invention;
FIG. 4 is another branch flow diagram of an application detection method in an embodiment of the invention;
FIG. 5 is a diagram of a flash memory according to another embodiment of the present invention;
FIG. 6 is a diagram of a flash memory according to a third embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
An embodiment of the present invention provides a Flash memory, i.e., a Flash memory, and as shown in fig. 1, the Flash memory includes a first boot program storage unit 11, a second boot program storage unit 12, a first application program storage unit 13, and a second application program storage unit 14. The "unit" in the present invention may be several continuous areas divided into one storage space of the memory, and may also be referred to as "area" or "block" in the art; the "unit" in the present invention may also be hardware, for example, the "unit" may be a sub memory, a sub memory chip, or the like in a flash memory system.
The contents stored in the first boot program storage unit 11 and the second boot program storage unit 12 are completely the same, that is, the same boot program code (code of Bootloader) is stored after the first programming, and may be collectively referred to as "first storage unit". The boot program is used for initializing hardware equipment and establishing a memory space mapping chart, so that the software and hardware environment of the system is brought to a proper state, and a correct environment is prepared for finally calling an operating system kernel.
In this embodiment, two identical boot programs are stored, and only one of them is executed at the same time, and for this reason, their primary and secondary relationships may be set in advance. Under normal conditions, for example, when the system is started for the first time, a preset boot program is executed. Accordingly, the first boot program storage unit 11 may be set as a main unit, and the second boot program storage unit 12 may be set as a backup unit.
In other embodiments, more boot program storage units and more of the same boot program may be provided and their orders set accordingly.
The contents stored in the first application storage unit 13 and the second application storage unit 14 are completely the same, and after the first programming, the codes of the application programs are stored, which may be collectively referred to as "second storage unit". The application program is used to implement various specific functions, for example in a medical device application scenario, it may be a program that implements a therapy. During normal operation of the device, the processor executes applications rather than boot programs. The boot program described above may also be used to update these applications.
Similar to the boot program, in the present embodiment, two identical application programs are stored, and only one of them is executed at the same time, and for this reason, the primary and secondary relationship thereof may be set in advance, and normally, a preset one of the application programs is executed. Accordingly, the first application storage unit 13 can be set as a master unit and the second application storage unit 14 can be set as a backup unit.
Unlike the bootstrap program, the designer can set the content of the application program individually, and in addition to realizing its own specific function, the designer is also provided with a function of detecting the memory in the present embodiment. When an application program is executed, it is periodically detected whether or not the application program itself and the programs stored in the respective storage units are normal, and processing is performed when an abnormality is detected. That is, the application program includes a program check module, such as a Bootloader program check module and an application program check module, in addition to the function module.
In one embodiment, assuming that the application currently in the first application storage unit 13 is in a state of being executed, it will periodically detect whether the programs in the first boot storage unit 11, the second boot storage unit 12, the first application storage unit 13 (the unit in which it is located), and the second application storage unit 14, respectively, are normal. The detection period may be every several hours, every few days, or even every few months, and the detection period may be the same or different for each detection object. For example, for a boot program, the detection period may be relatively long (every month), while for an application, the detection period may be relatively short (every few days or weeks).
For different detection objects, there are various processing manners adopted when an exception is detected, for example, when an exception is detected, because both boot programs are not in an execution state, the measures adopted are relatively easy, for example, the normal boot program code can be directly used to refresh the abnormal boot program code; when the application program is detected to be abnormal, because one of the two application programs is in an execution state, the adopted measures are relatively complex, namely different countermeasures are adopted for the self abnormality and the backup application program abnormality.
In other embodiments, more application storage units and more of the same application may be provided and their order set accordingly. When the application program is executed, it periodically detects whether the programs stored in itself and all other storage units are normal, and performs processing when an abnormality is detected.
In extreme cases it may be detected that all of the boot programs are abnormal, or that all of the application programs are abnormal, and an error message may be output to prompt the user to take other measures, such as updating the application programs and the boot programs via external devices.
The flash memory provided by the embodiment of the invention is provided with a plurality of storage units for storing the boot program so as to realize backup of the boot program; and has a plurality of storage units for storing the application programs for backup of the application programs. The memory is programmed with an application program with a detection function, which periodically detects whether programs of all memory units including itself are normal, and can take corresponding measures when an abnormality is detected. According to the scheme, the bootstrap program is not required to execute the detection operation, so that the equipment is not required to be restarted, whether the bootstrap program is abnormal or not can be detected, and the reliability of the system can be improved when the scheme is applied.
In other embodiments, if the focus is on detecting and processing the boot program, the flash memory may be provided with only one second storage unit and a plurality of first storage units, and the stored application program may detect whether the boot program itself and the respective first storage units are normal, and perform the above-described processing according to the detection result.
The invention provides a detection and error handling scheme of a bootstrap program. Specifically, when the application program in the application program storage unit is executed, if it is detected that the boot program in at least one boot program storage unit is normal and the boot program in at least one boot program storage unit is abnormal, the abnormal boot program code is refreshed by using the normal boot program code.
Taking the structure of the flash memory shown in fig. 1 as an example, in one embodiment, assuming that the application program in the first application program storage unit 13 is currently in an executed state, it will periodically execute the method shown in fig. 2, including the following steps:
s21, it is detected whether the boot program in the first boot program storage unit 11 is normal. And executing the steps S22-S23 under the condition that the detection result is normal, otherwise executing the steps S24-S26.
S22, it is detected whether the boot program in the second boot program storage unit 12 is normal. If the detection result is normal, all the boot programs are normal, and the detection operation of the period is finished; if the detection result is abnormal, executing step S23;
s23, the boot program code in the second boot program storage unit 12 is refreshed by using the boot program code in the first boot program storage unit 11, that is, the abnormal program code is refreshed by using the normal boot program code. After that, the process may return to step S21 to perform the detection again.
S24, it is detected whether the boot program in the second boot program storage unit 12 is normal. If the detection result is normal, executing step S25, otherwise executing step S26;
s25, the boot program code in the first boot program storage unit 11 is refreshed by using the boot program code in the second boot program storage unit 12, that is, the abnormal program code is refreshed by using the normal boot program code. After that, the process may return to step S21 to perform the detection again.
And S26, outputting error information, namely indicating that all the boot programs are abnormal, and prompting the user to take other measures. For example, the user may launch an application and update all of the boot programs via the external device, or the currently running application may automatically update the boot programs via the external device.
In one embodiment of the invention, a flash memory having an application program storage unit and a boot program storage unit is provided in an implanted medical device. When the application programs in the application program storage unit are executed, if the fact that all the bootstrap programs in all the bootstrap program storage units are abnormal is detected, the short-range wireless communication can be carried out with the extracorporeal device through the wireless communication module of the implanted medical equipment so as to obtain the code of the normal bootstrap program, and then the bootstrap programs in all the bootstrap program storage units are updated; or the wireless communication module of the implanted medical equipment can remotely and wirelessly communicate with a remote terminal to acquire the code of the normal bootstrap program and then update the bootstrap program in the storage unit of the whole bootstrap program.
The invention provides a detection and error handling scheme for an application program. Specifically, when the application program detects that the application program is normal when executed, and the application program in the at least one second storage unit is abnormal, the abnormal application program code is refreshed by using the own code.
Taking the structure of the flash memory shown in fig. 1 as an example, in one embodiment, assuming that the application program in the first application program storage unit 13 is currently in the executed state, it will periodically execute the method shown in fig. 3:
and S31, detecting whether the device is normal or not. And step S32 is executed if the detection result is normal, otherwise, the application program will wake up the boot program in one first storage unit, and the application program in another second storage unit is started by the wake-up boot program. In particular, this will be described in detail in connection with fig. 4 in the next embodiment.
S32, detecting whether the application program in the second application program storage unit 14 is normal. If the detection result is normal, all the application programs are normal, and the detection operation on the application programs is finished; if the detection result is abnormal, executing step S33;
s33, the application program code in the second application storage unit 14 is refreshed by using the application program code in the first application storage unit 13, that is, the abnormal program code is refreshed by using the normal application program code. After that, the process may return to step S31 to perform the detection again.
With respect to refreshing the code of the application program, in one embodiment of the present invention, the program module having the error may be specifically identified, and only the program module having the error may be updated. For example, the application program includes a program check module (Bootloader program check module and application program check module) and a function module, and when the program check module is normal and the function module is abnormal, only the code of the function module may be refreshed. In a preferred embodiment, the application and the bootstrap program are detected and processed by using the methods of fig. 2 and 3. Assuming that the application program in the first application program storage unit 13 is currently in the executed state, when the detection operation is started, it will first perform the method shown in fig. 3, detect whether the program in the first application program storage unit 13 (the unit in which it is located) is normal, and detect whether the programs in the second application program storage unit 14, the first bootstrap program storage unit 11, and the second bootstrap program storage unit 12 are normal, respectively, when it is normal, thereby avoiding erroneous detection of other programs in the case where there is an error in the application program itself.
The following describes measures for handling an exception of the application program itself in the execution state with reference to fig. 4 and 5. As shown in fig. 5, based on the memory structure shown in fig. 1, the flash memory in this embodiment further includes a parameter storage unit 15, which is used to store parameters used by the application program, for example, all the parameters may be, or part of the critical parameters may be.
Taking the structure of the flash memory shown in fig. 5 as an example, assuming that the application program in the first application program storage unit 13 is currently in the executed state, it will periodically execute the method shown in fig. 4:
s41, storing at least part of the parameters in the parameter storage unit 15, and waking up the boot program. It should be noted that, in the case of performing synchronization with the method shown in fig. 2, the embodiment preferably performs the method shown in fig. 2 first to ensure the state of the boot program, and then performs the methods shown in fig. 3 and fig. 4 when the boot program is confirmed to be normal. Of course, in other embodiments, for example, only one bootstrap program may default to normal, or the method may be performed directly without regard to its status.
S42, the bootstrap program determines whether the number of times of waking up itself is equal to the number of the second storage units, in this embodiment, there are a first application storage unit and a second application storage unit, and the number is 2. Step S43 is performed when the number of times of being woken up is equal to the number of second storage units, and step S44 is performed otherwise.
And S43, outputting error information, namely indicating that all the application programs are abnormal, and prompting the user to take other measures.
S44, the application program in the second application program storage unit 14 is started by the boot program, and the parameter in the parameter storage unit 15 is read. After that, the application program in the second application program storage unit 14 will read the saved parameters and continue to execute the operation before the interruption, and it may return to execute the method shown in fig. 3 and continue to detect whether it is normal.
In one embodiment of the invention, a flash memory having an application program storage unit and a boot program storage unit is provided in an implanted medical device. When the application programs in the application program storage units are executed, if all the application programs in all the application program storage units are detected to be abnormal, the wireless communication module of the implanted medical equipment can be used for carrying out short-range wireless communication with the external device so as to acquire codes of the normal application programs, and then the application programs in all the application program storage units are updated; or the wireless communication module of the implanted medical equipment can remotely and wirelessly communicate with a remote terminal to acquire the code of the normal application program, and then the application program in the whole application program storage unit is updated.
Regarding the detection method of the program, the prior art usually adopts the verification check code to determine whether the program has changed. Specifically, a check code is generated and stored in advance according to a normal program code, when detection is carried out, the check code is calculated according to the current program code and is compared with the check code stored in advance, and if the check code is consistent with the check code, the current program is considered to be normal. Furthermore, the check code can be stored in multiple copies, and compared for multiple times, and a majority voting mode is adopted to judge whether the program changes.
In an embodiment of the present invention, a check code is used to detect a program, which is different from the prior art in that the present embodiment uses multiple check codes to detect a program, and the method can be applied to detect the application program and the bootstrap program.
On the basis of the memory structure shown in fig. 1 or fig. 5, the flash memory in the embodiment shown in fig. 6 further includes a check code storage unit 16, which can be used to store a plurality of boot check codes, where the boot check codes respectively correspond to the data segments of the boot program;
and, can be used to store a plurality of application check codes, which correspond to each data segment of the application, respectively.
For the boot program, the normal boot program may be divided into a plurality of data segments in advance, and a check code may be calculated for each data segment and stored in the check code storage unit 16. When executed, the application program periodically calculates check codes of all data segments of the boot program, and determines whether the boot program is normal or not by comparing the calculated check codes with a plurality of stored boot program check codes.
When the boot program is refreshed, the normal check code may be used to refresh the boot program check code corresponding to the refreshed boot program in the check code storage unit 16. Specifically, a normal boot program can be used to recalculate a normal check code; or acquiring a normal check code by means of external equipment.
For the application program, the normal application program may be divided into a plurality of data segments in advance, and a check code may be calculated for each data segment and stored in the check code storage unit 16. When the application program is executed, the check codes of all data segments of the application program are periodically calculated, and whether the bootstrap program is normal or not is determined by comparing the calculated check codes with a plurality of stored application program check codes.
When the application program is refreshed, the application program check code corresponding to the refreshed application program in the check code storage unit 16 can also be refreshed by using the normal check code. Specifically, a normal check code can be recalculated by using a normal application program; or acquiring the normal check code by external equipment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (5)

1. A program detecting method, for detecting a program in a flash memory, the flash memory including at least two first storage units for storing a same boot program, at least two second storage units for storing a same application program, the application program being a program for implementing a therapy, and a check code storage unit in which a plurality of boot program check codes and a plurality of application program check codes are stored, the application program check codes respectively corresponding to respective data segments of the application program, the boot program check codes respectively corresponding to respective data segments of the boot program; the method comprises the following steps:
initializing hardware equipment through the bootstrap program when the equipment is started, wherein the application program currently executed in the second storage unit is continuously executed after the bootstrap program is initialized so as to realize corresponding therapy, and performing self-check on whether the therapy is normal or not; the currently executed application program determines whether the application program is normal or not by calculating check codes of all data segments of the application program and comparing the calculated check codes with a plurality of stored application program check codes;
when the self-checking is normal, whether the programs stored in each first storage unit and each other second storage unit are normal is checked, and whether the bootstrap program is normal is determined by calculating check codes of each data segment of the bootstrap program and comparing each calculated check code with a plurality of stored bootstrap program check codes by the currently executed application program;
when at least one boot program in the first storage unit is normal and at least one boot program in the first storage unit is abnormal, the abnormal boot program code is refreshed by using the normal boot program code;
and when the application program in the second storage unit is abnormal, refreshing the abnormal application program code by using the code of the application program.
2. The detection method according to claim 1, wherein a boot program in a first storage unit is woken up when the self-detection is abnormal;
the awakened bootstrap program starts another application program in the second storage unit.
3. The method of claim 2, wherein the flash memory further comprises a parameter storage unit;
when the self-checking is abnormal, the currently executed application program stores at least part of parameters in the parameter storage unit;
waking up a boot program in a first storage unit;
the awakened bootstrap program starts an application program in another second storage unit;
the started application program reads the parameters in the parameter storage unit.
4. The method according to claim 3, wherein when the boot program is woken up, it is determined whether the number of times it is woken up is equal to the number of the second storage units, and when the number of times it is woken up is equal to the number of the second storage units, an error message is output.
5. An implantable medical device, comprising: at least one processor; and a flash memory communicatively connected to the at least one processor; wherein the flash memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the program detection method according to any one of claims 1 to 4, when the executed application program detects that all the boot programs in all the boot program storage units are abnormal, performing short-range wireless communication with an external apparatus through the wireless communication module of the present apparatus, or performing long-range wireless communication with a remote terminal through the wireless communication module of the present apparatus to acquire a code of a normal boot program, and updating all the boot programs in the first storage unit.
CN201910233555.3A 2019-01-30 2019-03-26 Program detection method of flash memory and implantable medical device Active CN110059005B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2019100908279 2019-01-30
CN201910090827 2019-01-30

Publications (2)

Publication Number Publication Date
CN110059005A CN110059005A (en) 2019-07-26
CN110059005B true CN110059005B (en) 2022-12-16

Family

ID=67316345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910233555.3A Active CN110059005B (en) 2019-01-30 2019-03-26 Program detection method of flash memory and implantable medical device

Country Status (1)

Country Link
CN (1) CN110059005B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1497462A (en) * 2002-09-24 2004-05-19 ���ǵ�����ʽ���� System and method of booting by flaoh memory
JP2012064244A (en) * 2011-12-19 2012-03-29 Hitachi Ltd Network boot computer system, management computer and control method for computer system
CN103226482A (en) * 2013-03-22 2013-07-31 深圳市九洲电器有限公司 Method and device for guiding and starting set top box
CN104778060A (en) * 2015-04-07 2015-07-15 珠海全志科技股份有限公司 Rapid and safe starting method for embedded Linux system
CN105824717A (en) * 2016-03-16 2016-08-03 硅谷数模半导体(北京)有限公司 Method and device for controlling chip operation and chip
CN108376077A (en) * 2018-02-11 2018-08-07 广东美的厨房电器制造有限公司 The upgrade method and device of control unit

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100532413B1 (en) * 2002-12-02 2005-12-02 삼성전자주식회사 apparatus and method for protecting flash memory
CN100410893C (en) * 2005-09-28 2008-08-13 联想(北京)有限公司 Method and apparatus for master-controlled applied programm of self-repairing built-in equipment
JP4939102B2 (en) * 2006-04-21 2012-05-23 株式会社日立製作所 Reliable method for network boot computer system
CN100578461C (en) * 2008-03-12 2010-01-06 中兴通讯股份有限公司 Backup method and apparatus for bootstrap
CN102270162B (en) * 2011-07-29 2013-01-16 中国航天科技集团公司第五研究院第五一三研究所 Fault-tolerant guide method applied to SPARCV8 structure computer
US9471435B2 (en) * 2012-01-05 2016-10-18 Mitsubishi Electric Corporation Information processing device, information processing method, and computer program
CN105448333B (en) * 2014-08-29 2019-06-28 北京兆易创新科技股份有限公司 A kind of flash memory and its processing method
CN104809398A (en) * 2015-04-21 2015-07-29 深圳怡化电脑股份有限公司 Tamper-proof method and tamper-proof device for bootstrap firmware of password keyboard
CN106873990B (en) * 2017-01-23 2020-07-10 北京空间飞行器总体设计部 Multi-partition guiding method under embedded system RAM damage mode

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1497462A (en) * 2002-09-24 2004-05-19 ���ǵ�����ʽ���� System and method of booting by flaoh memory
JP2012064244A (en) * 2011-12-19 2012-03-29 Hitachi Ltd Network boot computer system, management computer and control method for computer system
CN103226482A (en) * 2013-03-22 2013-07-31 深圳市九洲电器有限公司 Method and device for guiding and starting set top box
CN104778060A (en) * 2015-04-07 2015-07-15 珠海全志科技股份有限公司 Rapid and safe starting method for embedded Linux system
CN105824717A (en) * 2016-03-16 2016-08-03 硅谷数模半导体(北京)有限公司 Method and device for controlling chip operation and chip
CN108376077A (en) * 2018-02-11 2018-08-07 广东美的厨房电器制造有限公司 The upgrade method and device of control unit

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"A two-stage bootloader to support multi-application deployment and switching in wireless sensor networks";A Marchiori 等;《2009 International Conference on Computational Science and Engineering 2》;20091231;第72-78页 *
"基于证书链验证机制的智能终端安卓系统安全加固方案";江家仁 等;《电信科学》;20170210;第33卷(第2期);第32-35页 *
"基于高频RFID的微处理器IAP技术";刘根贤 等;《电子技术应用》;20130406;第39卷(第4期);第29-31页 *

Also Published As

Publication number Publication date
CN110059005A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
US20090094450A1 (en) Firmware image update and management
US20110320794A1 (en) Flash System And Method For Updating The Flash System
WO2016062084A1 (en) Power-off processing method and apparatus, and electronic device
WO2016206514A1 (en) Startup processing method and device
CN103761112A (en) Vehicle-mounted multimedia device and control method thereof
CN103577332A (en) Control device for vehicle and error processing method in control device for vehicle
CN104063477A (en) Processing method and processing device for startup abnormalities of embedded system
CN103577201A (en) Embedded dual system updating method and system
CN112040476A (en) Upgrading method and device for Internet of things terminal
CN105700919A (en) BMS application rapid update method and update system
CN112379932A (en) Boot method and Boot device of electronic equipment and electronic equipment
CN110083393B (en) Flash memory and implantable medical device
CN111651304A (en) Software recovery method and device based on double-core intelligent electric meter and computer equipment
CN115237647A (en) Firmware abnormity repairing method and device, electronic equipment and computer storage medium
JP2009271737A (en) Information processor
CN110059005B (en) Program detection method of flash memory and implantable medical device
CN110060726B (en) Program detection method of flash memory and implantable medical device
CN111857785B (en) MCU starting method and device and terminal equipment
CN113220319A (en) Data updating method and device and vehicle
US20230087221A1 (en) Detection fields of view
US11640288B2 (en) System version upgrading method and apparatus
CN115993985A (en) Bootloader updating method, bootloader updating device, bootloader updating equipment and Bootloader updating medium
US10101765B2 (en) BIOS real-time clock update
CN104216797B (en) Embedded system setting value initialization system, method and electronic installation
CN105573802B (en) Multiprocessor mainboard power supply management program remote upgrading method

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