rom-based spi NOR FLASH identification method, device, system and storage medium
An identification method and identification failure technology, applied in program control devices, instruments, computing, etc., can solve problems such as poor SPINORFLASH compatibility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] figure 1The implementation process of the ROM-based SPI NOR FLASH identification method provided by Embodiment 1 of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
[0048] In step S101, a write enable command is sent to the SPI NOR FLASH through the SPI controller.
[0049] In the embodiment of the present invention, send write enabling command (WriteEnable command) to SPI NOR FLASH by SPI controller, so that this SPI NOR FLASH is in writable state, that is, make the writing of SPI NOR FLASH enable locking (Write The state of the Enable Latch) flag is 1. When the state of the SPI NOR FLASH write enable lock (Write EnableLatch) flag is 1, the SPI NOR FLASH is in a writable state, wherein the write enable command is the 0x06 command .
[0050] In step S102, it is judged whether the SPI NOR FLASH is in a writable state.
[0051] In an embodim...
Embodiment 2
[0059] figure 2 The implementation process of the ROM-based SPI NOR FLASH identification provided by the second embodiment of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
[0060] In step S201, the SPI controller sends a read device ID command to the SPI NOR FLASH.
[0061] In the embodiment of the present invention, when the SPI controller sends the read device ID command to the SPI NOR FLASH, specifically, the SPI controller can send the 0x90 command to the SPI NOR FLASH, preferably, the SPI controller sends the command to the SPINOR FLASH 0x9F command, thus avoiding the sending of invalid data and improving the compatibility of the read device ID command.
[0062] In step S202, the device ID information of the SPI NOR FLASH is read.
[0063] In the embodiment of the present invention, when reading the device ID information in the SPI NOR FLA...
Embodiment 3
[0074] image 3 The implementation process of the ROM-based SPI NOR FLASH identification provided by the third embodiment of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
[0075] In step S301, the SPI controller sends a read device ID command to the SPI NOR FLASH, and the read device ID command is a 0x9F command.
[0076] In step S302, the device ID information of the SPI NOR FLASH is read.
[0077] In step S303, it is judged whether the read device ID information exists in the preset FLASH support list, if yes, execute step S304, otherwise, execute step S305, the read device ID information is 3 characters section data.
[0078] In the embodiment of the present invention, the implementation manner of steps S301-S303 may refer to the description of steps S201-S203 in the second embodiment above, which will not be repeated here.
[0079] In step ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


