WO2003040917A2 - Implementation of in-system programming to update firmware on memory cards - Google Patents

Implementation of in-system programming to update firmware on memory cards Download PDF

Info

Publication number
WO2003040917A2
WO2003040917A2 PCT/US2002/031888 US0231888W WO03040917A2 WO 2003040917 A2 WO2003040917 A2 WO 2003040917A2 US 0231888 W US0231888 W US 0231888W WO 03040917 A2 WO03040917 A2 WO 03040917A2
Authority
WO
WIPO (PCT)
Prior art keywords
card
firmware
reader
memory
host
Prior art date
Application number
PCT/US2002/031888
Other languages
French (fr)
Other versions
WO2003040917A3 (en
Inventor
Robert Chang
Ping Li
Farshid Sabet-Sharghi
Original Assignee
Sandisk Corporation
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 Sandisk Corporation filed Critical Sandisk Corporation
Priority to EP02802776A priority Critical patent/EP1459174A2/en
Priority to AU2002363505A priority patent/AU2002363505A1/en
Priority to JP2003542476A priority patent/JP2005508547A/en
Publication of WO2003040917A2 publication Critical patent/WO2003040917A2/en
Publication of WO2003040917A3 publication Critical patent/WO2003040917A3/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Definitions

  • the present invention relates generally to mass digital data storage systems. More particularly, the present invention relates to systems and methods for enabling a user to update the firmware associated with a mass digital data storage system such as a memory card.
  • non- olatile memory systems such as flash memory storage systems
  • flash memory storage systems The use of non- olatile memory systems such as flash memory storage systems is increasing due to the compact physical size of such memory systems, and the ability for non- olatile memory to be repetitively reprogrammed.
  • the compact physical size of flash memory storage systems facilitates the use of such storage systems in devices which are becoming increasingly prevalent.
  • Devices which use flash memory storage systems include, but are not limited to, digital cameras, digital camcorders, digital music players, handheld personal computers, and global positioning devices.
  • the ability to repetitively reprogram non-volatile memory included in flash memory storage systems enables flash memory storage systems to be used and reused.
  • firmware which allows instructions to run on a flash memory system such as a memory card
  • a user When firmware which allows instructions to run on a flash memory system such as a memory card needs to be updated, a user generally sends the card back to the manufacturer of the memory card.
  • the manufacturer may update the firmware on the memory card, e.g., a Compact Flash (CF) card or a Secure Digital (SD) card, to provide new features for the card, or to fix bugs in the firmware.
  • the manufacturer may use specialized hardware to update the firmware.
  • processes used to update firmware in memory cards are generally complicated, and subject to error. Therefore, updating the firmware in a memory card is often a time-consuming, difficult process for the manufacturer of the memory card.
  • updating the firmware in a memory card is often an inconvenient process to a user.
  • Sending or otherwise providing the memory card to a manufacturer for updating, and awaiting the return of the updated memory card may be inconvenient, particularly when the memory card is not available for use by the user for an extended period of time.
  • a method for updating firmware associated with a memory storage device includes providing new firmware to a host and sending the new firmware from the host to a reader which is in communication with the host.
  • the reader interfaces with the memory storage device which includes installed firmware.
  • the method also includes sending the new firmware from the reader to the memory storage device, and incorporating the new firmware into the memory storage device such that the new firmware at least partially replaces the installed firmware.
  • the method further includes embedding the new firmware into a first command.
  • sending the new firmware from the host to the reader includes sending the first command from the host to the reader.
  • incorporating the new firmware into the memory storage device updates the installed firmware by writing the new firmware into the memory storage device using the host.
  • the method may also include enabling in-system-programming capabilities on the reader that allow the new firmware to be incorporated into the memory storage device.
  • Allowing the firmware on a memory storage device such as a flash memory card to be substantially updated by a user through the use of a host and a reader allows the updating to be performed efficiently.
  • a reader and a flash memory card that are each arranged to support in system programming enable card firmware updates to be performed without requiring a relatively large investment of time.
  • a system for updating firmware associated with a memory card includes, in addition to the memory card on which card firmware is installed, means for providing new card firmware to the memory card and means for incorporating the new card firmware into the memory card such that the new card firmware at least partially replaces the installed card firmware.
  • the means for providing the new card firmware to the memory card includes a host and means for allowing the host to interface with the memory card. The host provides the new card firmware to the means for allowing the host to interface with the memory card, and the means for allowing the host to interface with the memory card includes means for sending the new card firmware to the memory card.
  • the firmware cooperates with the storage element to store the data and to execute instructions.
  • the firmware also supports in-system-programming capabilities which enable the firmware to be substantially updated while the memory storage device is interfaced with the reader.
  • the memory storage device also includes a receiving mechanism that receives an update for the firmware through the reader. In such an embodiment, the firmware incorporates the update to update the firmware.
  • the port is arranged to accept the memory device substantially into the adapter, and the firmware supports in-system-programming capabilities.
  • the in- system-programming capabilities include enabling the computing system to provide the memory device with updated firmware code for the memory device through the adapter.
  • the adapter is one of a USB reader or a PC reader.
  • Fig. 1 is a diagrammatic representation of a general host system which includes a non- volatile memory device in accordance with an embodiment of the present invention.
  • Fig. 2 is a diagrammatic representation of a computer system, a reader, and a memory card which are part of a system in which the card firmware associated with the memory card may be updated in accordance with an embodiment of the present invention.
  • Fig. 3 is a process flow diagram which illustrates the steps associated with a process of updating card firmware on a card in accordance with an embodiment of the present invention.
  • Figs. 4a and 4b are a process flow diagram which illustrates the steps associated with updating firmware on a secure digital memory card in accordance with an embodiment of the present invention.
  • Fig. 5 is a process flow diagram which illustrates the steps associated with updating firmware on a Compact Flash memory card in accordance with an embodiment of the present invention.
  • Fig. 6a is a diagrammatic representation of a command descriptor block associated with a Check ISP command that is suitable for use in a system with a secure digital memory card in accordance with an embodiment of the present invention.
  • Fig. 6b is a diagrammatic representation of a data block that is suitable for use in returning data from a reader to a host in response to a Check ISP command in accordance with an embodiment of the present invention.
  • Fig. 6c is a diagrammatic representation of a command descriptor block associated with a Media Card Execute SD command that is suitable for use in a system with a secure digital memory card in accordance with an embodiment of the present invention.
  • Fig. 7a is a diagrammatic representation of a command descriptor block associated with a Media Card Execute CF command which is suitable for use in a system with a Compact Flash memory card in accordance with an embodiment of the present invention.
  • Fig. 7b is a diagrammatic representation of a block which may be returned to a host by a Compact Flash memory card in response to a Media Card Execute CF command in accordance with an embodiment of the present invention.
  • Fig. 8a is a diagrammatic representation of a command block register data associated with a Check ISP command that is suitable for use with a compact flash card in accordance with an embodiment of the present invention.
  • Fig. 8b is a diagrammatic representation of a command block register data which may be returned by a compact flash card to a reader in accordance with an embodiment of the present invention.
  • Fig. 8c is a diagrammatic representation of a command block register data that may be sent from a compact card to a reader when an error has been encountered in processing a Check ISP command in accordance with an embodiment of the present invention.
  • Fig. 8d is a diagrammatic representation of a command block register data that may be sent to a reader from a compact flash card as a part of a Media Card Execute CF ISP command in accordance with an embodiment of the present invention.
  • Fig. 8e is a diagrammatic representation of a command block register data that may be sent between a compact flash card and a reader which indicates that a Media Card Execute CF ISP command has executed normally in accordance with an embodiment of the present invention.
  • Fig. 8f is a diagrammatic representation of a command block register data that may be sent from a compact flash card to a reader to indicate that a Media Card Execute CF ISP command has not executed normally in accordance with an embodiment of the present invention.
  • Enabling the firmware on a flash memory card to be substantially updated by a user allows the updating to be performed efficiently and, typically, relatively conveniently.
  • the process of upgrading the memory card is also relatively uncomplicated.
  • a memory card which is suitable for use in an overall system which allows the firmware associated with the memory card to be updated is generally used in conjunction with a host system.
  • a general host system that includes a non- volatile memory device, e.g., a Compact Flash (CF) memory card or a Secure Digital (SD) card, will be described.
  • a host or computer system 100 generally includes a system bus 104 which allows a microprocessor 108, a random access memory (RAM) 112, and input/output circuits 116 to communicate. It should be appreciated that host system 100 may generally include other components, e.g., display devices and networking device, which are not shown for purposes of illustration.
  • host system 100 may be capable of capturing information including, but not limited to, still image information, audio information, and video image information. Such information may be captured in real-time, and may be transmitted to host system 100 in a wireless manner. While host system 100 may be substantially any system, host system 100 is typically a system such as a digital camera, a video camera, a cellular communications device, an audio player, or a video player. It should be appreciated, however, that host system 100 may generally be substantially any system which stores data or information, and retrieves data or information.
  • Host system 100 may also be a system which either only captures data, or only retrieves data. That is, host system 100 may be a dedicated system which stores data, or host system 100 may be a dedicated system which reads data. By way of example, host system 100 may be a memory writer which is arranged only to write or store data. Alternatively, host system 100 may be a device such as an MP3 player which is typically arranged to read or retrieve data, and not to capture data.
  • a non- volatile memory device 120 which, in one embodiment, is a removable non- volatile memory device, is arranged to interface with bus 104 to store information.
  • non- volatile memory device 120 communicates with bus 104 through an interface 130.
  • Interface 130 may serve to reduce loading on bus 104, as will be understood by those skilled in the art.
  • interface 130 may be a reader or an adaptor.
  • Non- volatile memory device 120 includes non- volatile memory 124 and a memory control system 128.
  • non-volatile memory device 120 may be implemented on a single chip or a die.
  • non-volatile memory device 120 may be implemented on a multi-chip module, or on multiple discrete components which may be used together as non- volatile memory device 120.
  • Non- volatile memory 124 is arranged to store data such that data may be accessed and read as needed. Data stored in non- volatile memory 124 may also be erased as appropriate, although it should be understood that some data in non- olatile memory 124 may not be erased.
  • the processes of storing data, reading data, and erasing data are generally controlled by memory control system 128.
  • memory control system 128 manages the operation of non- volatile memory 124 such that the lifetime of non- volatile memory 124 is substantially maximized by essentially causing sections of non- volatile memory 124 to be worn out substantially equally.
  • non- volatile memory device 120 has generally been described as including a memory control system 128, i.e., a memory controller, it should be understood that not all non- volatile memory devices include a controller.
  • non- volatile memory devices including, but not limited to, PC cards, Compact Flash cards, Multi Media cards, and Secure Digital cards include controllers
  • other non- volatile memory devices including, but not limited to, Smart Media cards and Memory Stick cards may not include controllers
  • non- volatile memory device 124 does not include a controller
  • the functions associated with the controller may be integrated into a single chip, as will be appreciated by those skilled in the art.
  • non- volatile memory device 120 may generally be implemented as either a single-chip device or a multi-chip module, as previously mentioned.
  • host system 100 maybe a computer system which stores information to or reads information from a non- olatile memory device such as a memory card through a card reader interface. That is, host system 100 may be a computer system which makes use of a memory card to store data and to read data.
  • Fig. 2 is a diagrammatic representation of a computer system, reader, and memory card which cooperate to update firmware associated with the memory card in accordance with an embodiment of the present invention.
  • a computer system 202 generally communicates with a memory card 220 through a reader 230.
  • Reader 230 typically serves as an interface between computer system 202 and memory card 220 to enable computer system 202 to store data in a memory 224 of memory card 220 and to retrieve data from memory 224.
  • Reader 230 may include a port or a receptacle (not shown) which enables memory card 220 to communicably interface with reader 230 such that reader 230 may enable communications to be made between memory card 220 and computer system 202.
  • Memory card 220 includes both memory 224 and a controller 228.
  • Memory 224 may include storage elements, blocks, or cells which store bits of information.
  • Controller 228 interfaces with memory 224 to facilitate the storage of and retrieval of data from memory 224.
  • Controller 228 includes card firmware 229 which facilitates the operation of controller 228 by effectively allowing instructions to be executed or run using controller 228.
  • card firmware 229 also includes in-system-programming (ISP) support capabilities.
  • ISP support capabilities generally provide functionality which enables card firmware 229 to be updated substantially by a user, without requiring that memory card 220 be returned to a manufacturer in order for card firmware 229 to be updated.
  • Reader 230 which, for example, maybe a Universal Serial Bus (USB) reader or a personal computer (PC) card reader, includes reader firmware 232 which allows reader 230 to run instructions associated with the operation of reader 230.
  • reader firmware 232 includes ISP support capabilities. That is, reader firmware 232 is arranged to support the updating or upgrading of card firmware 229.
  • software 210 which includes the new or updated card firmware may be obtained from a network 240 by computer system 202.
  • computer system 202 may communicate with a website on network 240 that is associated with the manufacturer of memory card 220 to download software 210 and, in one embodiment, a software driver 206. It should be appreciated that in lieu of obtaining software 210 through network 240, software 210 may also be obtained using a media storage device such as a CD-ROM or a floppy disk.
  • a media storage device such as a CD-ROM or a floppy disk.
  • Information included in software 210 may be used by computer system 202 in cooperation with reader 230 to update card firmware 229.
  • new or updated card firmware which is included in software 210 may be substantially extracted from software 210 by computer system 202, and provided to memory card 220 using reader 230.
  • Providing the updated card firmware to memory card 220 generally involves providing the updated card firmware as an input to memory card 220, e.g., as an input to an input/output port or receiving mechanism (not shown) of memory card 220.
  • Memory card 220 may successful incorporate the updated card firmware when both reader 230 and memory card include ISP support capabilities.
  • firmware 229 When firmware is downloaded, a small block of ISP codes may be allocated to handle ISP. It should be appreciated that once a download of updated firmware begins, card firmware 229 typically completes substantially all of its internal activities. In addition, once a download of updated card firmware has commenced, card firmware 229 may not handle any commands with the exception of commands associated with the reading of updated card firmware content and commands associated with the downloading process. Once the download has completed, memory card 220 may perform a reset procedure using the newly installed firmware.
  • a process 302 of updating card firmware begins at step 306 in which software which includes new card firmware which is to essentially replace the card firmware that is currently on the memory card is downloaded onto a computer, i.e., the computer which is in communication with the memory card.
  • the software which includes the new card firmware may be downloaded onto the computer from a network.
  • the software is executed in step 310 to download the new card firmware onto the reader which serves as an interface between the computer and the memory card.
  • executing the software includes substantially extracting the new card firmware from the software such that the new card firmware may be sent or downloaded to the reader.
  • process flow moves to step 314 in which the reader sends or downloads the new card firmware to the memory card.
  • the new card firmware is installed on the memory card in step 318.
  • the new card firmware either replaces or augments the card firmware which was already on the memory card.
  • the process of updating card firmware is completed once the new card firmware is installed on the memory card. •
  • a process for updating the card firmware of an SD memory card may vary from a process for updating the card firmware on a CF memory card.
  • One suitable process for updating the card firmware of an SD memory card will be described with respect to Figs. 4a and 4b, while one suitable process for updating the card firmware of a CF memory card will be described below with reference to Fig. 5.
  • FIGs. 4a and 4b are a process flow diagram which illustrates the steps associated with updating the firmware on an SD card in accordance with an embodiment of the present invention.
  • a process 400 of updating the firmware on an SD card begins at step 404 in which a host computer determines whether the reader which allows the host computer to interface with the SD card supports ISP. hi the described embodiment, such a determination may be made by checking if the small computer system interface (SCSI) Inquiry data information for ISP support is available on the reader.
  • SCSI small computer system interface
  • the determination of whether the SD card supports ISP may include determining if a particular bit in card specific data information is set, e.g., whether the nineteenth bit in the card specific data information is set to '1.'
  • steps associated with updating the firmware on an SD card may also be applied to updating the firmware on a MultiMedia card (MMC).
  • MMC MultiMedia card
  • step 408 A determination is made in step 408 regarding whether the reader supports
  • step 412 If it is determined that the reader does not support ISP, then the indication is that the reader may not be used to facilitate the updating of firmware on the SD card. As such, process flow moves to step 412 in which an exception is thrown to indicate that the reader does not support ISP. Once the exception is thrown, the process of updating the firmware on the SD card is effectively terminated.
  • step 416 the host sends a command, e.g., a SCSI Check ISP command, to firmware on the reader to enable ISP support.
  • a command e.g., a SCSI Check ISP command
  • the host sends a command, e.g., a SCSI Check ISP command, to firmware on the reader to enable ISP support.
  • a Check ISP command will be described below with respect to Fig. 6a.
  • ISP support is enabled on the reader in step 420. Enabling ISP support may include, in one embodiment, setting the twentieth bit in the card specific data information to ' 1 ' in response to the Check ISP command.
  • the reader may return a data structure to the host which substantially identifies the relative card address (RCA) of the SD card, as will be discussed below with reference to Fig. 6b.
  • ISP support is enabled on the SD or MMC card in step 424.
  • enabling ISP support on the SD or MMC card may include writing card-specific data with the twentieth bit set, i.e., to indicate that ISP is supported, to the SD or MMC card using the host.
  • the CMD9 command to retrieve and the CMD27 command to program the card-specific data may be substantially embedded within a SCSI Media Card Execute SD command, as will be discussed below with respect to Fig. 6c.
  • the block length associated with a CMD16 command is set in step 428 to the size of the card firmware that is to be transferred from the host to the SD card, or to the MMC card.
  • the CMD16 command is a standard command that is recognized by both SD and MMC cards.
  • the CMD16 command is described in the "MultiMedia Card System Specification, Version 2.2,” published by the MMCA Technical Committee in January 2000, which is incorporated herein by reference in its entirety.
  • the CMD16 command may be embedded within a Media Card Execute SD command.
  • step 432 the CMD16 command and the new card firmware are sent to the SD card from the host through the reader using a command such as an ACMD24 command, which may be embedded within a Media Card Execute SD command.
  • ACMD24 command is a command which enables the new card firmware to be written to the SD card.
  • the SD card may substantially install the new card firmware.
  • the card performs a power-on-reset in step 436. That is, the SD card effectively reboots itself to enable initialization codes associated with the SD card to execute to substantially initialize the updated card firmware, i.e., the card firmware that includes the new card firmware.
  • the power-on-reset which is performed by the card firmware, essentially includes powering down the SD card and then powering the SD card back up.
  • the host sends a Check ISP command to the reader in step 440 the reader to disable ISP support.
  • the ISP support may be disabled by sending the Check ISP command with an appropriate bit set to '0.'
  • the reader Upon receiving the command to disable ISP support, the reader typically electronically detaches itself from the host in step 444. While electronically detaching the reader from the host may include the reader detaching itself from the USB bus of the host, electronically detaching the reader from the host may also include physically detaching the reader from the host.
  • the reader sends a command to the SD card in step 448 to reinitialize the SD card.
  • a CMD0 command may reset the SD card
  • a CMDl command may activate the initialization process of the MMC card and a ACMD41 may activate the SD card.
  • the reader electronically reattaches itself to the host in step 452.
  • the reader effectively causes the host or, more specifically, software associated with the host to interact with the SD card as a new device.
  • the electronic detachment of the reader in step 444 and the electronic reattachment of the reader in step 452 essentially cause the host to view the SD card as a new device and, hence, enables the updated firmware on the SD card to be recognized by the host.
  • FIG. 5 is a process flow diagram which illustrates the steps associated with are a process flow diagram which illustrates the steps associated with updating the firmware on a CF card in accordance with an embodiment of the present invention.
  • a process 500 of providing new card firmware to a CF card begins at step 504 in which a host computer determines whether the reader which allows the host computer to interface with the CF card supports ISP. In the described embodiment, such a determination may be made by checking if the SCSI Inquiry data information for ISP support is available on the reader.
  • the detennination of whether the CF card supports ISP may include determining if a particular bit in a particular word that contains device information is set appropriately, e.g., whether bit zero of an eighty-third word in IDENTIFY DEVICE information is set to ' 1. '
  • step 508 It is determined in step 508 if the reader supports ISP. If it is determined that the reader does not support ISP, then the indication is that the reader may not be used to update the firmware on the CF card. Hence, process flow moves to step 512 in which an exception is thrown to indicate that the reader does not support ISP. Once the exception is thrown, the process of updating the firmware on the CF card is effectively terminated.
  • step 508 if it is determined in step 508 that the reader does support ISP, then the host sends a command, e.g., a SCSI Check ISP command, to firmware on the reader to enable ISP support.
  • a command e.g., a SCSI Check ISP command
  • firmware on the reader e.g., firmware on the reader to enable ISP support.
  • a Check ISP command that is suitable for use with respect to a CF card will be described below with respect to Fig. 8a.
  • ISP support is enabled on the reader in step 520. Enabling ISP support may include, in one embodiment, setting bit zero in the eighty-sixth word of IDENTIFY DEVICE information to T in response to the Check ISP command.
  • the host sends a command to the CF card which causes the CF card to enable itself to receive and to incorporate new firmware
  • the command may be a Media Card Check CF ISP may be in the form of an AT Attachment (ATA) command that is embedded in a SCSI Media Card Execute CF command.
  • ATA commands which are well known in the art, are described in "CompactFlash Memory Card Product Manual,” published by SanDisk Corporation of Sunnyvale, California, in April 2000, which is incorporated herein by reference in its entirety.
  • ATA commands which are well known in the art, are described in "CompactFlash Memory Card Product Manual," published by SanDisk Corporation of Sunnyvale, California, in April 2000, which is incorporated herein by reference in its entirety.
  • SCSI Media Card Execute CF command in which the Media Card Check CF ISP command is embedded will be described below with respect to Fig. 7a.
  • new card firmware is sent from the host to the CF card in step 528.
  • the new card firmware may be sent from the host to the CF card in a Media Card Execute CF ISP command which is an ATA command that may be embedded within the SCSI Media Card Execute CF command.
  • the CF card performs a power-on- reset operation in step 532 which disables the ISP support on the CF card.
  • Process flow then proceeds to step 534 in which the host sends a Check ISP command to the reader to disable the ISP support on the reader.
  • the reader After the ISP support on the reader is disabled, the reader typically electronically detaches itself from the host in step 536. Once the reader is electronically detached from the host, the reader sends a command to the CF card in step 540 to reinitialize the CF card, hi one embodiment, in addition to resetting the CF card, the reader may also read new device identifying information from the CF card. From step 540, process flow moves to step 544 in which the reader electronically reattaches itself to the host. By electronically reattaching itself to the host, the reader effectively causes the host or, more specifically, software associated with the host to interact with the CF card as a new device. Upon the reader reattaching itself to the host, the process of updating card firmware on a CF card is completed.
  • FIG. 6a is a diagrammatic representation of a command descriptor block for a Check ISP command in accordance with an embodiment of the present invention.
  • a Check ISP command descriptor block 602 generally includes twelve bytes 606, each with eight bits 610.
  • Block 602 is associated with a DOh command code, and is essentially a component of a SCSI command that is sent from a host to a reader, e.g. , from a host to firmware associated with a reader.
  • a byte 606a is arranged to include an operation code.
  • bit 610a of byte 606k is arranged to enable a media card pass through command. That is, bit 610a of byte 606k is arranged to indicate whether a host may send commands or software substantially directly to a card through a reader, instead of having the host send a command to the reader, which then sends the command to the card. In the described embodiment, bit 610a of byte 606k, or a PASS ENB field, may be set to a value of "1" to indicate that media card pass through functionality is enabled.
  • media card pass through functionality is enabled when ISP support is enabled, as ISP generally uses pass through commands.
  • ISP support When ISP support is enabled, an ISP ENB field, e.g., abit 610b ofbyte 606k, maybe set to a value of "1.”
  • ISP ENB field e.g., abit 610b ofbyte 606k
  • the ISP ENB field may be set to a value of "0.”
  • a bit 610h ofbyte 606k is a "lock bit" which may be set to a value of "1" to indicate that both ISP mode or support and a media card pass through mode, i.e., a mode which enables a host to send card firmware substantially directly through a reader to a card, may not be altered by altering either the ISP ENB field or the PASS ENB field.
  • bit 61 Oh ofbyte 606k effectively serves to prevent mistakes from occurring with respect to enabling ISP mode and a media card pass through mode.
  • the reader firmware may set an internal flag for ISP processing. That is, reader firmware may configure itself to enable ISP processing.
  • the reader firmware may also check to determine if the card specific data of the SD card has ISP support functions. After the reader, firmware is configured to enable ISP processing, and block 602 is received with the ISP ENB field set to "0," or cleared, the reader firmware generally assumes that the corresponding card firmware has been updated or the host terminates the update process. As a result, the reader may reset the card, detach itself from the USB bus of the host, and reattach itself to the host. In one embodiment, the reader may return a data block to the host in response to a Check ISP command.
  • Fig. 6b is a diagrammatic representation of a data block that is returned to a host in response to a Check ISP command in accordance with an embodiment of the present invention.
  • a data block 622 includes three bytes 626 of eight bits 630 each, and is sent from a reader to a host as a confirmation of a received Check ISP command. It should be appreciated that when a reader that receives a Check ISP command is incapable of supporting ISP, then the reader my return a code to the host which indicates that the Check ISP command was, in effect, invalid. An invalid command is identified by the SCSI Sense Data Format with ILLEGAL
  • REQUEST value 5 as the Sense Key
  • INVALID FIELD IN CDB values 24h and OOh, as ASC and ASCQ.
  • a first byte 626a of data block 622 includes a bit 630a which is a PASS ENB field that indicates whether the reader is arranged to indicate whether media card pass through capability is enabled after the Check ISP command is executed.
  • a second bit 630b in first byte 626a is an ISP ENB field which is arranged to indicate whether ISP support is enabled.
  • a value of "1" in the PASS ENB field indicates that media card pass through capability is enabled, while a value of "1" in the ISP ENB field indicates that ISP support is enabled.
  • Bits 630c-f of byte 626a are arranged to contain a media card type.
  • bits 630c-f of byte 626a may be set as '001,' while if the card is a MMC card, bits 630c-f of byte 626a may be set as '010.'
  • bits 630c-f of byte 626a may be set as 'Oi l ' for a SD input-output (IO) card
  • bits 630c-f ofbyte 626a may be set as '100' for a personal computer memory card international association (PCMCIA) card
  • bits 630c-f of byte 626a may be set as '101' for a CF card.
  • PCMCIA personal computer memory card international association
  • bytes 626b and 626c may include RCA bits which are used by the host to substantially ensure that commands are sent to a proper address, i.e., the address associated with the card.
  • FIG. 6c is a diagrammatic representation of a Media Card Execute SD command descriptor block in accordance with an embodiment of the present invention.
  • a Media Card Execute SD command block 652 that may be arranged within a corresponding SCSI command descriptor (not shown) is arranged to allow a host to send a command to an SD card which passes through a reader, and is associated with a Dlh command code.
  • Block 652 is generally arranged as an SD command which is embedded in an overall SCSI command, or a wrapper.
  • a byte 656a is arranged to contain information associated with an operation code which, in the described embodiment, is consistent with a Dlh command code.
  • a SD or MMC command that is embedded in block 652 includes bytes 656c-j.
  • the reader When a reader receives block 652, the reader substantially removes at least portions of the embedded command, e.g., removes information associated with bytes 656c-j, and forwards the embedded command to the recipient SC card.
  • the embedded command includes a command index which is stored in byte 656c.
  • the command index substantially holds a command to the SD card, while command arguments which are stored in bytes 656d-g are arguments to the command associated with the command index.
  • Bytes 656h-j hold a data transfer length associated with the amount of data to be transferred from the host.
  • Byte 656k of block 652 is arranged to contain a response type, e.g., in bits
  • Bit 660e-h that indicates the SD or MMC response type of the command identified in byte 656c.
  • Bit 660d ofbyte 656k is arranged to indicate the direction of data transfer.
  • bit 660d ofbyte 656k is set to a value of ' 1
  • bit 660d ofbyte 656k is set to a value of '0
  • ' data may be transferred from the host to the reader.
  • Bit 660c of byte 656k is arranged to indicate a command type such that when bit 660c is set to a value of '1,' the command is considered to be a normal command, whereas when bit 660c is set to a value of '0,' the command is considered to be an application command.
  • Bit 660b ofbyte 656k which indicates whether to retrieve response data in response to the command associated byte 656c, may be set to a value of ' 1' when response data is to be retrieved and to a value of '0' when response data is not to be retrieved.
  • the length of any response data that is to be retrieved is substantially specified by the data transfer length held in bytes 656h-j.
  • a Media Card Execute SD command starts the execution of the embedded SD command associated with block 652.
  • the reader or, more specifically, firmware associated with the reader may send the embedded command to the SD card, and receive any expected response.
  • the embedded command is a command to retrieve data from the SD card
  • the reader will generally read data from the SD card and transfer the data to the host.
  • the reader may read partial data from the SD card and transfer the partial data to the host.
  • the reader will continue to read and transfer partial data until substantially all data requested from the SD card is transferred to the host.
  • the reader may read data from the host and transfer the data from the host to the SD card either substantially all at once or in increments, e.g., when the reader does not include a buffer.
  • data transfer may generally be accomplished using substantially any suitable protocol, h one embodiment, a data transfer protocol which complies with an X3T10 standard may be used.
  • a Media Card Execute command which is suitable for use for an SD card is generally different from a Media Card Execute command which is suitable for use with a CF card.
  • a command descriptor block 702 for a SCSI Media Card Execute CF command which is generally embedded inside an overall SCSI command descriptor, includes twelve bytes 706 of eight bits 710 each.
  • the Media Card Execute CF command is generally consistent with a D2h command code.
  • a byte 706a is arranged to contain information associated with an operation code which, in the described embodiment, is consistent with a D2h command code.
  • Bytes 706f-k are substantially filled using ATA task file registers.
  • bytes 706f-k may correspond to ATA commands 1F2 through 1F7 such that task file registers associated with the CF card may be returned as data.
  • Task file registers may include, but are not limited to, an error register, a sector count register, a sector register, a cylinder low register, a cylinder high register, a device/head register, and a command/status register, as will be understood by those skilled in the art.
  • bytes 706f-k may be extracted by a reader and sent to the CF card.
  • register values may be retrieved from the CF card and returned to the host through the reader in the format shown in Fig. 7b.
  • a block 752 as shown in Fig. 7b includes bits 716c-j which correspond to bits 706c-j of block 702, though bits 716c-j will generally have different task file register values.
  • a byte 7061 is arranged to include a bit 710a which indicates whether the host which initiates the Media Card Execute CF command has an intention to read ATA task file registers back.
  • bit 710a ofbyte 7061 is set to a value of ' 1,' the indication may be that the host substantially intends to read ATA task file registers back only.
  • the data format of the returned task file register is shown in Fig. 7b.
  • a second bit 710b ofbyte 7061 is arranged to be set to a value of '1 ' for a read or input operation, and to be set to a value of '0' for a write or output operation.
  • a third bit 710c ofbyte 7061 is arranged to indicate whether there is data to be transferred
  • a reader extracts bytes 706f-k and sends the task file registers to the CF card.
  • the task file registers specify sector count, sector, cylinder, and head registers using a standard protocol such as a USB mass storage class bulk-only protocol.
  • the direction of the data transfer and the data transfer length are generally both specified in block 702, e.g., in bit 710b ofbyte 7061, and a USB wrapper which substantially encompasses block 702.
  • the data transfer protocol used complies with a standard such as an X3T13 standard.
  • a Check ISP command which is suitable for use with a CF card may be generated by reader firmware, and sent to a CF card.
  • such a Check ISP command may also be suitable for use with a SD card. That is, a Check ISP command may be the same for a CF card and for a SD card.
  • Such a Check ISP command may be consistent with a D5h command code for a CF card, and is typically sent from a reader to a flash card once the reader generates the command.
  • Fig. 8 a is a diagrammatic representation of a command block associated with a Check ISP command that is suitable for use with a CF card in accordance with an embodiment of the present invention.
  • a command block 804 includes bits 808 associated with registers 812. Registers 812, in one embodiment, may be associated with bytes 706f-706k of Fig. 7a. That is, block 804 may effectively be embedded in block 702 of Fig. 7a.
  • a bit 808a associated with a register 812a is arranged to indicate whether the CF or SD card is to be enabled to support ISP or disabled from supporting ISP.
  • a bit 808a of register 812a may be set to a value of '1,' for example, to indicate that ISP mode is to be enabled and to a value of '0' to indicate that ISP mode is to be disabled.
  • Bits 808 associated with a register 812g are arranged to indicate a Dh5 command code.
  • a block 814 includes registers 822 that each include eight bits 818.
  • a Oh is returned in an error register 822a, and in cylinder registers 822d, 822e, while a 55h is returned in a sector count register 822b and an AAh is returned in a sector number register 822c.
  • a device head register 822f is arranged to indicate a selected device in bit
  • bit 818e an is typically set to a value of '0' with only one media card attached to the reader, and whether write protection is active in the CF card in bit 818d.
  • bit 818d of register 822f may be set to a value of ' 1,' whereas if write protection is not active, then bit 818d of register 822f may be set to a value of '0.
  • Bits 818a-c of register 822f may be set to indicate a media type.
  • bits 818a-c of register 822f may be set to a value of '101.
  • block 814 may also be configured for use with other media types.
  • the contents of bits 818a-c of register 822f may indicate the appropriate media type.
  • a status register 822g which generally returns 50H, includes a bit 818h which is set to a value of '0' once a command, e.g., a Check ISP command, is properly completed.
  • a bit 818g may be set to a value of '1,' while a device fault bit 818f, a bit 818d, and an error bit 818a may be set to a value of '0' when the command is completed.
  • an error output block may be sent from a CF card to a reader.
  • Such an error output block may generally indicate that ISP support is not enabled.
  • Fig. 8c is a diagrammatic representation of an error data block that may be sent from a CF card to a reader when an error has been encountered in processing a Check ISP command in accordance with an embodiment of the present invention.
  • An error data block 824 includes registers 832 which are divided into bits 828.
  • bit in an error register 832a e.g., a bit 828c
  • bit 828c of error register 832a may be set to a value of ' 1 ' to indicate that a command has been effectively aborted.
  • a bit 828e that is associated with a device/head register 832f is arranged to indicate the selected device, and is typically set to a value of '0' with only one media card attached to the reader.
  • Status register 832g is arranged to include a variety of information.
  • status register 832g includes a bit 828a which is generally set to a value of ' 1 ' to indicate that an error has occurred, while a bit 828h is arranged to be substantially cleared to a value of '0' to indicate that the execution of the command has effectively been completed, and a bit 828f which is arranged to indicate when a device fault has occurred is set to a value of ' 1 ' in the event that a device fault has occurred, hi the described embodiment, a bit 828g of register 832g may be set to ' 1 ' to identify block 824 as an error data block, while a bit 828d of register 832g may be set to '0' to identify that there is no more data to transfer.
  • a Media Card Execute CF ISP command which may be consistent with a D6h command code, is associated with a Media Card Execute CF command, e.g., the command described above with respect to Fig. 7a.
  • a Media Card Execute CF ISP command generally starts the execution of the native command embedded inside the corresponding SCSI command. It the embedded command is a command to retrieve firmware data from a CF card, or the underlying card, the corresponding reader may read the data from the CF card and transfer the read data to a host. In the event that the reader does not include a buffer, partial data may be read from the CF card and transferred to the host in a procedure that may be repeated until substantially all read data is transferred.
  • the reader will generally read the data from the host and transfer the read data from the host to the CF card.
  • the adapter does not have a buffer, partial data may be read from the host and transferred to the CF card repeatedly until substantially all data are transferred to the CF card.
  • Fig. 8d is a diagrammatic representation of a command block that may be sent between a reader and a CF card as a part of a Media Card Execute CF ISP command in accordance with an embodiment of the present invention.
  • a command block 844 includes registers 852 which include eight bits 848 each.
  • a command register 852g is arranged to indicate that block 844 is consistent with a D6h command code, while a feature register 852a includes bits 848b-h which are arranged to return a Oh value and a bit 848a which is arranged to specify a direction of data transfer.
  • bit 848a of feature register 852a When firmware is to be read from the CF card, bit 848a of feature register 852a may be set to a value of '1,' whereas when firmware is to be written to the CF card, bit 848a of feature register 852a may be set to a value of '0. '
  • a sector count register 852b is arranged to store a number of sectors that are to be processed, i.e., either to be read from the CF card or to be written to the CF card.
  • a sector number register 852c is arranged to store or return the least significant bit of the starting logical block address (LBA) associated with the firmware in the CF card, while cylinder registers 852d, 852e are arranged to store the middle byte of the LBA and the most significant bit of the LBA, respectively.
  • LBA starting logical block address
  • a command block 864 which includes bits 868 which are divided into registers 872, may be sent from the CF card to the reader when a command has executed substantially successfully.
  • Registers 872a-e maybe substantially cleared, while a device/head register 872f may include a bit 868e which indicates the device, and may be set to a value of '0' with only one media card attached to the reader, which is effectively the target associated with the execution of the command.
  • a status register 872g which is arranged to return 50H, includes a bit 868h which is set to a value of '0' to indicate that the execution of a command has been completed.
  • a bit 868g of status register 872g may be set to a value of '1,' while bits 868a, 868d, 868f may all be substantially cleared or set to a value of '0' to indicate that a command has executed normally.
  • an error data block may be sent from a CF card to a reader to indicate that an error has occurred. Errors may occur during the processing of a command, for example, when a host expects the CF card to have 20 kiloBytes (kBs) of firmware, and the CF card actually has 10 kBs of firmware.
  • Fig. 8f is a diagrammatic representation of an error block that may be sent from a CF card to a reader to indicate that a Media Card Execute CF ISP command has not executed normally in accordance with an embodiment of the present invention.
  • An error data block 892 includes bits 888 which are associated with registers 892.
  • a status register 892f includes a bit 888e which identifies the device or CF card which the aborted command was targeting.
  • the CF card may set a bit 888a of a status register 892g to indicate that an error has occurred, and set associated bits 888 in an error register 892a accordingly.
  • bit 888g of error register 892a may be set to a value of ' 1 ' if the CF card has an underlying data error.
  • bit 888c ofbyte 892a may be set to a value of ' 1 ' to indicate an aborted process. That is, bit 888c of error register 892a may be set to a value of ' 1 ' to indicate either that the command was aborted because the command was not supported, that the command was not executed, or that execution of the command was initiated but not completed.
  • a bit 888h and bit 888d must be set according to the X3T10 protocol. If the error in processing the command has occurred because of a device fault, or, more generally, if a device fault has occurred, then a bit 888f of status register 892g may be set to a value of ' 1. ' A bit 888g of status register 892g may be set to a value of ' 1 ' when the command was completed.
  • a sector number register 892c is arranged to provide the least significant bit of the LBA associated with the sector in the CF card that is causing the error in the execution of the command, if applicable. That is, when a sector causes the execution of a command to be aborted, the least significant bit of the LBA of that sector is returned to the reader in sector number register 892c.
  • a cylinder low register 892d and a cylinder high register 892e are arranged to return the middle byte of the LBA of the sector and the most significant bit of the LBA of the sector, respectively.
  • a reader has generally been described as being a USB reader, the reader may be substantially any suitable reader or adapter which allows a memory card to communicate with a host system. Suitable readers include, but are not limited to, PC card readers.
  • firmware has generally been described as involving sending new card firmware or code from a host computer substantially directly to the memory or media card through a reader.
  • firmware is sent to the card substantially directly from the host computer, any changes which are to be made to enhance the capabilities of the overall system may be performed by substantially only upgrading the software on the computer, hi other words, it may not be necessary to upgrade reader firmware to enhance ISP capabilities.
  • ISP capabilities may be enhanced essentially be upgrading software associated with the host computer system. It should be appreciated, however, that in some embodiments, new card firmware may be sent from a host computer to a reader, and the reader may send ISP commands to a memory card.
  • the new card firmware may generally include sections of firmware which are intended to replace corresponding sections of firmware that are currently in the memory card.
  • New card firmware may also include sections of firmware which are to be added to the firmware that is currently on the memory card, e.g., to augment the current firmware.
  • the new card firmware that is provided to the memory card may be intended to replace substantially all of the firmware that is currently on the memory card.
  • bits and the words associated with various functions and command descriptors may vary widely.
  • specific bits or words which are set a certain way in command descriptor blocks to indicate different states associated with the blocks may vary.
  • the bits that are set to indicate that ISP is supported and the bits that are set to enable ISP support may generally vary.
  • substantially any other bit may be set. Any bit may be set as long as the overall system is aware of which bit is to be set to indicate that ISP is supported.
  • commands and data blocks have generally been described as either being suitable for use with SD cards or with CF cards, it should be appreciated that the commands may generally be applicable to other types of memory cards.
  • commands that are suitable for SD cards may also be suitable for multi media cards.
  • commands and data blocks that have been described as being suitable for use with respect to CF cards may be augmented to be used with other types of cards including, but not limited to, SD cards.
  • such commands and data blocks may be suitable for use with some types of memory cards substantially without augmentation.
  • memory cards which have firmware that may be updated using ISP commands may be widely varied.
  • Other types of memory cards which have firmware that may be updated using the methods described above include, but are not limited to, Memory Stick cards and Smart Media cards.
  • the host has been described as being in communication with a reader that is in communication with a memory card.
  • the host and the reader may be substantially separate entities, i.e., the reader may be a peripheral device which may be readily attached to and detached from the host, it should be understood that the reader may also be a part of the host.
  • the reader may be an integral part of the host that may not be easily attached to or detached from the host.
  • Firmware that may be updated may include, in one embodiment, firmware code which enables ISP to be supported. That is, ISP code itself may be updated in a memory card using an ISP process that is arranged to update or upgrade the card firmware.
  • ISP code itself may be updated in a memory card using an ISP process that is arranged to update or upgrade the card firmware.
  • the card firmware is in electrically erasable programmable read-only memory (EEPROM) and the execution of the firmware is in static random access memory (SRAM), then the ISP code associated with the card firmware may be updated during a card firmware updating process.
  • EEPROM electrically erasable programmable read-only memory
  • SRAM static random access memory
  • processes associated with updating card firmware on SD cards and CF cards may include steps associated with determining if the SD cards and CF cards, respectively, support ISP. Therefore, the present examples are to be considered as illustrative and not restrictive, and the invention is not to be limited to the details given herein, but may be modified within the scope of the appended claims.

Abstract

Methods and apparatus for efficiently enabling firmware associated with a flash memory card to be updated are disclosed. According to one aspect of the present invention, a method for updating firmware associated with a memory storage device includes providing new firmware to a host and sending the new firmware from the host to a reader which communicates with the host. The reader interfaces with the memory storage device which includes installed firmware. The method also includes sending the new firmware from the reader to the memory storage device, and incorporating the new firmware into the memory storage device such that the new firmware at least partially replaces the installed firmware. In one embodiment, the method further includes embedding the new firmware into a first command. In such an embodiment, sending the new firmware from the host to the reader includes sending the first command from the host to the reader.

Description

IMPLEMENTATION OF IN SYSTEM PROGRAMMING TO UPDATE FIRMWARE ON MEMORY CARDS
BACKGROUND OF THE INVENTION
1. Field of Invention
The present invention relates generally to mass digital data storage systems. More particularly, the present invention relates to systems and methods for enabling a user to update the firmware associated with a mass digital data storage system such as a memory card.
2. Description of the Related Art
The use of non- olatile memory systems such as flash memory storage systems is increasing due to the compact physical size of such memory systems, and the ability for non- olatile memory to be repetitively reprogrammed. The compact physical size of flash memory storage systems facilitates the use of such storage systems in devices which are becoming increasingly prevalent. Devices which use flash memory storage systems include, but are not limited to, digital cameras, digital camcorders, digital music players, handheld personal computers, and global positioning devices. The ability to repetitively reprogram non-volatile memory included in flash memory storage systems enables flash memory storage systems to be used and reused.
When firmware which allows instructions to run on a flash memory system such as a memory card needs to be updated, a user generally sends the card back to the manufacturer of the memory card. The manufacturer may update the firmware on the memory card, e.g., a Compact Flash (CF) card or a Secure Digital (SD) card, to provide new features for the card, or to fix bugs in the firmware. Typically, the manufacturer may use specialized hardware to update the firmware. As will be appreciated by those skilled in the art, processes used to update firmware in memory cards are generally complicated, and subject to error. Therefore, updating the firmware in a memory card is often a time-consuming, difficult process for the manufacturer of the memory card.
In addition to being time-consuming and difficult for a manufacturer, updating the firmware in a memory card is often an inconvenient process to a user. Sending or otherwise providing the memory card to a manufacturer for updating, and awaiting the return of the updated memory card may be inconvenient, particularly when the memory card is not available for use by the user for an extended period of time.
Therefore, what is desired is a system which enables firmware on a memory card to be updated efficiently. Specifically, what is needed is a system and a method which allows the firmware on a memory card to be updated efficiently and relatively easily by a user, without requiring that the memory card be returned to a manufacturer.
SUMMARY OF THE INVENTION
The present invention relates to a system and a method for efficiently enabling firmware associated with a flash memory card to be updated. According to one aspect of the present invention, a method for updating firmware associated with a memory storage device includes providing new firmware to a host and sending the new firmware from the host to a reader which is in communication with the host. The reader interfaces with the memory storage device which includes installed firmware. The method also includes sending the new firmware from the reader to the memory storage device, and incorporating the new firmware into the memory storage device such that the new firmware at least partially replaces the installed firmware. In one embodiment, the method further includes embedding the new firmware into a first command. In such an embodiment, sending the new firmware from the host to the reader includes sending the first command from the host to the reader.
In another embodiment, incorporating the new firmware into the memory storage device updates the installed firmware by writing the new firmware into the memory storage device using the host. In such an embodiment, the method may also include enabling in-system-programming capabilities on the reader that allow the new firmware to be incorporated into the memory storage device.
Allowing the firmware on a memory storage device such as a flash memory card to be substantially updated by a user through the use of a host and a reader allows the updating to be performed efficiently. A reader and a flash memory card that are each arranged to support in system programming enable card firmware updates to be performed without requiring a relatively large investment of time. By providing updates to a user through a software package, and allowing the software package to cooperate with the card reader to provide the update to the memory card, the process of upgrading the memory card is also relatively uncomplicated.
According to another aspect of the present invention, a system for updating firmware associated with a memory card includes, in addition to the memory card on which card firmware is installed, means for providing new card firmware to the memory card and means for incorporating the new card firmware into the memory card such that the new card firmware at least partially replaces the installed card firmware. In one embodiment, the means for providing the new card firmware to the memory card includes a host and means for allowing the host to interface with the memory card. The host provides the new card firmware to the means for allowing the host to interface with the memory card, and the means for allowing the host to interface with the memory card includes means for sending the new card firmware to the memory card.
h accordance with another aspect of the present invention, a memory storage device that interfaces with a reader includes a storage element that stores data and firmware. The firmware cooperates with the storage element to store the data and to execute instructions. The firmware also supports in-system-programming capabilities which enable the firmware to be substantially updated while the memory storage device is interfaced with the reader. In one embodiment, the memory storage device also includes a receiving mechanism that receives an update for the firmware through the reader. In such an embodiment, the firmware incorporates the update to update the firmware.
According to another aspect of the present invention, an adapter that enables a memory device to communicate with a computing system includes a port and firmware. The port is arranged to accept the memory device substantially into the adapter, and the firmware supports in-system-programming capabilities. The in- system-programming capabilities include enabling the computing system to provide the memory device with updated firmware code for the memory device through the adapter. In one embodiment, the adapter is one of a USB reader or a PC reader.
These and other advantages of the present invention will become apparent upon reading the following detailed descriptions and studying the various figures of the drawings.
BRIEF DESCRIPTION OF THE DRAWINGS
The invention may best be understood by reference to the following description taken in conjunction with the accompanying drawings in which: Fig. 1 is a diagrammatic representation of a general host system which includes a non- volatile memory device in accordance with an embodiment of the present invention.
Fig. 2 is a diagrammatic representation of a computer system, a reader, and a memory card which are part of a system in which the card firmware associated with the memory card may be updated in accordance with an embodiment of the present invention.
Fig. 3 is a process flow diagram which illustrates the steps associated with a process of updating card firmware on a card in accordance with an embodiment of the present invention. Figs. 4a and 4b are a process flow diagram which illustrates the steps associated with updating firmware on a secure digital memory card in accordance with an embodiment of the present invention. Fig. 5 is a process flow diagram which illustrates the steps associated with updating firmware on a Compact Flash memory card in accordance with an embodiment of the present invention.
Fig. 6a is a diagrammatic representation of a command descriptor block associated with a Check ISP command that is suitable for use in a system with a secure digital memory card in accordance with an embodiment of the present invention.
Fig. 6b is a diagrammatic representation of a data block that is suitable for use in returning data from a reader to a host in response to a Check ISP command in accordance with an embodiment of the present invention.
Fig. 6c is a diagrammatic representation of a command descriptor block associated with a Media Card Execute SD command that is suitable for use in a system with a secure digital memory card in accordance with an embodiment of the present invention. Fig. 7a is a diagrammatic representation of a command descriptor block associated with a Media Card Execute CF command which is suitable for use in a system with a Compact Flash memory card in accordance with an embodiment of the present invention.
Fig. 7b is a diagrammatic representation of a block which may be returned to a host by a Compact Flash memory card in response to a Media Card Execute CF command in accordance with an embodiment of the present invention.
Fig. 8a is a diagrammatic representation of a command block register data associated with a Check ISP command that is suitable for use with a compact flash card in accordance with an embodiment of the present invention. Fig. 8b is a diagrammatic representation of a command block register data which may be returned by a compact flash card to a reader in accordance with an embodiment of the present invention.
Fig. 8c is a diagrammatic representation of a command block register data that may be sent from a compact card to a reader when an error has been encountered in processing a Check ISP command in accordance with an embodiment of the present invention. Fig. 8d is a diagrammatic representation of a command block register data that may be sent to a reader from a compact flash card as a part of a Media Card Execute CF ISP command in accordance with an embodiment of the present invention.
Fig. 8e is a diagrammatic representation of a command block register data that may be sent between a compact flash card and a reader which indicates that a Media Card Execute CF ISP command has executed normally in accordance with an embodiment of the present invention.
Fig. 8f is a diagrammatic representation of a command block register data that may be sent from a compact flash card to a reader to indicate that a Media Card Execute CF ISP command has not executed normally in accordance with an embodiment of the present invention.
DETAILED DESCRIPTION OF THE EMBODIMENTS Conventional processes for updating or upgrading firmware on a flash memory card are often inconvenient for an owner or user, time-consuming, and difficult. As a manufacturer generally updates the firmware on a memory card that is owned by a user, the need for the user to provide the memory card to the manufacturer is often inconvenient, as the memory card may not be used by the user while the memory card is in the possession of the manufacturer. Processes used by a manufacturer to update the firmware on a memory card are often complicated and, hence, are both time-consuming and subject to errors.
Enabling the firmware on a flash memory card to be substantially updated by a user, as for example using a computer and a card reader that are accessible to the user, allows the updating to be performed efficiently and, typically, relatively conveniently. By providing updates to a user through a software package, and allowing the software package to cooperate with the card reader to provide the update to the memory card, the process of upgrading the memory card is also relatively uncomplicated.
A memory card which is suitable for use in an overall system which allows the firmware associated with the memory card to be updated is generally used in conjunction with a host system. Referring initially to Fig. 1, a general host system that includes a non- volatile memory device, e.g., a Compact Flash (CF) memory card or a Secure Digital (SD) card, will be described. A host or computer system 100 generally includes a system bus 104 which allows a microprocessor 108, a random access memory (RAM) 112, and input/output circuits 116 to communicate. It should be appreciated that host system 100 may generally include other components, e.g., display devices and networking device, which are not shown for purposes of illustration.
In general, host system 100 may be capable of capturing information including, but not limited to, still image information, audio information, and video image information. Such information may be captured in real-time, and may be transmitted to host system 100 in a wireless manner. While host system 100 may be substantially any system, host system 100 is typically a system such as a digital camera, a video camera, a cellular communications device, an audio player, or a video player. It should be appreciated, however, that host system 100 may generally be substantially any system which stores data or information, and retrieves data or information.
Host system 100 may also be a system which either only captures data, or only retrieves data. That is, host system 100 may be a dedicated system which stores data, or host system 100 may be a dedicated system which reads data. By way of example, host system 100 may be a memory writer which is arranged only to write or store data. Alternatively, host system 100 may be a device such as an MP3 player which is typically arranged to read or retrieve data, and not to capture data.
A non- volatile memory device 120 which, in one embodiment, is a removable non- volatile memory device, is arranged to interface with bus 104 to store information. Typically, non- volatile memory device 120 communicates with bus 104 through an interface 130. Interface 130 may serve to reduce loading on bus 104, as will be understood by those skilled in the art. In one embodiment, interface 130 may be a reader or an adaptor. Non- volatile memory device 120 includes non- volatile memory 124 and a memory control system 128. In one embodiment, non-volatile memory device 120 may be implemented on a single chip or a die. Alternatively, non-volatile memory device 120 may be implemented on a multi-chip module, or on multiple discrete components which may be used together as non- volatile memory device 120.
Non- volatile memory 124, or core, is arranged to store data such that data may be accessed and read as needed. Data stored in non- volatile memory 124 may also be erased as appropriate, although it should be understood that some data in non- olatile memory 124 may not be erased. The processes of storing data, reading data, and erasing data are generally controlled by memory control system 128. In one embodiment, memory control system 128 manages the operation of non- volatile memory 124 such that the lifetime of non- volatile memory 124 is substantially maximized by essentially causing sections of non- volatile memory 124 to be worn out substantially equally.
While non- volatile memory device 120 has generally been described as including a memory control system 128, i.e., a memory controller, it should be understood that not all non- volatile memory devices include a controller. By way of example, while non- volatile memory devices including, but not limited to, PC cards, Compact Flash cards, Multi Media cards, and Secure Digital cards include controllers, other non- volatile memory devices including, but not limited to, Smart Media cards and Memory Stick cards may not include controllers, h an embodiment in which non- volatile memory device 124 does not include a controller, the functions associated with the controller may be integrated into a single chip, as will be appreciated by those skilled in the art. It should be understood that non- volatile memory device 120 may generally be implemented as either a single-chip device or a multi-chip module, as previously mentioned.
In one embodiment, host system 100 maybe a computer system which stores information to or reads information from a non- olatile memory device such as a memory card through a card reader interface. That is, host system 100 may be a computer system which makes use of a memory card to store data and to read data. Fig. 2 is a diagrammatic representation of a computer system, reader, and memory card which cooperate to update firmware associated with the memory card in accordance with an embodiment of the present invention. A computer system 202 generally communicates with a memory card 220 through a reader 230. Reader 230 typically serves as an interface between computer system 202 and memory card 220 to enable computer system 202 to store data in a memory 224 of memory card 220 and to retrieve data from memory 224. That is, when computer system 202 communicates with memory card 220 to transfer data between computer system 202 and memory card 220, the communications take place through reader 230. Reader 230 may include a port or a receptacle (not shown) which enables memory card 220 to communicably interface with reader 230 such that reader 230 may enable communications to be made between memory card 220 and computer system 202.
Memory card 220 includes both memory 224 and a controller 228. Memory 224 may include storage elements, blocks, or cells which store bits of information. Controller 228 interfaces with memory 224 to facilitate the storage of and retrieval of data from memory 224. Controller 228 includes card firmware 229 which facilitates the operation of controller 228 by effectively allowing instructions to be executed or run using controller 228. For an embodiment in which card firmware 229 may be updated using computer system 202 and reader 230, card firmware 229 also includes in-system-programming (ISP) support capabilities. ISP support capabilities generally provide functionality which enables card firmware 229 to be updated substantially by a user, without requiring that memory card 220 be returned to a manufacturer in order for card firmware 229 to be updated.
Reader 230, which, for example, maybe a Universal Serial Bus (USB) reader or a personal computer (PC) card reader, includes reader firmware 232 which allows reader 230 to run instructions associated with the operation of reader 230. Like card firmware 229, reader firmware 232 includes ISP support capabilities. That is, reader firmware 232 is arranged to support the updating or upgrading of card firmware 229. When it is determined that card firmware 229 is in need of updating or upgrading, e.g., through a notification from the manufacturer of memory card 220, software 210 which includes the new or updated card firmware may be obtained from a network 240 by computer system 202. By way of example, computer system 202 may communicate with a website on network 240 that is associated with the manufacturer of memory card 220 to download software 210 and, in one embodiment, a software driver 206. It should be appreciated that in lieu of obtaining software 210 through network 240, software 210 may also be obtained using a media storage device such as a CD-ROM or a floppy disk.
Information included in software 210 may be used by computer system 202 in cooperation with reader 230 to update card firmware 229. For example, new or updated card firmware which is included in software 210 may be substantially extracted from software 210 by computer system 202, and provided to memory card 220 using reader 230. Providing the updated card firmware to memory card 220 generally involves providing the updated card firmware as an input to memory card 220, e.g., as an input to an input/output port or receiving mechanism (not shown) of memory card 220. Memory card 220 may successful incorporate the updated card firmware when both reader 230 and memory card include ISP support capabilities.
When firmware is downloaded, a small block of ISP codes may be allocated to handle ISP. It should be appreciated that once a download of updated firmware begins, card firmware 229 typically completes substantially all of its internal activities. In addition, once a download of updated card firmware has commenced, card firmware 229 may not handle any commands with the exception of commands associated with the reading of updated card firmware content and commands associated with the downloading process. Once the download has completed, memory card 220 may perform a reset procedure using the newly installed firmware.
With reference to Fig. 3, the general steps associated with updating card firmware on a memory card will be described in accordance with an embodiment of the present invention. A process 302 of updating card firmware begins at step 306 in which software which includes new card firmware which is to essentially replace the card firmware that is currently on the memory card is downloaded onto a computer, i.e., the computer which is in communication with the memory card. As described above with respect to Fig. 2, the software which includes the new card firmware may be downloaded onto the computer from a network.
Once the software is downloaded, the software is executed in step 310 to download the new card firmware onto the reader which serves as an interface between the computer and the memory card. In one embodiment, executing the software includes substantially extracting the new card firmware from the software such that the new card firmware may be sent or downloaded to the reader. After the new card firmware is downloaded onto the reader, process flow moves to step 314 in which the reader sends or downloads the new card firmware to the memory card. Upon receiving or otherwise obtaining the new card firmware, the new card firmware is installed on the memory card in step 318. Typically, the new card firmware either replaces or augments the card firmware which was already on the memory card. The process of updating card firmware is completed once the new card firmware is installed on the memory card.
In general, specific processes for updating card firmware may vary depending upon the type of memory card that is being updated. By way of example, a process for updating the card firmware of an SD memory card may vary from a process for updating the card firmware on a CF memory card. One suitable process for updating the card firmware of an SD memory card will be described with respect to Figs. 4a and 4b, while one suitable process for updating the card firmware of a CF memory card will be described below with reference to Fig. 5.
Figs. 4a and 4b are a process flow diagram which illustrates the steps associated with updating the firmware on an SD card in accordance with an embodiment of the present invention. A process 400 of updating the firmware on an SD card begins at step 404 in which a host computer determines whether the reader which allows the host computer to interface with the SD card supports ISP. hi the described embodiment, such a determination may be made by checking if the small computer system interface (SCSI) Inquiry data information for ISP support is available on the reader. As will be appreciated by those skilled in the art, SCSI is a parallel interface standard used by a USB system for attaching peripheral devices such as card readers to computers. The determination of whether the SD card supports ISP may include determining if a particular bit in card specific data information is set, e.g., whether the nineteenth bit in the card specific data information is set to '1.'
It should be appreciated that the steps associated with updating the firmware on an SD card may also be applied to updating the firmware on a MultiMedia card (MMC). As such, steps associated with process 400, though described in terms of an SD card, are generally also applicable to an MMC card.
A determination is made in step 408 regarding whether the reader supports
ISP. If it is determined that the reader does not support ISP, then the indication is that the reader may not be used to facilitate the updating of firmware on the SD card. As such, process flow moves to step 412 in which an exception is thrown to indicate that the reader does not support ISP. Once the exception is thrown, the process of updating the firmware on the SD card is effectively terminated.
Alternatively, if it is determined in step 408 that the reader does support ISP, then in step 416, the host sends a command, e.g., a SCSI Check ISP command, to firmware on the reader to enable ISP support. One embodiment of a Check ISP command will be described below with respect to Fig. 6a. After the Check ISP command is sent, ISP support is enabled on the reader in step 420. Enabling ISP support may include, in one embodiment, setting the twentieth bit in the card specific data information to ' 1 ' in response to the Check ISP command. In response to a command to enable ISP support, the reader may return a data structure to the host which substantially identifies the relative card address (RCA) of the SD card, as will be discussed below with reference to Fig. 6b. Once ISP support is enabled on the reader, ISP support is enabled on the SD or MMC card in step 424. In one embodiment, enabling ISP support on the SD or MMC card may include writing card-specific data with the twentieth bit set, i.e., to indicate that ISP is supported, to the SD or MMC card using the host. The CMD9 command to retrieve and the CMD27 command to program the card-specific data may be substantially embedded within a SCSI Media Card Execute SD command, as will be discussed below with respect to Fig. 6c.
After the card-specific data is written to the SD card, or an MMC card, the block length associated with a CMD16 command is set in step 428 to the size of the card firmware that is to be transferred from the host to the SD card, or to the MMC card. As will be understood by those skilled in the art, the CMD16 command is a standard command that is recognized by both SD and MMC cards. The CMD16 command is described in the "MultiMedia Card System Specification, Version 2.2," published by the MMCA Technical Committee in January 2000, which is incorporated herein by reference in its entirety. The CMD16 command may be embedded within a Media Card Execute SD command.
In step 432, the CMD16 command and the new card firmware are sent to the SD card from the host through the reader using a command such as an ACMD24 command, which may be embedded within a Media Card Execute SD command. In general, ACMD24 command is a command which enables the new card firmware to be written to the SD card. As such, once the ACMD24 command is received by the SD card, the SD card may substantially install the new card firmware.
Once the new card firmware is installed on the SD card, the card performs a power-on-reset in step 436. That is, the SD card effectively reboots itself to enable initialization codes associated with the SD card to execute to substantially initialize the updated card firmware, i.e., the card firmware that includes the new card firmware. In one embodiment, the power-on-reset, which is performed by the card firmware, essentially includes powering down the SD card and then powering the SD card back up. After the power-on-reset is performed, the host sends a Check ISP command to the reader in step 440 the reader to disable ISP support. The ISP support may be disabled by sending the Check ISP command with an appropriate bit set to '0.'
Upon receiving the command to disable ISP support, the reader typically electronically detaches itself from the host in step 444. While electronically detaching the reader from the host may include the reader detaching itself from the USB bus of the host, electronically detaching the reader from the host may also include physically detaching the reader from the host. Once the reader is electronically detached from the host, the reader sends a command to the SD card in step 448 to reinitialize the SD card. A CMD0 command may reset the SD card, while a CMDl command may activate the initialization process of the MMC card and a ACMD41 may activate the SD card.
After the SD card is reinitialized, the reader electronically reattaches itself to the host in step 452. By electronically reattaching itself to the host in step 452, the reader effectively causes the host or, more specifically, software associated with the host to interact with the SD card as a new device. In other words, the electronic detachment of the reader in step 444 and the electronic reattachment of the reader in step 452 essentially cause the host to view the SD card as a new device and, hence, enables the updated firmware on the SD card to be recognized by the host. Once the reader electronically reattaches itself to the host, the process of updating card firmware on an SD card is completed.
Another type of memory card that may support ISP and, hence, includes card firmware that may be substantially updated by a user, is a CF card. Fig. 5 is a process flow diagram which illustrates the steps associated with are a process flow diagram which illustrates the steps associated with updating the firmware on a CF card in accordance with an embodiment of the present invention. A process 500 of providing new card firmware to a CF card begins at step 504 in which a host computer determines whether the reader which allows the host computer to interface with the CF card supports ISP. In the described embodiment, such a determination may be made by checking if the SCSI Inquiry data information for ISP support is available on the reader. The detennination of whether the CF card supports ISP may include determining if a particular bit in a particular word that contains device information is set appropriately, e.g., whether bit zero of an eighty-third word in IDENTIFY DEVICE information is set to ' 1. '
It is determined in step 508 if the reader supports ISP. If it is determined that the reader does not support ISP, then the indication is that the reader may not be used to update the firmware on the CF card. Hence, process flow moves to step 512 in which an exception is thrown to indicate that the reader does not support ISP. Once the exception is thrown, the process of updating the firmware on the CF card is effectively terminated.
Alternatively, if it is determined in step 508 that the reader does support ISP, then the host sends a command, e.g., a SCSI Check ISP command, to firmware on the reader to enable ISP support. One embodiment of a Check ISP command that is suitable for use with respect to a CF card will be described below with respect to Fig. 8a. After the Check ISP command is sent, ISP support is enabled on the reader in step 520. Enabling ISP support may include, in one embodiment, setting bit zero in the eighty-sixth word of IDENTIFY DEVICE information to T in response to the Check ISP command.
ISP support on the CF card is enabled in step 524. Typically, the host sends a command to the CF card which causes the CF card to enable itself to receive and to incorporate new firmware, h one embodiment, the command may be a Media Card Check CF ISP may be in the form of an AT Attachment (ATA) command that is embedded in a SCSI Media Card Execute CF command. ATA commands, which are well known in the art, are described in "CompactFlash Memory Card Product Manual," published by SanDisk Corporation of Sunnyvale, California, in April 2000, which is incorporated herein by reference in its entirety. One SCSI Media Card Execute CF command in which the Media Card Check CF ISP command is embedded will be described below with respect to Fig. 7a. Once the ISP support on the CF card is enabled, new card firmware is sent from the host to the CF card in step 528. The new card firmware may be sent from the host to the CF card in a Media Card Execute CF ISP command which is an ATA command that may be embedded within the SCSI Media Card Execute CF command. After the new card firmware is sent to the CF card, the CF card performs a power-on- reset operation in step 532 which disables the ISP support on the CF card. Process flow then proceeds to step 534 in which the host sends a Check ISP command to the reader to disable the ISP support on the reader.
After the ISP support on the reader is disabled, the reader typically electronically detaches itself from the host in step 536. Once the reader is electronically detached from the host, the reader sends a command to the CF card in step 540 to reinitialize the CF card, hi one embodiment, in addition to resetting the CF card, the reader may also read new device identifying information from the CF card. From step 540, process flow moves to step 544 in which the reader electronically reattaches itself to the host. By electronically reattaching itself to the host, the reader effectively causes the host or, more specifically, software associated with the host to interact with the CF card as a new device. Upon the reader reattaching itself to the host, the process of updating card firmware on a CF card is completed.
As mentioned above with respect to Figs. 4a and 4b, an overall system which supports ISP for SD cards includes recognition of a Check ISP command. That is, an ISP feature set that is associated with SD cards includes a Check ISP command. Fig. 6a is a diagrammatic representation of a command descriptor block for a Check ISP command in accordance with an embodiment of the present invention. A Check ISP command descriptor block 602 generally includes twelve bytes 606, each with eight bits 610. Block 602 is associated with a DOh command code, and is essentially a component of a SCSI command that is sent from a host to a reader, e.g. , from a host to firmware associated with a reader. A byte 606a is arranged to include an operation code. A bit 610a of byte 606k is arranged to enable a media card pass through command. That is, bit 610a of byte 606k is arranged to indicate whether a host may send commands or software substantially directly to a card through a reader, instead of having the host send a command to the reader, which then sends the command to the card. In the described embodiment, bit 610a of byte 606k, or a PASS ENB field, may be set to a value of "1" to indicate that media card pass through functionality is enabled.
Typically, media card pass through functionality is enabled when ISP support is enabled, as ISP generally uses pass through commands. When ISP support is enabled, an ISP ENB field, e.g., abit 610b ofbyte 606k, maybe set to a value of "1." Hence, as ISP uses pass through commands, when the ISP ENB field is set to "1," the PASS ENB field is also set to "1," in the described embodiment. To disable ISP support, the ISP ENB field may be set to a value of "0."
A bit 610h ofbyte 606k is a "lock bit" which may be set to a value of "1" to indicate that both ISP mode or support and a media card pass through mode, i.e., a mode which enables a host to send card firmware substantially directly through a reader to a card, may not be altered by altering either the ISP ENB field or the PASS ENB field. In other words, bit 61 Oh ofbyte 606k effectively serves to prevent mistakes from occurring with respect to enabling ISP mode and a media card pass through mode.
When the ISP ENB field is set to "1," and firmware associated with a reader receives block 602, the reader firmware may set an internal flag for ISP processing. That is, reader firmware may configure itself to enable ISP processing. The reader firmware may also check to determine if the card specific data of the SD card has ISP support functions. After the reader, firmware is configured to enable ISP processing, and block 602 is received with the ISP ENB field set to "0," or cleared, the reader firmware generally assumes that the corresponding card firmware has been updated or the host terminates the update process. As a result, the reader may reset the card, detach itself from the USB bus of the host, and reattach itself to the host. In one embodiment, the reader may return a data block to the host in response to a Check ISP command. Fig. 6b is a diagrammatic representation of a data block that is returned to a host in response to a Check ISP command in accordance with an embodiment of the present invention. A data block 622 includes three bytes 626 of eight bits 630 each, and is sent from a reader to a host as a confirmation of a received Check ISP command. It should be appreciated that when a reader that receives a Check ISP command is incapable of supporting ISP, then the reader my return a code to the host which indicates that the Check ISP command was, in effect, invalid. An invalid command is identified by the SCSI Sense Data Format with ILLEGAL
REQUEST, value 5, as the Sense Key and INVALID FIELD IN CDB, values 24h and OOh, as ASC and ASCQ.
A first byte 626a of data block 622 includes a bit 630a which is a PASS ENB field that indicates whether the reader is arranged to indicate whether media card pass through capability is enabled after the Check ISP command is executed. A second bit 630b in first byte 626a is an ISP ENB field which is arranged to indicate whether ISP support is enabled. Typically, a value of "1" in the PASS ENB field indicates that media card pass through capability is enabled, while a value of "1" in the ISP ENB field indicates that ISP support is enabled.
Bits 630c-f of byte 626a are arranged to contain a media card type. For example, in one embodiment, if the card is a standard SD memory card, bits 630c-f of byte 626a may be set as '001,' while if the card is a MMC card, bits 630c-f of byte 626a may be set as '010.' In such an embodiment, bits 630c-f of byte 626a may be set as 'Oi l ' for a SD input-output (IO) card, bits 630c-f ofbyte 626a may be set as '100' for a personal computer memory card international association (PCMCIA) card, and bits 630c-f of byte 626a may be set as '101' for a CF card. It should be appreciated that the various codes associated with card types may vary.
Some card types have an associated RCA. When the card is an SD card, for example, bytes 626b and 626c may include RCA bits which are used by the host to substantially ensure that commands are sent to a proper address, i.e., the address associated with the card.
Fig. 6c is a diagrammatic representation of a Media Card Execute SD command descriptor block in accordance with an embodiment of the present invention. A Media Card Execute SD command block 652 that may be arranged within a corresponding SCSI command descriptor (not shown) is arranged to allow a host to send a command to an SD card which passes through a reader, and is associated with a Dlh command code. Block 652 is generally arranged as an SD command which is embedded in an overall SCSI command, or a wrapper. A byte 656a is arranged to contain information associated with an operation code which, in the described embodiment, is consistent with a Dlh command code.
A SD or MMC command that is embedded in block 652 includes bytes 656c-j.
When a reader receives block 652, the reader substantially removes at least portions of the embedded command, e.g., removes information associated with bytes 656c-j, and forwards the embedded command to the recipient SC card. The embedded command includes a command index which is stored in byte 656c. The command index substantially holds a command to the SD card, while command arguments which are stored in bytes 656d-g are arguments to the command associated with the command index. Bytes 656h-j hold a data transfer length associated with the amount of data to be transferred from the host.
Byte 656k of block 652 is arranged to contain a response type, e.g., in bits
660e-h, that indicates the SD or MMC response type of the command identified in byte 656c. Bit 660d ofbyte 656k is arranged to indicate the direction of data transfer. By way of example, when bit 660d ofbyte 656k is set to a value of ' 1,' data may be transferred from the reader to the host, while when bit 660d ofbyte 656k is set to a value of '0,' data may be transferred from the host to the reader. Bit 660c of byte 656k is arranged to indicate a command type such that when bit 660c is set to a value of '1,' the command is considered to be a normal command, whereas when bit 660c is set to a value of '0,' the command is considered to be an application command. Bit 660b ofbyte 656k, which indicates whether to retrieve response data in response to the command associated byte 656c, may be set to a value of ' 1' when response data is to be retrieved and to a value of '0' when response data is not to be retrieved. The length of any response data that is to be retrieved is substantially specified by the data transfer length held in bytes 656h-j.
In general, a Media Card Execute SD command starts the execution of the embedded SD command associated with block 652. The reader or, more specifically, firmware associated with the reader may send the embedded command to the SD card, and receive any expected response. By way of example, if the embedded command is a command to retrieve data from the SD card, the reader will generally read data from the SD card and transfer the data to the host. In the event that the reader does not have a buffer arranged to load the data that is read form the host, the reader may read partial data from the SD card and transfer the partial data to the host. Typically, for a reader without a buffer, the reader will continue to read and transfer partial data until substantially all data requested from the SD card is transferred to the host. Similarly, if the embedded command is a command to write data such as new card firmware to the SD card, the reader may read data from the host and transfer the data from the host to the SD card either substantially all at once or in increments, e.g., when the reader does not include a buffer. As will be understood by those skilled in the art, data transfer may generally be accomplished using substantially any suitable protocol, h one embodiment, a data transfer protocol which complies with an X3T10 standard may be used.
A Media Card Execute command which is suitable for use for an SD card is generally different from a Media Card Execute command which is suitable for use with a CF card. With reference to Fig. 7a, one embodiment of a, Media Card Execute CF command which is suitable for use in a system which allows updates to be made to firmware associated with a CF card will be described in accordance with the present invention. A command descriptor block 702 for a SCSI Media Card Execute CF command, which is generally embedded inside an overall SCSI command descriptor, includes twelve bytes 706 of eight bits 710 each. The Media Card Execute CF command is generally consistent with a D2h command code. A byte 706a is arranged to contain information associated with an operation code which, in the described embodiment, is consistent with a D2h command code.
Bytes 706f-k are substantially filled using ATA task file registers. In other words, bytes 706f-k may correspond to ATA commands 1F2 through 1F7 such that task file registers associated with the CF card may be returned as data. Task file registers may include, but are not limited to, an error register, a sector count register, a sector register, a cylinder low register, a cylinder high register, a device/head register, and a command/status register, as will be understood by those skilled in the art. Typically, bytes 706f-k may be extracted by a reader and sent to the CF card. For an embodiment in which data is to be transferred from the CF card to the reader, register values may be retrieved from the CF card and returned to the host through the reader in the format shown in Fig. 7b. As shown, a block 752 as shown in Fig. 7b includes bits 716c-j which correspond to bits 706c-j of block 702, though bits 716c-j will generally have different task file register values.
A byte 7061 is arranged to include a bit 710a which indicates whether the host which initiates the Media Card Execute CF command has an intention to read ATA task file registers back. When bit 710a ofbyte 7061 is set to a value of ' 1,' the indication may be that the host substantially intends to read ATA task file registers back only. The data format of the returned task file register is shown in Fig. 7b. A second bit 710b ofbyte 7061 is arranged to be set to a value of '1 ' for a read or input operation, and to be set to a value of '0' for a write or output operation. A third bit 710c ofbyte 7061 is arranged to indicate whether there is data to be transferred
In general, except when bit 710a ofbyte 7061 is set to a value of '1,' a reader extracts bytes 706f-k and sends the task file registers to the CF card. If the transfer of data is requested, i.e., when bit 710c ofbyte 7061 indicates that there is data to be transferred, the task file registers specify sector count, sector, cylinder, and head registers using a standard protocol such as a USB mass storage class bulk-only protocol. The direction of the data transfer and the data transfer length are generally both specified in block 702, e.g., in bit 710b ofbyte 7061, and a USB wrapper which substantially encompasses block 702. In one embodiment, the data transfer protocol used complies with a standard such as an X3T13 standard.
A Check ISP command which is suitable for use with a CF card may be generated by reader firmware, and sent to a CF card. In the described embodiment, such a Check ISP command may also be suitable for use with a SD card. That is, a Check ISP command may be the same for a CF card and for a SD card. Such a Check ISP command may be consistent with a D5h command code for a CF card, and is typically sent from a reader to a flash card once the reader generates the command. Fig. 8 a is a diagrammatic representation of a command block associated with a Check ISP command that is suitable for use with a CF card in accordance with an embodiment of the present invention. A command block 804 includes bits 808 associated with registers 812. Registers 812, in one embodiment, may be associated with bytes 706f-706k of Fig. 7a. That is, block 804 may effectively be embedded in block 702 of Fig. 7a.
A bit 808a associated with a register 812a is arranged to indicate whether the CF or SD card is to be enabled to support ISP or disabled from supporting ISP. A bit 808a of register 812a may be set to a value of '1,' for example, to indicate that ISP mode is to be enabled and to a value of '0' to indicate that ISP mode is to be disabled. Bits 808 associated with a register 812g are arranged to indicate a Dh5 command code.
Typically, when the reader supports a media card pass through feature set and the appropriate bit in a Check ISP command is set to enable ISP support, e.g., bit 808a ofbyte 812a of Fig. 8a is set to '1,' then the reader is configured to process substantially any subsequent media card pass through commands. It should be appreciated that if bit 808a ofbyte 812a of Fig. 8a is set to '0,' the indication is that the host has disabled ISP mode on the CF card. As such, no ISP commands may be sent to the CF card through the reader. Status register outputs associated with a reader which supports ISP commands will be described with respect to Fig. 8b. Fig. 8b is a diagrammatic representation of a data block which may be returned by a CF card to a reader in accordance with an embodiment of the present invention. A block 814 includes registers 822 that each include eight bits 818. In the described embodiment, a Oh is returned in an error register 822a, and in cylinder registers 822d, 822e, while a 55h is returned in a sector count register 822b and an AAh is returned in a sector number register 822c.
A device head register 822f is arranged to indicate a selected device in bit
818e, an is typically set to a value of '0' with only one media card attached to the reader, and whether write protection is active in the CF card in bit 818d. When write protection is active, then bit 818d of register 822f may be set to a value of ' 1,' whereas if write protection is not active, then bit 818d of register 822f may be set to a value of '0. ' Bits 818a-c of register 822f may be set to indicate a media type. For instance, when the card is a CF card, bits 818a-c of register 822f may be set to a value of '101.' It should be understood that while block 814 has been described as being suitable for being transferred from a CF card to a reader, block 814 may also be configured for use with other media types. When block 814 is used with other media types, the contents of bits 818a-c of register 822f may indicate the appropriate media type.
A status register 822g, which generally returns 50H, includes a bit 818h which is set to a value of '0' once a command, e.g., a Check ISP command, is properly completed. Within status register 822g, a bit 818g may be set to a value of '1,' while a device fault bit 818f, a bit 818d, and an error bit 818a may be set to a value of '0' when the command is completed.
When there is an error in processing a Check ISP command, an error output block may be sent from a CF card to a reader. Such an error output block may generally indicate that ISP support is not enabled. Fig. 8c is a diagrammatic representation of an error data block that may be sent from a CF card to a reader when an error has been encountered in processing a Check ISP command in accordance with an embodiment of the present invention. An error data block 824 includes registers 832 which are divided into bits 828. When an error occurs in processing a command such as a Check ISP command, a bit in an error register 832a, e.g., a bit 828c, is generally set to indicate that the command has not been processed successfully, hi one embodiment, bit 828c of error register 832a may be set to a value of ' 1 ' to indicate that a command has been effectively aborted.
A bit 828e that is associated with a device/head register 832f is arranged to indicate the selected device, and is typically set to a value of '0' with only one media card attached to the reader. Status register 832g is arranged to include a variety of information. By way of example, status register 832g includes a bit 828a which is generally set to a value of ' 1 ' to indicate that an error has occurred, while a bit 828h is arranged to be substantially cleared to a value of '0' to indicate that the execution of the command has effectively been completed, and a bit 828f which is arranged to indicate when a device fault has occurred is set to a value of ' 1 ' in the event that a device fault has occurred, hi the described embodiment, a bit 828g of register 832g may be set to ' 1 ' to identify block 824 as an error data block, while a bit 828d of register 832g may be set to '0' to identify that there is no more data to transfer.
A Media Card Execute CF ISP command, which may be consistent with a D6h command code, is associated with a Media Card Execute CF command, e.g., the command described above with respect to Fig. 7a. A Media Card Execute CF ISP command generally starts the execution of the native command embedded inside the corresponding SCSI command. It the embedded command is a command to retrieve firmware data from a CF card, or the underlying card, the corresponding reader may read the data from the CF card and transfer the read data to a host. In the event that the reader does not include a buffer, partial data may be read from the CF card and transferred to the host in a procedure that may be repeated until substantially all read data is transferred. Alternatively, if the embedded command is a command to write firmware data to the CF card, i.e., to update the firmware on the CF card, the reader will generally read the data from the host and transfer the read data from the host to the CF card. When the adapter does not have a buffer, partial data may be read from the host and transferred to the CF card repeatedly until substantially all data are transferred to the CF card.
Fig. 8d is a diagrammatic representation of a command block that may be sent between a reader and a CF card as a part of a Media Card Execute CF ISP command in accordance with an embodiment of the present invention. A command block 844 includes registers 852 which include eight bits 848 each. A command register 852g is arranged to indicate that block 844 is consistent with a D6h command code, while a feature register 852a includes bits 848b-h which are arranged to return a Oh value and a bit 848a which is arranged to specify a direction of data transfer. When firmware is to be read from the CF card, bit 848a of feature register 852a may be set to a value of '1,' whereas when firmware is to be written to the CF card, bit 848a of feature register 852a may be set to a value of '0. '
A sector count register 852b is arranged to store a number of sectors that are to be processed, i.e., either to be read from the CF card or to be written to the CF card. A sector number register 852c is arranged to store or return the least significant bit of the starting logical block address (LBA) associated with the firmware in the CF card, while cylinder registers 852d, 852e are arranged to store the middle byte of the LBA and the most significant bit of the LBA, respectively.
With reference to Fig. 8e, one embodiment of a command block that may be sent between a CF card and a reader which indicates that a Media Card Execute CF ISP command has executed normally will be described. A command block 864, which includes bits 868 which are divided into registers 872, may be sent from the CF card to the reader when a command has executed substantially successfully. Registers 872a-e maybe substantially cleared, while a device/head register 872f may include a bit 868e which indicates the device, and may be set to a value of '0' with only one media card attached to the reader,, which is effectively the target associated with the execution of the command. A status register 872g, which is arranged to return 50H, includes a bit 868h which is set to a value of '0' to indicate that the execution of a command has been completed. A bit 868g of status register 872g may be set to a value of '1,' while bits 868a, 868d, 868f may all be substantially cleared or set to a value of '0' to indicate that a command has executed normally.
When an error occurs in processing a command such as a Media Card Execute CF ISP command, an error data block may be sent from a CF card to a reader to indicate that an error has occurred. Errors may occur during the processing of a command, for example, when a host expects the CF card to have 20 kiloBytes (kBs) of firmware, and the CF card actually has 10 kBs of firmware. Fig. 8f is a diagrammatic representation of an error block that may be sent from a CF card to a reader to indicate that a Media Card Execute CF ISP command has not executed normally in accordance with an embodiment of the present invention. An error data block 892 includes bits 888 which are associated with registers 892. A status register 892f includes a bit 888e which identifies the device or CF card which the aborted command was targeting.
When there is an error in processing a command, the CF card may set a bit 888a of a status register 892g to indicate that an error has occurred, and set associated bits 888 in an error register 892a accordingly. For example, bit 888g of error register 892a may be set to a value of ' 1 ' if the CF card has an underlying data error. Also, in one embodiment, if the card is removed or changed before completion of a downloading process, bit 888c ofbyte 892a may be set to a value of ' 1 ' to indicate an aborted process.) That is, bit 888c of error register 892a may be set to a value of ' 1 ' to indicate either that the command was aborted because the command was not supported, that the command was not executed, or that execution of the command was initiated but not completed.
Within a status register 892g, a bit 888h and bit 888d must be set according to the X3T10 protocol. If the error in processing the command has occurred because of a device fault, or, more generally, if a device fault has occurred, then a bit 888f of status register 892g may be set to a value of ' 1. ' A bit 888g of status register 892g may be set to a value of ' 1 ' when the command was completed.
A sector number register 892c is arranged to provide the least significant bit of the LBA associated with the sector in the CF card that is causing the error in the execution of the command, if applicable. That is, when a sector causes the execution of a command to be aborted, the least significant bit of the LBA of that sector is returned to the reader in sector number register 892c. When a sector is the cause of an aborted command, a cylinder low register 892d and a cylinder high register 892e are arranged to return the middle byte of the LBA of the sector and the most significant bit of the LBA of the sector, respectively.
Although only a few embodiments of the present invention have been described, it should be understood that the present invention may be embodied in many other specific forms without departing from the spirit or the scope of the present invention. By way of example, while a reader has generally been described as being a USB reader, the reader may be substantially any suitable reader or adapter which allows a memory card to communicate with a host system. Suitable readers include, but are not limited to, PC card readers.
The downloading of firmware has generally been described as involving sending new card firmware or code from a host computer substantially directly to the memory or media card through a reader. When firmware is sent to the card substantially directly from the host computer, any changes which are to be made to enhance the capabilities of the overall system may be performed by substantially only upgrading the software on the computer, hi other words, it may not be necessary to upgrade reader firmware to enhance ISP capabilities. ISP capabilities may be enhanced essentially be upgrading software associated with the host computer system. It should be appreciated, however, that in some embodiments, new card firmware may be sent from a host computer to a reader, and the reader may send ISP commands to a memory card. When new card firmware is provided to a memory card to update or upgrade the memory card, the new card firmware may generally include sections of firmware which are intended to replace corresponding sections of firmware that are currently in the memory card. New card firmware may also include sections of firmware which are to be added to the firmware that is currently on the memory card, e.g., to augment the current firmware. In one embodiment, the new card firmware that is provided to the memory card may be intended to replace substantially all of the firmware that is currently on the memory card.
The bits and the words associated with various functions and command descriptors may vary widely. In other words, specific bits or words which are set a certain way in command descriptor blocks to indicate different states associated with the blocks may vary. For instance, the bits that are set to indicate that ISP is supported and the bits that are set to enable ISP support may generally vary. In lieu of setting bit nineteen in card specific data information to ' 1 ' to indicate that ISP is supported in a system associated with an SD card, for example, substantially any other bit may be set. Any bit may be set as long as the overall system is aware of which bit is to be set to indicate that ISP is supported.
While commands and data blocks have generally been described as either being suitable for use with SD cards or with CF cards, it should be appreciated that the commands may generally be applicable to other types of memory cards. By way of example, commands that are suitable for SD cards may also be suitable for multi media cards. In addition, commands and data blocks that have been described as being suitable for use with respect to CF cards may be augmented to be used with other types of cards including, but not limited to, SD cards. Alternatively, such commands and data blocks may be suitable for use with some types of memory cards substantially without augmentation.
Further, memory cards which have firmware that may be updated using ISP commands may be widely varied. Other types of memory cards which have firmware that may be updated using the methods described above include, but are not limited to, Memory Stick cards and Smart Media cards.
The host has been described as being in communication with a reader that is in communication with a memory card. Although the host and the reader may be substantially separate entities, i.e., the reader may be a peripheral device which may be readily attached to and detached from the host, it should be understood that the reader may also be a part of the host. For instance, the reader may be an integral part of the host that may not be easily attached to or detached from the host.
Firmware that may be updated may include, in one embodiment, firmware code which enables ISP to be supported. That is, ISP code itself may be updated in a memory card using an ISP process that is arranged to update or upgrade the card firmware. In particular, if the card firmware is in electrically erasable programmable read-only memory (EEPROM) and the execution of the firmware is in static random access memory (SRAM), then the ISP code associated with the card firmware may be updated during a card firmware updating process.
In general, the steps associated with the various processes of the present invention may be widely varied. Steps may be reordered, altered, added, and removed without departing from the spirit or the scope of the present invention. By way of example, processes associated with updating card firmware on SD cards and CF cards may include steps associated with determining if the SD cards and CF cards, respectively, support ISP. Therefore, the present examples are to be considered as illustrative and not restrictive, and the invention is not to be limited to the details given herein, but may be modified within the scope of the appended claims.

Claims

WHAT IS CLAIMED IS:
1. A method for updating firmware associated with a memory storage device, the method comprising: providing new firmware to a host; sending the new firmware from the host to a reader, the host being in communication with the reader, the reader being arranged to interface with the memory storage device, wherein the memory storage device includes installed firmware; sending the new firmware from the reader to the memory storage device; and incorporating the new firmware into the memory storage device, wherein the new firmware at least partially replaces the installed firmware.
2. The method of claim 1 further including: embedding the new firmware into a first command, wherein sending the new firmware from the host to the reader includes sending the first command from the host to the reader.
3. The method of claim 2 further including: substantially extracting the embedded new firmware from the first command, wherein the reader substantially extracts the embedded new firmware.
4. The method of claim 1 wherein providing the new firmware to the host includes downloading the new firmware from a server.
5. The method of claim 1 wherein incorporating the new firmware into the memory storage device updates the installed firmware.
6. The method of claim 5 wherein incorporating the new firmware into the memory storage device further includes: writing the new firmware into the memory storage device using the host.
7. The method of claim 6 further including: enabling in-system-programming capabilities on the reader, wherein the in- system programming capabilities allow the new firmware to be incorporated into the memory storage device.
8. The method of claim 7 further including: resetting the memory storage device after incorporating the new firmware into the memory storage device; disabling the in-system-programming capabilities on the reader; substantially communicably detaching the reader from the host; reinitializing the memory storage device; and substantially communicably reattaching the reader to the host.
9. The method of claim 8 wherein the memory storage device is a memory card that includes a non- volatile memory.
10. The method of claim 9 wherein the memory card is one selected from the group consisting of a secure digital card, a Compact Flash card, a multimedia card, a smart media card, and a Memory Stick card.
11. A system for updating firmware associated with a memory card, the system comprising: the memory card, the memory card including installed card firmware; means for providing new card firmware to the memory card; and means for incorporating the new card firmware into the memory card such that the new card firmware at least partially replaces the installed card firmware.
12. The system according to claim 11 wherein the means for providing the new card firmware to the memory card includes: a host; and means for allowing the host to interface with the memory card, the host being arranged to provide the new card firmware to the means for allowing the host to interface with the memory card, wherein the means for allowing the host to interface with the memory card includes means for sending the new card firmware to the memory card.
13. The system according to claim 12 wherein the host includes means for embedding the new card firmware into a first command, wherein the host provides the first command to the means for allowing the host to interface with the memory card.
14. The system according to claim 13 wherein the means for allowing the host to interface with the memory card includes means for substantially extracting the embedded new card firmware from the first command.
15. The system according to claim 12 wherein the host is arranged to write information onto the memory card.
16. The system according to claim 12 wherein the host is arranged to read information from the memory card.
17. The system according to claim 11 wherein the memory card includes a non- volatile memory.
18. The system according to claim 15 wherein the memory card is one selected from the group consisting of a secure digital card, a Compact Flash card, a multimedia card, and a Memory Stick card.
19. A memory storage device, the memory storage device being arranged to interface with a reader, the memory storage device comprising: a storage element, the storage element being arranged to store data; firmware, the firmware being arranged to cooperate with the storage element to store the data and to execute instructions, the firmware further being arranged to support in-system-programming capabilities, wherein the in-system-programming capabilities enable the firmware to be substantially updated while the memory storage device is interfaced with the reader.
20. The memory storage device of claim 19 further including: a receiving mechanism, the receiving mechanism being arranged to receive an update for the firmware through the reader.
21. The memory storage device of claim 20 wherein the firmware is arranged to incorporate the update to update the firmware.
22. The memory storage device of claim 21 wherein the updated firmware includes a capability to perform a power-on-reset to substantially reset the firmware associated with the memory storage device.
23. The memory storage device of claim 19 further including: a controller, wherein the firmware is included in the controller.
24. The memory storage device of claim 19 wherein the storage element is a nonvolatile memory storage element.
25. The memory storage device of claim 24 wherein the memory storage device is one selected from the group consisting of a secure digital card, a Compact Flash card, a multimedia card, and a Memory Stick card.
26. An adapter, the adapter being arranged to enable a memory device to communicate with a computing system, the adapter comprising: a port, the port being arranged to accept the memory device; a firmware, the firmware being arranged to support in-system-programming capabilities, the in-system-programming capabilities including enabling the computing system to provide the memory device with updated firmware code for the memory device through the adapter.
27. The adapter of claim 25 wherein the adapter is one of a USB reader or a PC reader.
28. A command descriptor, the command descriptor being suitable for use in a computer system including a host, a reader, and a memory storage device, the reader and the memory storage device being arranged to support an in-system-programming update of firmware associated with the reader, the command descriptor comprising: a first set of bits, the first set of bits being arranged to indicate an operation code, the operation code being associated with a first command supported by the command descriptor; and at least a first bit, the at least first bit being arranged to indicate that in-system- programming is to be enabled in the memory storage device.
29. The command descriptor of claim 28 further including: at least a second bit, the at least second bit being arranged to indicate that at least a second command is able to pass from the host to the memory storage device through the reader, wherein the second command is a pass through command.
30. The command descriptor of claim 28 wherein the at least first bit is arranged to substantially cause the firmware associated with the reader to set an internal flag to indicate that the in-system-programming update of the firmware is supported.
PCT/US2002/031888 2001-11-06 2002-10-03 Implementation of in-system programming to update firmware on memory cards WO2003040917A2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP02802776A EP1459174A2 (en) 2001-11-06 2002-10-03 Implementation of in-system programming to update firmware on memory cards
AU2002363505A AU2002363505A1 (en) 2001-11-06 2002-10-03 Implementation of in-system programming to update firmware on memory cards
JP2003542476A JP2005508547A (en) 2001-11-06 2002-10-03 Implementation of in-system program to update firmware on memory card

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US10/005,740 US7320126B2 (en) 2001-11-06 2001-11-06 Implementation of in system programming to update firmware on memory cards
US10/005,740 2001-11-06

Publications (2)

Publication Number Publication Date
WO2003040917A2 true WO2003040917A2 (en) 2003-05-15
WO2003040917A3 WO2003040917A3 (en) 2004-05-13

Family

ID=21717477

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2002/031888 WO2003040917A2 (en) 2001-11-06 2002-10-03 Implementation of in-system programming to update firmware on memory cards

Country Status (6)

Country Link
US (2) US7320126B2 (en)
EP (1) EP1459174A2 (en)
JP (1) JP2005508547A (en)
CN (1) CN1293466C (en)
AU (1) AU2002363505A1 (en)
WO (1) WO2003040917A2 (en)

Families Citing this family (75)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7702984B1 (en) * 2000-01-06 2010-04-20 Super Talent Electronics, Inc. High volume testing for USB electronic data flash cards
US7295443B2 (en) 2000-07-06 2007-11-13 Onspec Electronic, Inc. Smartconnect universal flash media card adapters
US6438638B1 (en) 2000-07-06 2002-08-20 Onspec Electronic, Inc. Flashtoaster for reading several types of flash-memory cards with or without a PC
US6618788B1 (en) * 2000-09-27 2003-09-09 Cypress Semiconductor, Inc. ATA device control via a packet-based interface
US7320126B2 (en) * 2001-11-06 2008-01-15 Sandisk Corporation Implementation of in system programming to update firmware on memory cards
US20030140129A1 (en) * 2002-01-24 2003-07-24 Noam Livnat Installing communication protocol in a handheld device
US20040049617A1 (en) * 2002-09-05 2004-03-11 Integrated Circuit Solution Inc. Method of firmware update by USB interface
JP2004139442A (en) * 2002-10-18 2004-05-13 Toyota Motor Corp Information terminal device, its operation control method, specified information storage program, storage medium storing the same, certain information changing program, terminal operation program, storage medium storing the same, and center
US20040083469A1 (en) * 2002-10-23 2004-04-29 Ping-Sheng Chen Method for updating firmware of optical disk system
US7246266B2 (en) * 2002-11-21 2007-07-17 Chris Sneed Method and apparatus for firmware restoration in modems
WO2004086363A2 (en) * 2003-03-27 2004-10-07 M-Systems Flash Disk Pioneers Ltd. Data storage device with full access by all users
TW200421172A (en) * 2003-04-04 2004-10-16 Incomm Technologies Co Ltd Drive codes upgrading method of portable memory device and device thereof
EP1652075B1 (en) * 2003-07-29 2018-10-31 Qualcomm Incorporated Mobile handset with update agent implemented in hardware
JP4829126B2 (en) 2003-12-30 2011-12-07 ヴィーブ−システムズ アクチエンゲゼルシャフト Method for controlling a data processing device
TWI240203B (en) * 2004-02-25 2005-09-21 Via Tech Inc A device which updates firmware by a memory card
US7676839B2 (en) 2004-03-15 2010-03-09 Xceedid Systems and methods for access control
US7904895B1 (en) 2004-04-21 2011-03-08 Hewlett-Packard Develpment Company, L.P. Firmware update in electronic devices employing update agent in a flash memory card
DK2862859T3 (en) * 2004-06-17 2018-08-13 Cytokinetics Inc RELATIONSHIPS, COMPOSITIONS AND PROCEDURES
US8526940B1 (en) 2004-08-17 2013-09-03 Palm, Inc. Centralized rules repository for smart phone customer care
US8195781B2 (en) * 2004-08-19 2012-06-05 Hewlett-Packard Development Company, L.P. Network management with scalable trap definitions
KR100689223B1 (en) 2005-04-18 2007-03-02 삼성에스디에스 주식회사 Method for optimizing patch and for security patch of smart card operating system
TWI345175B (en) * 2005-06-08 2011-07-11 Winbond Electronics Corp Method for updating firmware of memory card
CN100401280C (en) * 2005-06-08 2008-07-09 北京飞天诚信科技有限公司 Universal serial bus data transmission method and apparatus thereof
US20070022179A1 (en) * 2005-07-22 2007-01-25 Samsung Electronics Co., Ltd. Display device with cable card and updating method thereof
US20070136501A1 (en) * 2005-12-08 2007-06-14 Chang Robert C Media card command pass through methods
US8078788B2 (en) 2005-12-08 2011-12-13 Sandisk Technologies Inc. Media card command pass through methods
US20070168668A1 (en) * 2005-12-08 2007-07-19 Chang Robert C Media card with command pass through mechanism
US7663922B2 (en) * 2006-02-02 2010-02-16 Samsung Electronics Co., Ltd. Non-volatile semiconductor memory devices with lower and upper bit lines sharing a voltage control block, and memory cards and systems having the same
KR100666184B1 (en) * 2006-02-02 2007-01-09 삼성전자주식회사 Three-level nonvolatile semiconductor memory device with voltage control block shared lower bitlines and upper bitlines
JP2007280347A (en) * 2006-03-14 2007-10-25 Ricoh Co Ltd Memory card and memory card control changeover method
US7971071B2 (en) * 2006-05-24 2011-06-28 Walkoe Wilbur J Integrated delivery and protection device for digital objects
EP2025095A2 (en) 2006-06-08 2009-02-18 Hewlett-Packard Development Company, L.P. Device management in a network
WO2008014454A2 (en) 2006-07-27 2008-01-31 Hewlett-Packard Development Company, L.P. User experience and dependency management in a mobile device
US8082543B2 (en) * 2006-08-17 2011-12-20 Hewlett-Packard Development Company, L.P. Methods and systems for arbitrating error handling and firmware updates
KR100849212B1 (en) * 2006-10-12 2008-07-31 삼성전자주식회사 Memory card and method for updating of memory card program
US8166105B2 (en) * 2006-10-20 2012-04-24 Nec Corporation Portable terminal, server, and method for realizing function of portable terminal using network
US20080103658A1 (en) * 2006-10-27 2008-05-01 Spx Corporation Scan tool software update using an image
US10311427B2 (en) * 2006-12-29 2019-06-04 Google Technology Holdings LLC Method and system for monitoring secure application execution events during contactless RFID/NFC communication
US9348730B2 (en) * 2007-01-31 2016-05-24 Standard Microsystems Corporation Firmware ROM patch method
KR101510808B1 (en) * 2007-05-21 2015-04-10 톰슨 라이센싱 Robust firmware upgrade in a network terminal
US8161199B1 (en) * 2007-06-25 2012-04-17 Marvell International Ltd. Smart printer cartridge
US8806472B2 (en) * 2007-09-27 2014-08-12 Ericsson Ab In-service software upgrade utilizing metadata-driven state translation
WO2009131758A1 (en) * 2008-04-24 2009-10-29 New England Biolabs, Inc. A reagent containing a thermostable endonuclease
US8977783B2 (en) * 2009-10-21 2015-03-10 Media Ip, Llc High-speed secure content transfer to SD card from kiosk
US9595300B2 (en) * 2009-10-21 2017-03-14 Media Ip, Llc Contextual chapter navigation
CN101751353A (en) * 2009-12-24 2010-06-23 深圳华为通信技术有限公司 Data card upgrading method and device
CN102117214B (en) * 2010-01-06 2014-03-19 浙江德景电子科技有限公司 Embedded equipment and data file downloading method thereof
US8898803B1 (en) 2010-01-11 2014-11-25 Media Ip, Llc Content and identity delivery system for portable playback of content and streaming service integration
EP2566287B1 (en) * 2010-04-23 2018-06-13 Huawei Device Co., Ltd. Wireless Internet Access Module
CN104978225A (en) * 2010-08-02 2015-10-14 中颖电子股份有限公司 Firmware updating method and firmware updating device
US8745749B2 (en) * 2010-11-15 2014-06-03 Media Ip, Llc Virtual secure digital card
EP2469408A1 (en) * 2010-12-22 2012-06-27 France Telecom System and method for remotely triggering actions on a mobile device
US8924778B2 (en) * 2010-12-29 2014-12-30 Lsi Corporation Method to synchronize a replacement controller's firmware version to the native configuration database version on a simplex array
US8775827B2 (en) 2011-03-28 2014-07-08 Media Ip, Llc Read and write optimization for protected area of memory
US8949879B2 (en) 2011-04-22 2015-02-03 Media Ip, Llc Access controls for known content
CN106990977B (en) * 2011-06-07 2023-09-15 希捷科技有限公司 Management of device firmware update effects seen by a host
CN102236571B (en) * 2011-07-27 2013-10-09 华为终端有限公司 Data card upgrading method, personal computer and data card
CN102945190B (en) * 2012-11-05 2016-05-11 无敌科技(西安)有限公司 Utilize card to the method that still can continue after being interrupted in embedded device Code renewal process to upgrade
KR101427755B1 (en) * 2013-04-26 2014-08-07 주식회사 코아로직 Device and method for firmware upgrade using usb
CN103309709B (en) * 2013-06-08 2018-10-09 华为终端有限公司 A kind of firmware upgrade method, device and communication equipment
US9436439B2 (en) 2013-06-18 2016-09-06 Ciambella Ltd. Method and apparatus for code virtualization and remote process call generation
EP3019956A4 (en) * 2013-07-12 2017-03-15 Ciambella Ltd. Method and apparatus for firmware virtualization
CN103365693A (en) * 2013-07-26 2013-10-23 浪潮电子信息产业股份有限公司 Method for realizing automatic selection of firmware based on hardware detection
EP2887213A1 (en) * 2013-12-19 2015-06-24 Gemalto SA Method for transferring applicative data between two instances of an application
US9619122B2 (en) 2014-01-10 2017-04-11 Ciambella Ltd. Method and apparatus for automatic device program generation
EP2930641B1 (en) * 2014-04-07 2019-04-03 Nxp B.V. Method of Programming a Smart Card, Computer Program Product and Programmable Smart Card
CN104428751A (en) * 2014-06-27 2015-03-18 华为技术有限公司 Program data updating method and equipment
EP3295649B1 (en) 2015-05-08 2024-03-06 Ciambella Ltd. Method and apparatus for automatic software development for a group of controller-based devices
US10067490B2 (en) 2015-05-08 2018-09-04 Ciambella Ltd. Method and apparatus for modifying behavior of code for a controller-based device
CN106909352A (en) * 2015-12-22 2017-06-30 北京谊安医疗系统股份有限公司 A kind of firmware upgrade method of embedded device
US9946532B2 (en) * 2016-06-15 2018-04-17 Canon Information And Imaging Solutions, Inc. Apparatus, system and method for updating a peripheral connected to image processing device
CN110419024A (en) 2017-03-14 2019-11-05 西安姆贝拉有限公司 Method and apparatus for automatically generating and merging code in exploitation environment
CN107957874B (en) * 2017-11-21 2021-07-13 上海航天测控通信研究所 Recoverable resident type on-orbit programming method for satellite-borne software
WO2022204911A1 (en) * 2021-03-30 2022-10-06 Yangtze Memory Technologies Co., Ltd. Memory device with embedded firmware repairing mechanism
TWI784500B (en) * 2021-04-28 2022-11-21 威鋒電子股份有限公司 Electronic apparatus and firmware secure update method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1003099A2 (en) * 1998-10-29 2000-05-24 Hewlett-Packard Company A method of updating firmware without affecting initialization information
WO2000067132A1 (en) * 1999-04-30 2000-11-09 Centennial Technologies, Inc. Combination ata/linear flash memory device
EP1058450A1 (en) * 1999-06-02 2000-12-06 Eastman Kodak Company Customizing a digital camera
DE20109810U1 (en) * 2001-06-13 2001-08-23 Datafab Sys Inc External flash card reader with USB 2.0 interface
WO2001078020A1 (en) * 2000-04-11 2001-10-18 Visa International Service Association Integrated production of smart cards

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69637733D1 (en) * 1995-02-13 2008-12-11 Intertrust Tech Corp SYSTEMS AND METHOD FOR SAFE TRANSMISSION
CN1178129C (en) * 1996-04-11 2004-12-01 株式会社日立制作所 Disk drive and computer
EP0845738A3 (en) * 1996-11-28 2006-09-20 Hitachi, Ltd. Storage system which transfers a command and data corresponding to said command subsequent to said command
GB9713094D0 (en) 1997-06-21 1997-08-27 Philips Electronics Nv Optical disc drive
US6266809B1 (en) 1997-08-15 2001-07-24 International Business Machines Corporation Methods, systems and computer program products for secure firmware updates
US6199194B1 (en) 1998-09-25 2001-03-06 Adaptec, Inc. Method and system for programming firmware over a computer network
US6402028B1 (en) 1999-04-06 2002-06-11 Visa International Service Association Integrated production of smart cards
US7228538B1 (en) * 2000-05-02 2007-06-05 International Business Machines Corporation Method, system, and program for updating firmware to a storage system comprised of multiple controllers
US6968453B2 (en) * 2001-01-17 2005-11-22 International Business Machines Corporation Secure integrated device with secure, dynamically-selectable capabilities
US20020137501A1 (en) * 2001-03-23 2002-09-26 Rajendra Datar Systems and methods for wireless memory programming
US20020194403A1 (en) * 2001-06-15 2002-12-19 Khein-Seng Pua Audio video signal processing device
US7320126B2 (en) * 2001-11-06 2008-01-15 Sandisk Corporation Implementation of in system programming to update firmware on memory cards

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1003099A2 (en) * 1998-10-29 2000-05-24 Hewlett-Packard Company A method of updating firmware without affecting initialization information
WO2000067132A1 (en) * 1999-04-30 2000-11-09 Centennial Technologies, Inc. Combination ata/linear flash memory device
EP1058450A1 (en) * 1999-06-02 2000-12-06 Eastman Kodak Company Customizing a digital camera
WO2001078020A1 (en) * 2000-04-11 2001-10-18 Visa International Service Association Integrated production of smart cards
DE20109810U1 (en) * 2001-06-13 2001-08-23 Datafab Sys Inc External flash card reader with USB 2.0 interface

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"ISO/IEC 7816 Part 4: Interindustry command for interchange" INTERNET, [Online] XP002269400 Retrieved from the Internet: <URL:http://www.ttfn.net/techno/smartcards /iso7816_4.html> [retrieved on 2004-02-06] *
"Smart card devices and applications" INTERNET, [Online] XP002269401 Retrieved from the Internet: <URL:http://www.netcaucus.org/books/egov20 01/pdf/SmartCar.pdf> [retrieved on 2004-02-06] *

Also Published As

Publication number Publication date
CN1293466C (en) 2007-01-03
EP1459174A2 (en) 2004-09-22
WO2003040917A3 (en) 2004-05-13
US20030088868A1 (en) 2003-05-08
US7320126B2 (en) 2008-01-15
CN1547699A (en) 2004-11-17
AU2002363505A1 (en) 2003-05-19
US20070234341A1 (en) 2007-10-04
JP2005508547A (en) 2005-03-31
US8296752B2 (en) 2012-10-23

Similar Documents

Publication Publication Date Title
US7320126B2 (en) Implementation of in system programming to update firmware on memory cards
US9245634B2 (en) Initialization of flash storage via an embedded controller
US7412558B2 (en) Semiconductor storage device
US20060075395A1 (en) Flash card system
US9026683B1 (en) Command portal for executing non-standard storage subsystem commands
US6546489B1 (en) Disk drive which provides a secure boot of a host computer system from a protected area of a disk
US7028174B1 (en) Disk drive employing a non-volatile serial semiconductor memory for storing a control program for a microprocessor
US7708195B2 (en) Memory card
CN1241142C (en) Method of communication between smart card and host station
US9004349B2 (en) IC card and IC card system having suspend/resume functions
US20130145106A1 (en) Command portal for securely communicating and executing non-standard storage subsystem commands
US20060282653A1 (en) Method for updating frimware of memory card
US20100122017A1 (en) Memory controller, non-volatile memory system, and host device
US20060224821A1 (en) System for parallel updating flash memory and method for the same
US20040199911A1 (en) Apparatus and method for upgrading execution code of the portable memory device
JP2011514568A (en) Write once memory device and storage subsystem of a computer comprising a write many memory device and associated method
US7242632B2 (en) Memory device, memory managing method and program
US20050010914A1 (en) Method for upgrading firmware
US6739515B1 (en) Low-cost write protect tab for a non-volatile memory device
CN114625389A (en) Embedded equipment upgrading method, embedded equipment and storage device
CN116204353B (en) Recovery and restoration method, device and equipment of vehicle-mounted system and storage medium
KR20060024682A (en) Method for reducing upgrading time of mobile communication terminal
JP2004280340A (en) Starting system for radio base station
JP3048199B2 (en) IC memory card
CN116860276A (en) Chip data erasing method and device, mobile equipment and storage medium

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A2

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ OM PH PL PT RO RU SD SE SG SI SK SL TJ TM TN TR TT TZ UA UG US UZ VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A2

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR IE IT LU MC NL PT SE SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

WWE Wipo information: entry into national phase

Ref document number: 2003542476

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 2002802776

Country of ref document: EP

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 028036344

Country of ref document: CN

WWP Wipo information: published in national office

Ref document number: 2002802776

Country of ref document: EP