CN111078261B - Flash memory upgrading device and vehicle - Google Patents

Flash memory upgrading device and vehicle Download PDF

Info

Publication number
CN111078261B
CN111078261B CN201911108389.0A CN201911108389A CN111078261B CN 111078261 B CN111078261 B CN 111078261B CN 201911108389 A CN201911108389 A CN 201911108389A CN 111078261 B CN111078261 B CN 111078261B
Authority
CN
China
Prior art keywords
flash memory
register
electronic switch
single chip
chip microcomputer
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
CN201911108389.0A
Other languages
Chinese (zh)
Other versions
CN111078261A (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.)
Honorsun Xiamen Data Co ltd
Original Assignee
Honorsun Xiamen Data 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 Honorsun Xiamen Data Co ltd filed Critical Honorsun Xiamen Data Co ltd
Priority to CN201911108389.0A priority Critical patent/CN111078261B/en
Publication of CN111078261A publication Critical patent/CN111078261A/en
Application granted granted Critical
Publication of CN111078261B publication Critical patent/CN111078261B/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

Abstract

The invention discloses a flash memory upgrading device and a vehicle, wherein the flash memory upgrading device comprises: the system comprises a register, a flash memory, an electronic switch and a singlechip; the flash memory is used for storing information sent by the register, the electronic switch is respectively connected with the register, the flash memory and the singlechip, and the electronic switch is used for switching the connection relation between the flash memory and the register or between the flash memory and the singlechip; the service life of the register and the flash memory can be effectively prolonged, the flash memory upgrading process is simplified, and the cost of manpower and material resources required for maintaining the register and the flash memory is saved.

Description

Flash memory upgrading device and vehicle
Technical Field
The invention relates to the technical field of hardware upgrading, in particular to a flash memory upgrading device and a vehicle.
Background
The register is a component in the central processing unit, and the register is a high-speed storage unit with limited storage capacity and is used for temporarily storing instructions, data, addresses and the like.
In the related art, when the register is used, a plug-in flash memory is often required to store information such as pictures and word stock data. When the flash memory is upgraded, the flash memory needs to be detached from the register; then, the program or data is programmed into the flash memory by the programmer. Furthermore, the flash memory is frequently disassembled, so that the service life of the register and the flash memory is greatly reduced, and the step of upgrading the flash memory is very complicated, so that a large amount of manpower and material resources are wasted.
Disclosure of Invention
The present invention is directed to solving at least one of the technical problems in the art to some extent. Therefore, an object of the present invention is to provide a flash memory upgrading apparatus, which can effectively prolong the service life of a register and a flash memory, and at the same time, simplify the flash memory upgrading process and save the cost of manpower and material resources required for maintaining the register and the flash memory.
A second object of the invention is to propose a vehicle.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a flash memory upgrade apparatus, including: the device comprises a register, a flash memory, an electronic switch and a singlechip; the flash memory is used for storing information sent by the register, the electronic switch is respectively connected with the register, the flash memory and the single chip microcomputer, and the electronic switch is used for switching the connection relation between the flash memory and the register or between the flash memory and the single chip microcomputer.
The flash memory upgrading device comprises the register, the flash memory, the electronic switch and the single chip microcomputer, the flash memory is used for storing information sent by the register, and the electronic switch is respectively connected with the register, the flash memory and the single chip microcomputer, so that the connection relation between the flash memory and the register or the single chip microcomputer can be switched through the electronic switch, the flash memory can be directly controlled through the single chip microcomputer to be upgraded without being disassembled when the flash memory needs to be upgraded, the service lives of the register and the flash memory are effectively prolonged, meanwhile, the flash memory upgrading process is simplified, and the manpower and material resources cost required for maintaining the register and the flash memory is saved.
In addition, the flash memory upgrading device proposed according to the above embodiment of the present invention may further have the following additional technical features:
optionally, if the flash memory upgrading device is in a flash memory upgrading state, the electronic switch switches the connection relationship between the flash memory and the single chip microcomputer so as to upgrade the flash memory through the single chip microcomputer.
Optionally, if the flash memory upgrading device is in a normal working state, the electronic switch switches a connection relation between the flash memory and the register, so that the flash memory can store the information sent by the register through the connection between the flash memory and the register.
Optionally, the method further comprises: the single chip microcomputer is connected with the electronic switch through the power conversion chip, and the power conversion chip is used for carrying out level conversion on the single chip microcomputer.
Optionally, the flash memory is controlled by the single chip microcomputer through an SPI interface.
In order to achieve the above object, a second embodiment of the present invention provides a vehicle, including the flash memory upgrading device as described above.
According to the vehicle provided by the embodiment of the invention, the flash memory upgrading device is arranged on the vehicle, so that the service lives of the register and the flash memory are effectively prolonged, meanwhile, the flash memory upgrading process is simplified, and the cost of manpower and material resources required for maintaining the register and the flash memory is saved.
Drawings
FIG. 1 is a block diagram of a flash upgrade apparatus according to an embodiment of the present invention;
FIG. 2 is a block diagram of a flash memory upgrade apparatus according to another embodiment of the present invention;
FIG. 3 is a schematic circuit diagram of an electronic switch according to an embodiment of the present invention;
FIG. 4 is a circuit diagram of a flash memory according to an embodiment of the present invention;
fig. 5 is a schematic circuit diagram of a power conversion chip according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and intended to explain the present invention and should not be construed as limiting the present invention.
In the related art, when the flash memory is upgraded, the flash memory needs to be disassembled, so that the service lives of the flash memory and the register are greatly influenced, and the upgrading process is complicated and wastes manpower and material resources; the flash memory upgrading device comprises a register, a flash memory, an electronic switch and a single chip microcomputer, wherein the flash memory is used for storing information sent by the register, and the electronic switch is respectively connected with the register, the flash memory and the single chip microcomputer, so that the connection relation between the flash memory and the register or the single chip microcomputer can be switched through the electronic switch, the flash memory can be directly controlled through the single chip microcomputer without being disassembled when the flash memory needs to be upgraded, the service lives of the register and the flash memory are effectively prolonged, meanwhile, the upgrading process of the flash memory is simplified, and the manpower and material resources cost required for maintaining the register and the flash memory is saved.
In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 1, fig. 1 is a block diagram illustrating a flash memory upgrade apparatus according to an embodiment of the present invention, as shown in fig. 1, the flash memory upgrade apparatus includes: register 10, flash memory 20, electronic switch 30 and singlechip 40.
The flash memory 20 is used for storing the information sent by the register 10; that is, when the flash memory 20 is connected to the register 10, information (e.g., picture information, font data information, etc.) transmitted to the register 10 is stored through the flash memory 20; the electronic switch 30 is connected to the register 10, the flash memory 20 and the single chip microcomputer 40, so that the connection relationship among the electronic switch 30, the flash memory 20 and the single chip microcomputer 40 can be controlled through the electronic switch 30, that is, when the electronic switch 30 is switched to a first channel, the flash memory 20 is connected to the single chip microcomputer 40, and when the electronic switch 30 is switched to a second channel, the flash memory 20 is connected to the register 10.
In some embodiments, in order to ensure that the flash memory 20 does not need to be detached during the upgrading process, when the flash memory upgrading device is in the flash memory upgrading state, the electronic switch 30 switches the connection relationship to the flash memory 20 to be connected with the single chip microcomputer 40, so as to upgrade the flash memory 20 through the single chip microcomputer 40; it can be understood that when the flash upgrading apparatus is in the flash upgrading state, the flash upgrading apparatus is directly connected to the flash memory 20 through the single chip 40, and the flash memory 20 can be controlled through the single chip 40 to perform operations such as sector erasing, block erasing, sector programming, sector reading, and the like on the flash memory 20.
As an example, sector programming and sector erasing are specifically implemented as follows: firstly, sending a write enable command; then, sending a read state command to judge whether the write enable is effective or not, if the judgment result is invalid, returning to the step of sending the write enable command, and if the judgment result is valid, writing the programming command and the address data; then, it is checked whether the operation is successful.
In some embodiments, the flash memory 20 is controlled by the single chip microcomputer 40 through the SPI interface.
In some embodiments, in order to ensure that the flash memory 20 can normally operate when not in the upgrade state, when the flash upgrade apparatus is in the normal operation state, the electronic switch 30 switches the connection relationship between the flash memory 20 and the register 10, so that the flash memory 20 can store the information sent by the register 10 through the connection with the register 10.
In some embodiments, since the operating voltage of the part of the single chip microcomputer 40 is 5V and the operating voltage of the register 10 and the flash memory 20 is 3V, as shown in fig. 2, in order to unify the operating voltages, the flash memory upgrade apparatus further includes: the power conversion chip 50, the singlechip 40 pass through the power conversion chip 50 to be connected with electronic switch 30, and the power conversion chip 50 is used for carrying out level conversion to the singlechip 40 to make the operating voltage of flash memory upgrading device unified.
In an embodiment of the present invention, the flash memory upgrade apparatus proposed in the present invention is better explained; as shown in fig. 3, fig. 3 is a schematic circuit connection diagram of the electronic switch 30.
As shown in fig. 3, the electronic switch 30 is a two-way electronic selection switch, and selects a conduction path according to a gating pin (S). When the first pin S of the U18 chip is low, the flash memory 20 is connected to the register 10, i.e., the chips 1A and 1B1, 2A and 2B1, 4A and 4B1 are conducted. When the first pin S is at a high level, the flash memory 20 is connected to the single chip 40, i.e., the chips 1A and 1B2, 2A and 2B2, and 4A and 4B2 are turned on.
In an embodiment of the present invention, to better illustrate the proposed flash memory upgrade apparatus of the present invention; as shown in fig. 4, fig. 4 is a circuit connection diagram of the flash memory.
Fig. 4 shows the connection interface between the flash memory and other devices, and the flash memory 20 is an SPI flash memory device. pin2 and pin10 chip provide the power, and pin1, pin7, pin8, pin15, pin16 are SPI bus interface and external connection. Since the flash memory upgrading device provided by the invention needs to update the flash memory data, all the flash memories 20 adopt a 4.7-ohm pull-up disabling protection function.
In an embodiment of the present invention, to better illustrate the proposed flash memory upgrade apparatus of the present invention; as shown in fig. 5, fig. 5 is a schematic circuit connection diagram of the power conversion chip 50.
Because the single chip microcomputer 40 and the flash memory 20 have different working voltages, the power conversion chip 50 adopts a TXS0104EPWR chip. The corresponding voltage is automatically converted inside. The working voltage of the chips A1 to A4 connected with the flash memory 20 is 3.3V, and the working voltage of the chips B1 to B4 connected with the SPI of the singlechip 40 is 5V. The power supply of a pin ACCA of the chip 1 is 3.3V, the power supply of a pin ACCB of the chip 14 is 5V, and a pin8 of the chip is connected with a high level enable chip as an enable pin by default.
In summary, the flash memory upgrading device according to the embodiment of the present invention includes a register, a flash memory, an electronic switch, and a single chip, where the flash memory is used to store information sent by the register, and the electronic switch is respectively connected to the register, the flash memory, and the single chip, so that the connection relationship between the flash memory and the register or the single chip can be switched through the electronic switch, and the flash memory can be directly controlled by the single chip to upgrade the flash memory without detaching the flash memory when the flash memory needs to be upgraded, thereby effectively prolonging the service lives of the register and the flash memory, simplifying the flash memory upgrading process, and saving the costs of manpower and material resources required for maintaining the register and the flash memory.
In order to implement the foregoing embodiment, an embodiment of the present invention further provides a vehicle, including the flash memory upgrading device as described above.
According to the vehicle provided by the embodiment of the invention, the flash memory upgrading device is arranged on the vehicle, so that the service lives of the register and the flash memory are effectively prolonged, meanwhile, the flash memory upgrading process is simplified, and the cost of manpower and material resources required for maintaining the register and the flash memory is saved.
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 noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood according to specific situations by those of ordinary skill in the art.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above should not be understood to necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Moreover, various embodiments or examples and features of various embodiments or examples described in this specification can be combined and combined by one skilled in the art without being mutually inconsistent.
Although embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are exemplary and not to be construed as limiting the present invention, and that changes, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (4)

1. A flash upgrade apparatus, comprising: the system comprises a register, a flash memory, an electronic switch and a singlechip;
the flash memory is used for storing information sent by the register, the electronic switch is respectively connected with the register, the flash memory and the singlechip, and the electronic switch is used for switching the connection relation between the flash memory and the register or the singlechip;
if the flash memory upgrading device is in a flash memory upgrading state, the electronic switch switches the connection relation to the flash memory to be connected with the single chip microcomputer so as to upgrade the flash memory through the single chip microcomputer;
if the flash memory upgrading device is in a normal working state, the electronic switch switches the connection relation between the flash memory and the register so that the flash memory can store the information sent by the register through the connection between the flash memory and the register.
2. The flash upgrade apparatus of claim 1, further comprising: the single chip microcomputer is connected with the electronic switch through the level conversion chip, and the level conversion chip is used for carrying out level conversion on the single chip microcomputer.
3. The flash memory upgrading device according to any of claims 1-2, wherein the flash memory is controlled by the single chip via an SPI interface.
4. A vehicle comprising a flash upgrade device as claimed in any one of claims 1-2.
CN201911108389.0A 2019-11-13 2019-11-13 Flash memory upgrading device and vehicle Active CN111078261B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911108389.0A CN111078261B (en) 2019-11-13 2019-11-13 Flash memory upgrading device and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911108389.0A CN111078261B (en) 2019-11-13 2019-11-13 Flash memory upgrading device and vehicle

Publications (2)

Publication Number Publication Date
CN111078261A CN111078261A (en) 2020-04-28
CN111078261B true CN111078261B (en) 2022-10-18

Family

ID=70310927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911108389.0A Active CN111078261B (en) 2019-11-13 2019-11-13 Flash memory upgrading device and vehicle

Country Status (1)

Country Link
CN (1) CN111078261B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104464809A (en) * 2014-11-05 2015-03-25 武汉新芯集成电路制造有限公司 Method for prolonging service life of flash memory

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9003102B2 (en) * 2011-08-26 2015-04-07 Sandisk Technologies Inc. Controller with extended status register and method of use therewith
CN202956753U (en) * 2012-11-05 2013-05-29 汕尾芯灵电子科技有限公司 Programming device and programming system of flash memory chip in embedded system
CN105808452B (en) * 2014-12-29 2019-04-26 北京兆易创新科技股份有限公司 The data progression process method and system of micro-control unit MCU
CN107844330A (en) * 2017-10-25 2018-03-27 郑州云海信息技术有限公司 A kind of method and system of enhancing ARM startup of server code reliabilities
CN108932961A (en) * 2018-07-20 2018-12-04 江苏华存电子科技有限公司 It is a kind of to promote reaction rate method using flash memory pin

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104464809A (en) * 2014-11-05 2015-03-25 武汉新芯集成电路制造有限公司 Method for prolonging service life of flash memory

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
51单片机中几个寄存器的使用;韩彩霞;《电脑知识与技术》;20131231;第3174-3176页 *

Also Published As

Publication number Publication date
CN111078261A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
JP6602823B2 (en) Extended usage range for memory devices
JP5053552B2 (en) Data storage device having heterogeneous non-volatile memory and driving method thereof
US8392649B2 (en) Memory storage device, controller, and method for responding to host write commands triggering data movement
US20060174100A1 (en) System and method of booting an operating system for a computer
CN106445398B (en) A kind of embedded file system and its implementation based on novel memory devices
US20070180223A1 (en) Computer system and method of booting the system
US8996788B2 (en) Configurable flash interface
CN102135927A (en) Method and device for system booting based on NAND FLASH
US9171619B2 (en) Method and apparatus for configuring write performance for electrically writable memory devices
CN111108488B (en) Memory block recovery method and device
KR20080099692A (en) Nonvolatile memory device, memory system thereof, and reading method thereof
CN106227683A (en) Electronic equipment and information processing method
CN101334758A (en) Device and method for embedded system expanding memory space
CN106649137B (en) Nand Flash bad block management method and device and memory
CN102075710A (en) Starting operation method for television and television
CN103425436A (en) Terminal equipment and virtual storage unit management method
CN105608013A (en) MRAM-integrated memory card control chip and memory card
CN111078261B (en) Flash memory upgrading device and vehicle
US9223697B2 (en) Computer reprogramming method, data storage medium and motor vehicle computer
CN111708577A (en) Method and equipment for self-adapting processor model and VR parameter
US7979606B2 (en) Method for storing data
CN116719724A (en) eMMC multi-platform testing method and device and electronic equipment
CN103186470A (en) Memory storage device and memory controller and data writing method thereof
CN111338700B (en) Method and device for loading FPGA version and storage medium
US6883078B2 (en) Microcomputer with reduced memory usage and associated 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