CN1288570C - On-line soft ware upgrading circuit and its method - Google Patents
On-line soft ware upgrading circuit and its method Download PDFInfo
- Publication number
- CN1288570C CN1288570C CNB2003101184911A CN200310118491A CN1288570C CN 1288570 C CN1288570 C CN 1288570C CN B2003101184911 A CNB2003101184911 A CN B2003101184911A CN 200310118491 A CN200310118491 A CN 200310118491A CN 1288570 C CN1288570 C CN 1288570C
- Authority
- CN
- China
- Prior art keywords
- controller
- data access
- software
- memory
- access controller
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000003068 static effect Effects 0.000 claims abstract description 53
- 230000001360 synchronised effect Effects 0.000 claims description 12
- 125000004122 cyclic group Chemical group 0.000 claims description 3
- 238000012795 verification Methods 0.000 claims description 3
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The present invention discloses an on-line software upgrading circuit and a method thereof, which belongs to the field of software update. Without needing an eraser and a specific software update tool, the present invention can realize the software upgrade on chips and can be conveniently used. When a data access controller is controlled under an access controller 1 of a direct memory, new software is put into a static memory 2; a central processing unit transmits control commands of the data access controller to the data access controller; the data access controller transmits conditions of the data access controller to the central processing unit; after the central processing unit receives the software update commands and the conditions of the data access controller, software update programs in a read only memory are transferred to a static memory 1; the central processing unit reads the software update programs in the static memory 1; in addition, new software in the static memory 2 is written in the read only memory through the static memory / a read only memory controller.
Description
Technical field
The present invention relates to the software upgrading field, relate in particular to online software upgrade circuit and method thereof.
Background technology
In the prior art, the upgrading of software is that the software loading medium is taken off, and by erasable device original software is wiped, and writes new software then, again the software loading medium is inserted the old place.The shortcoming of this method for upgrading software is to repeat to access the software loading medium, and software bearing medium and carrier are all had in various degree damage.Another kind of software upgrading scheme is the hardware interface by specific software upgrading tool and software bearing medium, the software bearing medium is carried out erasable to finish software upgrading by this interface when software upgrading.Above-mentioned these methods are not implementation methods on the sheet, need erasable device and specific software upgrade tool, use very inconvenient.
Summary of the invention
At the problems of the prior art and deficiency, a kind of online software upgrade circuit and method thereof have been the object of the present invention is to provide.It does not need erasable device and specific software upgrade tool promptly can realize the upgrading of software on sheet, and is very easy to use.
In order to realize the foregoing invention purpose, technical scheme of the present invention realizes as follows:
A kind of online software upgrade circuit comprises data access controller, direct memory access (DMA) controller one, static memory two, static memory one, static memory/ROM controller.Described data access controller receives the new software that data-interface sends, guaranteeing that under the correct prerequisite of CRC, described data access controller is put into static memory two with new software by the direct memory access (DMA) operation under the control of direct memory access (DMA) controller one.Described central processing unit sends data access controller control command to described data access controller, described data access controller sends data access controller state to central processing unit, after described central processing unit receives software upgrading order and data access controller state, under the control of static memory/ROM controller, software upgrade procedure in the ROM (read-only memory) is transferred in the static memory one, described central processing unit reads the software upgrade procedure in the static memory one, and by static memory/ROM controller the new software in the static memory two is write in the ROM (read-only memory).
Described data-interface can be USB interface, and the data access controller can be the USB controller.Described data-interface can also be the UART interface, and the data access controller can also be the UART controller.
The present invention can also comprise direct memory access (DMA) controller two, when the procedure quantity of new software is big, guaranteeing under the correct prerequisite of CRC, described data access controller is put into synchronous DRAM with new software by the direct memory access (DMA) operation under the control of direct memory access (DMA) controller one, guaranteeing that under the correct prerequisite of CRC, described synchronous DRAM is put into static memory two with new software by the direct memory access (DMA) operation successively under the control of direct memory access (DMA) controller two.
A kind of online software upgrade method the steps include: 1) the data access controller receives the new software that data-interface sends; 2) central processing unit receives the software upgrading order; 3) Cyclic Redundancy Code to the new software that obtains carries out verification; 4) if the CRC of new software is correct, execution in step 5),, then report an error if the CRC of new software is incorrect; 5) the data access controller is put into static memory two with new software by the direct memory access (DMA) operation; 6) the data access controller sends data access controller state to central processing unit; 7) central processing unit is transferred to static memory one with the software upgrade procedure in the ROM (read-only memory); 8) central processing unit reads the ROMPaq in the static memory one, and the new software in the static memory two is write in the ROM (read-only memory); 9) send the hot reset signal; 10) carry out new work with new software.
Above-mentioned steps 5) the data access controller in is put into synchronous DRAM with new software by the direct memory access (DMA) operation earlier, if CRC is correct, synchronous DRAM is put into static memory two by the direct memory access (DMA) operation with new software more successively, if CRC is incorrect, then report an error.
The ball bearing made using that the present invention forms by data access controller, direct memory access (DMA) controller one, static memory two, static memory one, static memory/ROM controller and central processing unit has realized upgrading on the sheet of software.Make the upgrading of software no longer need specific software upgrade tool and erasable device, but directly upgrade software is read in the ROM (read-only memory) by data-interface, very easy to use.
Description of drawings
Fig. 1 be apparatus of the present invention structure principle chart;
Fig. 2 is the structure principle chart of the specific embodiment 1 of apparatus of the present invention;
Fig. 3 is the structure principle chart of the specific embodiment 2 of apparatus of the present invention;
Fig. 4 is the structure principle chart of the specific embodiment 3 of apparatus of the present invention;
Fig. 5 is the structure principle chart of the specific embodiment 4 of apparatus of the present invention;
Fig. 6 is the structure principle chart of the specific embodiment 5 of apparatus of the present invention;
Fig. 7 is the process flow diagram of the inventive method.
Below in conjunction with the drawings and specific embodiments the present invention is further specified.
Embodiment
Referring to Fig. 1, a kind of online software upgrade circuit comprises data access controller 1, direct memory access (DMA) controller 1, static memory 23, static memory 1, static memory/ROM controller 6.Described data access controller 1 receives the new software that data-interface sends, guaranteeing that under the correct prerequisite of CRC, described data access controller 1 is put into static memory 23 with new software by the direct memory access (DMA) operation under the control of direct memory access (DMA) controller 1.Described central processing unit 7 sends data access controller control command to described data access controller 1, described data access controller 1 sends data access controller state for central processing unit 7, after described central processing unit 7 receives software upgrading order and data access controller state, under the control of static memory/ROM controller 6, the software upgrade procedure in the ROM (read-only memory) 5 is transferred in the static memory 1.Described central processing unit 7 reads the software upgrade procedure in the static memory 1, and by static memory/ROM controller 6 the new software in the static memory 23 is write in the ROM (read-only memory) 5.
Referring to Fig. 2, the structure of specific embodiment 1 is identical with device shown in Figure 1, and described data-interface can be USB interface, and data access controller 1 can be the USB controller.
Referring to Fig. 3, the structure of specific embodiment 2 is identical with device shown in Figure 1, and described data-interface can be the UART interface, and data access controller 1 can be the UART controller.
Referring to Fig. 4, specific embodiment 3 also comprises direct memory access (DMA) controller 28 on the basis of device shown in Figure 1, when the procedure quantity of new software is big, guaranteeing under the correct prerequisite of CRC, described data access controller 1 is put into synchronous DRAM 9 with new software by the direct memory access (DMA) operation under the control of direct memory access (DMA) controller 1, guaranteeing that under the correct prerequisite of CRC, described synchronous DRAM 9 is put into static memory 23 with new software by the direct memory access (DMA) operation successively under the control of direct memory access (DMA) controller 28.
Referring to Fig. 5, specific embodiment 4 is identical with apparatus structure shown in Figure 4, and described data-interface can be USB interface, and data access controller 1 can be the USB controller.
Referring to Fig. 6, specific embodiment 5 is identical with apparatus structure shown in Figure 4, and described data-interface can be the UART interface, and data access controller 1 can be the UART controller.
Referring to Fig. 7, a kind of online software upgrade method the steps include: 1) the data access controller receives the new software that data-interface sends; 2) central processing unit receives the software upgrading order; 3) Cyclic Redundancy Code to the new software that obtains carries out verification; 4) if the CRC of new software is correct, execution in step 5),, then report an error if the CRC of new software is incorrect; 5) the data access controller is put into static memory two with new software by the direct memory access (DMA) operation; 6) the data access controller sends data access controller state to central processing unit; 7) central processing unit is transferred to static memory one with the software upgrade procedure in the ROM (read-only memory); 8) central processing unit reads the ROMPaq in the static memory one, and the new software in the static memory two is write in the ROM (read-only memory); 9) send the hot reset signal; 10) carry out new work with new software.
Above-mentioned steps 5) the data access controller in is put into synchronous DRAM with new software by the direct memory access (DMA) operation earlier, if CRC is correct, synchronous DRAM is put into static memory two by the direct memory access (DMA) operation with new software more successively, if CRC is incorrect, then report an error.
Claims (8)
1. online software upgrade circuit, comprise central processing unit (7) and ROM (read-only memory) (5), it is characterized in that, also comprise data access controller (1), direct memory access (DMA) controller one (2), static memory two (3), static memory one (4), static memory/ROM controller (6), described data access controller (1) receives the new software that data-interface sends, guaranteeing under the correct prerequisite of CRC, described data access controller (1) is put into static memory two (3) with new software by the direct memory access (DMA) operation under the control of direct memory access (DMA) controller one (2), described central processing unit (7) sends data access controller control command to described data access controller (1), described data access controller (1) sends data access controller state for central processing unit (7), after described central processing unit (7) receives software upgrading order and data access controller state, under the control of static memory/ROM controller (6), software upgrade procedure in the ROM (read-only memory) (5) is transferred in the static memory one (4), described central processing unit (7) reads the software upgrade procedure in the static memory one (4), and by static memory/ROM controller (6) the new software in the static memory two (3) is write in the ROM (read-only memory) (5).
2. according to the described online software upgrade circuit of claim 1, it is characterized in that described data-interface is a USB interface, data access controller (1) is the USB controller.
3. according to the described online software upgrade circuit of claim 1, it is characterized in that described data-interface is the UART interface, data access controller (1) is the UART controller.
4. according to the described online software upgrade circuit of claim 1, it is characterized in that, also comprise direct memory access (DMA) controller two (8), when the procedure quantity of new software is big, guaranteeing under the correct prerequisite of CRC, described data access controller (1) is put into synchronous DRAM (9) with new software by the direct memory access (DMA) operation under the control of direct memory access (DMA) controller one (2), guaranteeing that under the correct prerequisite of CRC, described synchronous DRAM (9) is put into static memory two (3) with new software by the direct memory access (DMA) operation successively under the control of direct memory access (DMA) controller two (8).
5. according to the described online software upgrade circuit of claim 4, it is characterized in that described data-interface is a USB interface, data access controller (1) is the USB controller.
6. according to the described online software upgrade circuit of claim 5, it is characterized in that described data-interface is the UART interface, data access controller (1) is the UART controller.
7. an online software upgrade method the steps include: 1) the data access controller receives the new software that data-interface sends; 2) central processing unit receives the software upgrading order; 3) Cyclic Redundancy Code to the new software that obtains carries out verification; 4) if the CRC of new software is correct, execution in step 5),, then report an error if the CRC of new software is incorrect; 5) the data access controller is put into static memory two with new software by the direct memory access (DMA) operation; 6) the data access controller sends data access controller state to central processing unit; 7) central processing unit is transferred to static memory one with the software upgrade procedure in the ROM (read-only memory); 8) central processing unit reads the ROMPaq in the static memory one, and the new software in the static memory two is write in the ROM (read-only memory); 9) send the hot reset signal; 10) carry out new work with new software.
8. according to the described online software upgrade method of claim 7, it is characterized in that, when the procedure quantity of new software is big, data access controller in the described step 5) is put into synchronous DRAM with new software by the direct memory access (DMA) operation earlier, if CRC is correct, synchronous DRAM is put into static memory two by the direct memory access (DMA) operation with new software more successively, if CRC is incorrect, then reports an error.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2003101184911A CN1288570C (en) | 2003-12-19 | 2003-12-19 | On-line soft ware upgrading circuit and its method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2003101184911A CN1288570C (en) | 2003-12-19 | 2003-12-19 | On-line soft ware upgrading circuit and its method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1555017A CN1555017A (en) | 2004-12-15 |
CN1288570C true CN1288570C (en) | 2006-12-06 |
Family
ID=34338031
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2003101184911A Expired - Fee Related CN1288570C (en) | 2003-12-19 | 2003-12-19 | On-line soft ware upgrading circuit and its method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1288570C (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100386725C (en) * | 2005-03-16 | 2008-05-07 | 华为技术有限公司 | Mobile station of updatable mobile state software and updating method |
CN100384122C (en) * | 2005-05-25 | 2008-04-23 | 深圳创维数字技术股份有限公司 | On-line promotion method for network terminal product |
CN101436138B (en) * | 2007-11-16 | 2013-04-10 | 苏州科达科技股份有限公司 | Control device and control method for software upgrade and dynamic rolling back |
CN104240418B (en) * | 2014-09-22 | 2019-03-22 | 无锡物联网产业研究院 | A kind of signal processing method and warning device |
-
2003
- 2003-12-19 CN CNB2003101184911A patent/CN1288570C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1555017A (en) | 2004-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20110022783A1 (en) | Flash storage with increased throughput | |
DE69221045D1 (en) | Method and device for programmable memory control with error control and test functions | |
EP1221646A3 (en) | Disk control system and method | |
CN101876925A (en) | Internal storage mirroring method, device and system | |
CN111338562A (en) | Data storage device and data processing method | |
CN109697170A (en) | The method of access flash memory module and relevant flash controller and electronic device | |
CN1288570C (en) | On-line soft ware upgrading circuit and its method | |
CN101159957A (en) | Data terminal equipment updating, renovating method and device | |
CN1740992A (en) | The BIOS on-line rewriting method | |
EP1806650A3 (en) | Information processing apparatus, controller and file reading method | |
TWI744049B (en) | Data processing method and memory controller utilizing the same | |
CN2689348Y (en) | On-line software updating circuits | |
CN100342361C (en) | Method and apparatus for fast reading and writing memory data | |
CN2874629Y (en) | Error insert analogue device of computer test | |
CN101615420B (en) | Flash memory storage device with data correction function | |
CN1245682C (en) | Computer chip data write-in device and method | |
CN111863096B (en) | Method and device for reading data of NOR flash memory | |
CN110415756B (en) | Method and device for testing SSD label information | |
US20060136662A1 (en) | Method, apparatus, and computer program product for permitting access to a storage drive while the drive is being formatted | |
CN1492308A (en) | Mouse device capable of storing data | |
CN1595537A (en) | A system for simulating physical damage of NAND flash memory and method thereof | |
CN1728281A (en) | Mobile memory device with embedded functions of compression and decompression | |
CN1743984A (en) | Data copying method for programmeable logic controller | |
CN117408061B (en) | Whole vehicle model simulation performance optimization system and computer device | |
CN1253792C (en) | Control circuit for testing high internal memory address and its control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20061206 Termination date: 20111219 |