Skip to main content
Macro view of SPI flash chip on PCB with Aardvark host adapter connection

Reading SPI Flash Device IDs with the Aardvark Host Adapter

GSAS Engineering · · 2 min read

Reading the JEDEC Device ID from an SPI flash chip is the essential first step in any flash programming workflow. It confirms that the Aardvark I2C/SPI Host Adapter can communicate with the flash device, verifies the device manufacturer and part number, and validates the SPI bus configuration (clock polarity, phase, bit rate, and chip select) before attempting to program or read flash contents.

The JEDEC Read ID Command

The Read Identification command is defined by the JEDEC SFDP (Serial Flash Discoverable Parameters) standard and is supported by virtually all SPI NOR flash devices. The command sequence is:

1. Assert chip select (SS active low).
2. Send opcode 0x9F on MOSI.
3. Clock 3 additional bytes while reading MISO, these are the 3-byte Manufacturer and Device ID.
4. De-assert chip select.

For example, a Micron M25P32 responds with 20 20 16 (hex): manufacturer ID 0x20 (Micron/STMicroelectronics), memory type 0x20 (SPI NOR), and memory capacity 0x16 (32 Mbit). A Winbond W25Q32JV responds with EF 40 16: manufacturer 0xEF (Winbond), type 0x40, capacity 0x16 (32 Mbit).

Step-by-Step with Control Center

1. Connect the Hardware

Connect the Aardvark to the SPI flash target using a 10-pin ribbon cable. The pin mapping is:

Aardvark PinSignalFlash Pin
1SCKCLK
3MOSIDI (Data In)
5MISODO (Data Out)
7SSCS (Chip Select)
9GNDGND
10VCC (target power)VCC

Enable Target Power in the Aardvark menu to supply 3.3V/5V to the flash device if it is not otherwise powered.

2. Configure SPI Settings

In Control Center Serial Software, set the SPI parameters:

  • Polarity: Rising/Falling (SPI Mode 0 for most flash devices)
  • Phase: Sample/Setup
  • Bit Rate: 1 MHz (conservative starting point, increase after communication is verified)
  • Bit Order: MSB first
  • Slave Select: Active Low

3. Send the Read ID Command

In the SPI Master panel, enter the MOSI data: 9F 00 00 00

The first byte (0x9F) is the Read ID opcode. The three 0x00 bytes are dummy bytes that clock out the 3-byte device ID response on MISO. The Aardvark transmits on MOSI and simultaneously receives on MISO.

4. Read the Response

Control Center displays both the MOSI (transmitted) and MISO (received) data. The MISO bytes corresponding to the three dummy bytes contain the Device ID. The first MISO byte (corresponding to the opcode byte) should be ignored, it is undefined during the command phase.

Verification and Next Steps

If the Device ID matches the expected value for your flash chip, the SPI bus configuration is confirmed correct and you can proceed to flash programming operations (erase, program, verify) using either Control Center, Flash Center Software, or the Aardvark API.

If the response is all 0xFF or all 0x00, check: chip select polarity, SPI mode (try Mode 3 if Mode 0 fails), target power, and physical connections.

Alternative Approaches

The same Read ID operation can be performed through:

  • Flash Center Software: automatically reads the device ID during target device selection, with a built-in database of thousands of flash devices.
  • Aardvark API: programmatically in C, Python, or C# for automated test scripts that need to verify flash device identity before programming.
  • Cheetah SPI Host Adapter or Promira Serial Platform: same command sequence, higher clock speeds available (40+ MHz and 80 MHz respectively).

GSAS Micro Systems provides the Aardvark alongside the I2C/SPI Activity Board and SPI Flash Demo Board for teams learning SPI flash programming workflows across India.

Interested in Total Phase tools?

Talk to our application engineers for personalized tool recommendations.

Stay in the Loop

Get monthly compliance updates, product insights, and engineering best practices delivered to your inbox.

Related Articles

Embedded engineering bench in India, illustrating the hardware a developer can act on today, supported by GSAS
Technical Guides Arm

Arm's Agentic AI Push: What Indian Embedded Teams Can Actually Use Today

Arm has set out its platform strategy for the agentic era, putting inference everywhere it has compute. Indian embedded teams can start on that direction this quarter with the Cortex-M toolchain they already own: Helium, CMSIS-NN, Ethos-U and Vela, on boards you can order today.

13 Sept 2026 · 7 min read
Horizontal stacked bar showing where an ADAS test vehicle's bandwidth budget is spent, split into cameras, lidar, radar and bus traffic, with the logger uplink limit drawn as a vertical rule crossing the bar, from GSAS Micro Systems India
Automotive Ethernet Automotive & Mobility

ADAS Sensor Data Logging: Bandwidth Budgets That Add Up

Every page that tells you an ADAS test vehicle produces terabytes a day states the headline and skips the arithmetic, so you cannot redo it for your own sensor set. This article publishes the arithmetic instead: one formula, every table row derived on the page, a worked eight-hour drive that chains those rows into a sustained write rate, a media count and an offload window, and the five places bandwidth budgets go wrong. Written by the GSAS Micro Systems engineering team in India.

29 Aug 2026 · 15 min read
Ladder chart of the T1 single-pair Ethernet family by data rate: 10BASE-T1S (802.3cg), 100BASE-T1 (802.3bw), 1000BASE-T1 (802.3bp), 2.5/5/10GBASE-T1 (802.3ch) and 25GBASE-T1 (802.3cy), one balanced pair across five IEEE standards, from GSAS Micro Systems India
Automotive Ethernet Automotive & Mobility

The T1 Family Explained: 10BASE-T1S to Multi-Gig 802.3ch

The T1 family is the set of single-pair Ethernet physical layers used in vehicles, and every member is documented separately inside a different datasheet. This guide puts all of them in one table with rate, symbol rate, line code, specified reach and cabling traced to public IEEE task force documents, then answers the two questions that keep coming back: why 100BASE-T1 has no auto-negotiation, and why one end has to be master. Written by the GSAS Micro Systems engineering team in India.

29 Aug 2026 · 13 min read