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
Reading Device ID from SPI Flash Using Aardvark Adapter and Control Center
Rena

Today's blog is based on a recent addition to our Knowledge Base Article: Reading Device ID from SPI Flash Using Aardvark Adapter and Control Center.

Introduction

The Aardvark adapter is frequently used for Programming and reading SPI memory devices. There are several ways to do this with the Aardvark adapter, including using Control Center Software, Flash Center Software, or the Aardvark Software API.

One method is taking the information in a flash datasheet and then executing the Read Device ID command in Control Center software. The following example uses the SPI Flash M25P32 on the SPI Flash Demo Board. Similar steps can be used for other devices.

Overview

This blog shows the Aardvark adapter reading the Device ID from the memory. The Aardvark adapter is the SPI master and the SPI flash on the demo board is the SPI slave. The M25P32 instruction used is described below.

M25P32 Instructions details may vary per SPI memory Figure 1: M25P32 Instructions List

  • The M25P32 Read Identification instruction (0x9f) allows the identification data to be read. This instruction includes the instruction opcode.
  • The identification data is then shifted out as shown below in Figure 2.
  • The M25P32 Read Identification Data Out Sequence is 20 20 16 h as shown below in Figure 3.
M25P32 Read Identification Instruction Figure 2: M25P32 Read Identification Instruction

 

M25P32 Read Identification Data Out Sequence Figure 3: M25P32 Read Identification Data Out Sequence
Memory Read Device ID Guidelines

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

    1. Click Configure Aardvark adapter.
    2. Select the Aardvark adapter.
    3. Click OK to connect to the adapter.
  7. Configure the Polarity to Rising/Falling, Phase to Sample/Setup, Bitrate to 1MHz, Bit Order to MSB, and SS Polarity to SS Active Low.
  8. Click Aardvark and enable Target Power.
  9. Read the memory Device ID:

    1. Enter 9F 00 00 00 in the MOSI Message > Click Send. (The 3 extra 00 bytes are required to clock in the 3-byte Device ID from the memory on the MISO line.)
    2. The memory responds with Device ID 20 20 16 as shown below in Figure 4.
Aardvark Adapter Reads M25P32 Device ID Figure 4: Aardvark Adapter Reads M25P32 Device ID

For more information, see the following documents: