WO1997009673A1 - Transferring code to computer without accessing ram - Google Patents

Transferring code to computer without accessing ram Download PDF

Info

Publication number
WO1997009673A1
WO1997009673A1 PCT/US1996/014082 US9614082W WO9709673A1 WO 1997009673 A1 WO1997009673 A1 WO 1997009673A1 US 9614082 W US9614082 W US 9614082W WO 9709673 A1 WO9709673 A1 WO 9709673A1
Authority
WO
WIPO (PCT)
Prior art keywords
register
cpu
instruction
input element
instructions
Prior art date
Application number
PCT/US1996/014082
Other languages
French (fr)
Other versions
WO1997009673A9 (en
Inventor
David L. Paulsen
Original Assignee
Metricom, Inc.
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
Priority claimed from US08/566,877 external-priority patent/US5664194A/en
Application filed by Metricom, Inc. filed Critical Metricom, Inc.
Publication of WO1997009673A1 publication Critical patent/WO1997009673A1/en
Publication of WO1997009673A9 publication Critical patent/WO1997009673A9/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Definitions

  • This invention relates to techniques for starting computer systems and more particularly to a method for downloading executable code to a computer which is not provided with conventional boot code autonomous from the central processing unit.
  • Flash memory devices come in at least two forms —bulk erase, and boot-block.
  • Bulk erase flash devices must be erased in toto.
  • the device In order for a device using a bulk erase flash memory device to permit the consumer to update its stored program, the device must first erase its entire stored program, and then re-program it. If the process is interrupted after erasure but prior to enough of the stored program to be programmed (typically an interval of many seconds) , the device is rendered inoperable. Furthermore, because the boot program has been erased, the device cannot be reloaded.
  • Boot block flash memory devices have been devised to address this problem. In these devices, a portion of the memory is separately erasable, permitting a boot program to be stored there. Unfortunately, boot block flash memory devices are expensive. In addition, they require that the memory device be pre-programmed prior to fabrication, which adds manufacturing cost to the device.
  • a start-up mode after reset whereby boot- up instructions are by default always accepted directly from an external source.
  • the device may comprise a gate array (GA) which is connected directly via a serial port to a receiving or input device, to receive program code for transfer directly as instructions to a microprocessor-type central processing unit.
  • the central processing unit is part of a computer controlled device containing a microprocessor, memory (a RAM) , and typically a bulk erase flash memory device, the flash memory device being unprogrammed when the computer controlled device is fabricated originally.
  • the gate array directly monitor bits received via the serial port from the input device and shifts them into a local register from which bytes or words are loaded directly into the CPU as instructions.
  • a boot sequence is thereby accepted in this manner to load random access memory of the free-running CPU which thereafter can control transfer of additional executable code or load a permanent boot sequence into bulk erase (nonvolatile) flash memory.
  • the invention can be incorporated into a wireless modem/packet terminal node controller.
  • the input device may be a coupling to an external computer system, typically a serial input.
  • Figure 1 is a block diagram of the system having a CPU, flash memory, RAM, gate array, serial port and receiving device, according to the invention.
  • Figure 2A is a schematic of a first version of circuitry inside the gate array which, in conjunction with the data being shifted in, forms the boot loader.
  • Figure 2B is a schematic of a second version of circuitry inside the gate array which, in conjunction with the data being shifted in, forms the boot loader.
  • FIG. 1 is a flowchart illustrating the sequence of operations according to the invention.
  • a computer-based system 10 such as a terminal node controller
  • the CPU 12, flash memory 14, RAM 16, and gate array 18 are connected to a data bus 24 and an address bus 26.
  • the gate array is coupled to the serial port 20 which in turn is coupled to receiving device 22.
  • the receiving device is for example a serial connector.
  • the gate array 18 has data i/o, address input and control input to/from the CPU 12, and a serial input line 28 and a control line 30.
  • FIG. 2A there is shown a schematic diagram of a first version of the gate array 18.
  • a serial I/O section 32 There is a serial I/O section 32, a receiving register section 34, and a CPU instruction control section 36.
  • timing circuitry 38 is provided to automatically terminate the default boot sequence in the event no valid request for instruction is received.
  • FIG. 2B there is shown a schematic diagram of a second version of the gate array 18.
  • a serial I/O section 132 receives serial data from a serial I/O section 132 and a serial data from a serial data bus 136.
  • no timing circuitry is provided to automatically terminate the default boot sequence in the event no valid request for instruction is received.
  • An external "push" signal 138 is provided which must be present to activate and maintain the boot sequence.
  • Step A Upon reset or power up (Step A) , the "virgin flash" mode is initiated (Step B) and the gate array looks for instruction requests from the CPU 12 (Step C) .
  • the gate array waits for about 16 ms to determine if a valid instruction request is received.
  • the "push" signal 138 In the alternative embodiment of Fig. 2B, the "push" signal 138 must remain asserted throughout the "virgin flash” mode. These alternative functions control the exit mechanism.
  • the receiving register section 134 routinely accepts serial data each cycle from the serial port 20. Each cycle the register is checked to see if it is full (Step E) . If not, a filler instructions, such as a No-op, a jump-to-self instruction or equivalent instruction, is returned to the CPU (Step F) . If it is full, the content of the virgin register is sent to the CPU as an instruction (Step G) and the register is cleared for receipt of the next stream of bits to form instructions. (A "one" bit is sent via the serial port as a start bit for the beginning of each instruction bit stream.)
  • the invention allows a CPU to execute instructions directly from external sources totally bypassing local memory. It is noteworthy that the instructions are executed one at a time as received, not waiting for an accumulation of a series of instructions, as in the case of conventional front-panel loading of boot instructions. This invention could even be used in applications of computer systems which have no RAM.
  • the invention could also be used in connection with a parallel input port by appropriate choice of an input register to receive and output data in parallel, e.g., a dual- port parallel register. What is important is a start-up mode after reset which is the acceptance of instructions directly from an external source.
  • the invention can be used in a number of applications, such as loading BIOS's into PC's; updating code in PDA's.

Abstract

A device with a start-up mode after reset whereby boot-up instructions are by default always accepted directly from an external source. The device includes a gate array (18), connected directly via a serial port (20) to an input device (22), to receive program code for transfer directly as instructions to a CPU (12). The CPU is part of a computer controlled device (CCD) containing a microprocessor, RAM (16), and a flash memory device (14), the flash memory being unprogrammed when the CCD is fabricated. When the CCD first powers up, a special mode of operation ensues in which the gate array (18) directly monitors bits received and shifts them into a local register from which bytes are loaded into the CPU (12) as instructions. A boot sequence is thereby accepted to load RAM (16) of CPU (12) which thereafter can control transfer of additional executable code or load a permanent boot sequence into bulk erase (nonvolatile) flash memory (14).

Description

TRANSFERRING CODE TO COMPUTER WITHOUT ACCESSING RAM
BACKGROUND OF THE INVENTION This invention relates to techniques for starting computer systems and more particularly to a method for downloading executable code to a computer which is not provided with conventional boot code autonomous from the central processing unit.
All computing devices based on the model described by von Neumann require that a stored program be made available in memory for execution. Typically, such computing devices have a pre-loaded program (a "boot" program) in the form of executable instructions that contains sufficient logic to permit more extensive and higher-level programs to be loaded from external devices into the memory associated with the CPU. In early (pre-1975) computers, this boot program could be loaded manually directly through front panel switches connecting directly to registers to "stuff" the appropriate data and control bits to be transferring into a volatile memory associated with the CPU. However, modern computers lack a front panel, so this boot program is typically loaded into a pre-programmed read-only memory (ROM) device and automatically run upon application of power to the CPU. An example is the BIOS (Basic I/O System) Read Only Memory of an IBM-type PC.
In embedded computing devices, in which a microprocessor, ROM, and RAM are combined to perform a dedicated function, there typically is no external storage device, such as a disk drive. In these systems, either the stored program is typically unchangeable, in which case it is combined with the boot function onto ROM. In these systems, updating the stored program requires opening the device and changing a memory device, not an operation that a consumer would typically perform.
Alternatively, if a method is provided for a consumer to download a new stored program into the device, that typically requires that a boot program be resident inside the device and protected from consumer intervention.
The recent development of Flash EEPROM (Electrically Erasable Programmable Read-only Memory) has made it possible to provide this function (namely, consumer download of new stored programs, typically an updated version) economically. Flash memory devices come in at least two forms —bulk erase, and boot-block. Bulk erase flash devices must be erased in toto. In order for a device using a bulk erase flash memory device to permit the consumer to update its stored program, the device must first erase its entire stored program, and then re-program it. If the process is interrupted after erasure but prior to enough of the stored program to be programmed (typically an interval of many seconds) , the device is rendered inoperable. Furthermore, because the boot program has been erased, the device cannot be reloaded. Boot block flash memory devices have been devised to address this problem. In these devices, a portion of the memory is separately erasable, permitting a boot program to be stored there. Unfortunately, boot block flash memory devices are expensive. In addition, they require that the memory device be pre-programmed prior to fabrication, which adds manufacturing cost to the device.
Alternatively, a separate memory device is required, which also adds manufacturing cost. What is needed is a scheme to permit code to be downloaded to a bulk erase flash memory device without requiring that the device be pre-programmed.
SUMMARY OF THE INVENTION
According to the invention, in a computer-driven device, a start-up mode after reset is provided whereby boot- up instructions are by default always accepted directly from an external source. The device may comprise a gate array (GA) which is connected directly via a serial port to a receiving or input device, to receive program code for transfer directly as instructions to a microprocessor-type central processing unit. The central processing unit is part of a computer controlled device containing a microprocessor, memory (a RAM) , and typically a bulk erase flash memory device, the flash memory device being unprogrammed when the computer controlled device is fabricated originally. When the computer controlled device first powers up, a special mode of operation ensues in which the gate array directly monitor bits received via the serial port from the input device and shifts them into a local register from which bytes or words are loaded directly into the CPU as instructions. A boot sequence is thereby accepted in this manner to load random access memory of the free-running CPU which thereafter can control transfer of additional executable code or load a permanent boot sequence into bulk erase (nonvolatile) flash memory. The invention can be incorporated into a wireless modem/packet terminal node controller. The input device may be a coupling to an external computer system, typically a serial input.
The invention will be better understood by reference to the following detailed description in connection with the accompanying drawings.
BRIEF DESCRIPTION OF THE DRAWINGS
Figure 1 is a block diagram of the system having a CPU, flash memory, RAM, gate array, serial port and receiving device, according to the invention. Figure 2A is a schematic of a first version of circuitry inside the gate array which, in conjunction with the data being shifted in, forms the boot loader.
Figure 2B is a schematic of a second version of circuitry inside the gate array which, in conjunction with the data being shifted in, forms the boot loader.
Figure 3 is a flowchart illustrating the sequence of operations according to the invention. DESCRIPTION OF SPECIFIC EMBODIMENTS Referring to Fig. 1, there is shown a block diagram of a computer-based system 10 (such as a terminal node controller) according to the invention having a CPU 12, flash memory 14, RAM 16, gate array 18, serial port 20 and receiving device 22. The CPU 12, flash memory 14, RAM 16, and gate array 18 are connected to a data bus 24 and an address bus 26. The gate array is coupled to the serial port 20 which in turn is coupled to receiving device 22. The receiving device is for example a serial connector. The gate array 18 has data i/o, address input and control input to/from the CPU 12, and a serial input line 28 and a control line 30. (The gate array may also provide a serial output path; however, that signal path is not pertinent to the present invention.) Referring to Fig. 2A, there is shown a schematic diagram of a first version of the gate array 18. There is a serial I/O section 32, a receiving register section 34, and a CPU instruction control section 36. In this version, timing circuitry 38 is provided to automatically terminate the default boot sequence in the event no valid request for instruction is received.
Referring to Fig. 2B, there is shown a schematic diagram of a second version of the gate array 18. There is a serial I/O section 132, a receiving register section 134, and a CPU instruction control section 136. In this version, no timing circuitry is provided to automatically terminate the default boot sequence in the event no valid request for instruction is received. An external "push" signal 138 is provided which must be present to activate and maintain the boot sequence.
Referring to Fig. 3, there is shown a flow chart of the boot method according the invention. Upon reset or power up (Step A) , the "virgin flash" mode is initiated (Step B) and the gate array looks for instruction requests from the CPU 12 (Step C) . (In the preferred embodiment of Fig. 2A, the gate array waits for about 16 ms to determine if a valid instruction request is received. In the alternative embodiment of Fig. 2B, the "push" signal 138 must remain asserted throughout the "virgin flash" mode. These alternative functions control the exit mechanism.)
The receiving register section 134, the so-called virgin receive register, routinely accepts serial data each cycle from the serial port 20. Each cycle the register is checked to see if it is full (Step E) . If not, a filler instructions, such as a No-op, a jump-to-self instruction or equivalent instruction, is returned to the CPU (Step F) . If it is full, the content of the virgin register is sent to the CPU as an instruction (Step G) and the register is cleared for receipt of the next stream of bits to form instructions. (A "one" bit is sent via the serial port as a start bit for the beginning of each instruction bit stream.)
The invention allows a CPU to execute instructions directly from external sources totally bypassing local memory. It is noteworthy that the instructions are executed one at a time as received, not waiting for an accumulation of a series of instructions, as in the case of conventional front-panel loading of boot instructions. This invention could even be used in applications of computer systems which have no RAM.
The invention could also be used in connection with a parallel input port by appropriate choice of an input register to receive and output data in parallel, e.g., a dual- port parallel register. What is important is a start-up mode after reset which is the acceptance of instructions directly from an external source. The invention can be used in a number of applications, such as loading BIOS's into PC's; updating code in PDA's.
The invention has now been explained with reference to specific embodiments. Other embodiments will be apparent to those of skill in the art. It is therefore not intended that this invention be limited, except as indicated by the appended claims.

Claims

WHAT IS CLAIMED IS;
1. A method for downloading a boot sequence to a computing device having an input element, a gate array, and a CPU, said method in said gate array comprising the steps of: upon reset looking for instruction requests from the CPU; accepting at a receiving register digital data from said input element; checking said register each cycle to determine if said register contains an instruction; returning a filler instruction to the CPU until said register contains a desired instruction; and thereupon transferring content of said register to the CPU as said desired instruction.
2. The method according to claim 1 wherein said input element is a serial input device and wherein said register is a shift register.
3. The method according to claim l wherein said register is cleared upon said transferring step for receipt of the next bits to form instructions.
4. The method according to claim 3 wherein a "one" bit is sent via the serial port as a start bit for the beginning of each instruction bit stream.
5. The method according to claim 1 wherein said input element performs parallel data input.
6. The method according to claim 1 wherein a timeout is used to exit from a default state of receiving instructions from an external source.
7. An apparatus for downloading a boot sequence to a computing device, said apparatus comprising: an input element for receiving digital data from an external source; a receiving register means coupled to receive said digital data from said input element; means for checking said register each cycle to determine is said register contains a desired instruction; and means for repetitively transferring each said valid instruction to said CPU.
8. The apparatus according to claim 7 wherein said input element is a serial input device.
9. The apparatus according to claim 7 wherein said input element is a parallel input device.
PCT/US1996/014082 1995-09-07 1996-09-03 Transferring code to computer without accessing ram WO1997009673A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US300095P 1995-09-07 1995-09-07
US60/003,000 1995-09-07
US08/566,877 1995-12-04
US08/566,877 US5664194A (en) 1995-12-04 1995-12-04 Method for autonomously transferring code to a computer without accessing local memory by the central processing unit

Publications (2)

Publication Number Publication Date
WO1997009673A1 true WO1997009673A1 (en) 1997-03-13
WO1997009673A9 WO1997009673A9 (en) 1997-04-17

Family

ID=26671141

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US1996/014082 WO1997009673A1 (en) 1995-09-07 1996-09-03 Transferring code to computer without accessing ram

Country Status (1)

Country Link
WO (1) WO1997009673A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6267294B1 (en) * 1998-09-11 2001-07-31 Robotic Vision Systems Inc. Method of operating a charge coupled device in an accelerated mode, and in conjunction with an optical symbology imager
US7015809B1 (en) 2002-08-14 2006-03-21 Skipper Wireless Inc. Method and system for providing an active routing antenna
US7042394B2 (en) 2002-08-14 2006-05-09 Skipper Wireless Inc. Method and system for determining direction of transmission using multi-facet antenna
US7778149B1 (en) 2006-07-27 2010-08-17 Tadaaki Chigusa Method and system to providing fast access channel
US8160096B1 (en) 2006-12-06 2012-04-17 Tadaaki Chigusa Method and system for reserving bandwidth in time-division multiplexed networks

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5325529A (en) * 1990-05-18 1994-06-28 Compaq Computer Corporation External boot information loading of a personal computer
US5408624A (en) * 1990-11-09 1995-04-18 Ast Research, Inc. Method and apparatus for down-loading instructions from a host computer system to a memory in a peripheral controller for execution by a core microprocessor in the peripheral controller
US5444861A (en) * 1992-06-01 1995-08-22 United Technologies Corporation System for downloading software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5325529A (en) * 1990-05-18 1994-06-28 Compaq Computer Corporation External boot information loading of a personal computer
US5408624A (en) * 1990-11-09 1995-04-18 Ast Research, Inc. Method and apparatus for down-loading instructions from a host computer system to a memory in a peripheral controller for execution by a core microprocessor in the peripheral controller
US5444861A (en) * 1992-06-01 1995-08-22 United Technologies Corporation System for downloading software

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6267294B1 (en) * 1998-09-11 2001-07-31 Robotic Vision Systems Inc. Method of operating a charge coupled device in an accelerated mode, and in conjunction with an optical symbology imager
US7015809B1 (en) 2002-08-14 2006-03-21 Skipper Wireless Inc. Method and system for providing an active routing antenna
US7042394B2 (en) 2002-08-14 2006-05-09 Skipper Wireless Inc. Method and system for determining direction of transmission using multi-facet antenna
US7778149B1 (en) 2006-07-27 2010-08-17 Tadaaki Chigusa Method and system to providing fast access channel
US8160096B1 (en) 2006-12-06 2012-04-17 Tadaaki Chigusa Method and system for reserving bandwidth in time-division multiplexed networks

Similar Documents

Publication Publication Date Title
US5664194A (en) Method for autonomously transferring code to a computer without accessing local memory by the central processing unit
US7805562B2 (en) Microcomputer with configurable communication interfacing
US6148441A (en) Method for reprogramming flash ROM in a personal computer implementing an EISA bus system
US7234052B2 (en) System boot using NAND flash memory and method thereof
EP1248976B1 (en) Computer system initialization via boot code stored in sequential access memory
EP0569178A2 (en) Apparatus and method for downloading programs
US20030217254A1 (en) Method and apparatus for programming non-volatile, programmable, electrically erasable memory using a USB interface
US5925140A (en) Apparatus and method for error free loading of a programmable non-volatile memory over a datalink
US20020170050A1 (en) Methods and apparatus for upgrading firmware in an embedded system
US6115814A (en) Memory paging scheme for 8051 class microcontrollers
EP1343082A2 (en) System boot using nand flash memory and method thereof
JPH10214192A (en) Down-load system for software, and method therefor
JPH03141447A (en) Method and apparatus for updating farm ware residing in electrically reloadable programmable read-only memory
US7418589B2 (en) System and method for updating a basic input/output system
US5940627A (en) User selectable feature set for a flash ROM based peripheral
US5802268A (en) Digital processor with embedded eeprom memory
EP0858040B1 (en) Microcomputer containing flash EEPROM therein
US5748981A (en) Microcontroller with in-circuit user programmable microcode
US20030005212A1 (en) Method and apparatus for dynamically modifying a stored program
WO1997009673A1 (en) Transferring code to computer without accessing ram
WO1997009673A9 (en) Transferring code to computer without accessing ram
CN100363893C (en) Loading system and method
KR100223844B1 (en) Option circuit
US20030154354A1 (en) Digital signal processor system
US6604195B1 (en) Method and apparatus to use non-volatile read/write memory for bootstrap code and processes

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): CA CN JP MX

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FI FR GB GR IE IT LU MC NL PT SE

COP Corrected version of pamphlet

Free format text: PAGES 1/4-4/4,DRAWINGS,REPLACED BY NEW PAGES 1/3-3/3;DUE TO LATE TRANSMITTAL BY THE RECEIVING OFFICE

121 Ep: the epo has been informed by wipo that ep was designated in this application
DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
122 Ep: pct application non-entry in european phase
NENP Non-entry into the national phase

Ref country code: CA