I2C SPI USB CAN eSPI Cable Testing View All Videos Quick Start Guides Software Downloads App Notes White Papers User Manuals Knowledge Base Sales Support About Us
Products Blog Sales Support Contact Search
Writing and Reading from SPI Flash Using the Cheetah Adapter and Cheetah GUI Software – Part 2
kelly

Here is part 2 of our Support Question of the Week feature on how to write and read an SPI flash device using the Cheetah SPI Host Adapter and the Cheetah GUI Software. In Part 1, we went over the instructions for using the M25P32 flash part, which is used as an example for writing and reading with the Cheetah adapter and Cheetah GUI.

Memory Programming and Reading Guidelines

    1. Download and run the latest version of the Total Phase USB Drivers Installer.
    2. Download and unzip the latest version of Cheetah GUI.
    3. Connect the Cheetah adapter to the PC via the USB connector.
    4. Connect the Cheetah adapter to the SPI flash demo board via the I2C/SPI connector.
    5. Launch Cheetah GUI.
    6. Connect the Cheetah adapter to Cheetah GUI.

      • Click Connect.
      • Select the Cheetah adapter.
      • Click Open to connect to the adapter.
    7. Configure the Modes to Mode 0, Bitrate to 400KHz, Bit Order to MSB, and SS Polarity to Active Low.
    8. Enable SS0, Output Enable, Target Power, and All Bytes.
    9. Erase the entire memory device.

      • Enter 06 in the MOSI Message > Click Send. (This Write Enable Instruction sets the Write Enable Latch bit)
      • Enter 07 in the MOSI Message > Click Send. (This Bulk Erase Instruction erases the memory)
Figure 1: Cheetah Adapter Erases M25P32

    1. Write and read memory Status Register.

      • Enter 06 in the MOSI Message > Click Send. (This Write Enable Instruction sets the Write Enable Latch bit)
      • Enter 01 00 in the MOSI Message > Click Send. (This Write Status Instruction writes 00 to the memory Status register)
      • Enter 05 00 in the MOSI Message > Click Send. (This Read Status Instruction reads 00 from the memory Status register)
Figure 2: Cheetah Adapter Writes and Reads M25P32 Status Register

  1. Write and read memory.

    • Enter 06 in the MOSI Message > Click Send. (This Write Enable instruction sets the WRite Enable Latch bit)
    • Enter 02 00 00 08 0A 0B 0C in the MOSI Message > Click SEnd. (This Page Program Instruction writes 0x0A 0x0B 0x0C to memory address 0x08)
    • Enter 03 00 00 08 00 00 00 in the MOSI Message > Click Send. (This Read Data Bytes instruction reads 0x0A 0x0B 0x0C from the memory address 0x08)
    Figure 3: Cheetah Adapter Writes and Reads M25P32 Memory

Any questions? Email us at sales@totalphase.com or support@totalphase.com.