I2C SPI USB CAN eSPI Cable Testing View All Quick Start Guides User Manuals Software Downloads Knowledge Base Videos Case Studies App Notes White Papers Sales Support About Us
Products Blog Sales Support Contact Search
You Can Easily Program an SPI EEPROM Using the Promira Serial Platform and Control Center Serial Command Line on Linux
Rena

One of the many benefits of the Promira™ Serial Platform with SPI Active Level 1-3 Applications is that it gives you several options to program SPI devices – you can use the Control Center Serial, Flash Center, or the Promira API software tools (each supported on various platforms). Following is an overview of programming an SPI EEPROM by executing command line code with the Control Center Serial Software Command Line Mode. For details, please refer to our knowledge base article, Programming an SPI EEPROM Using Promira Serial Platform and Control Center Serial Command Line on Linux.

Promira Serial Platform Use Control Center Serial Software with your Aardvark Host Adapter or Promira Serial Platform

Figure 1: Promira Serial Platform

Figure 2: Control Center Serial Software

In this example, the Promira platform writes and reads multiple bytes from the Atmel SPI EEPROM AT25080A (which is on the I2C/SPI Activity Board). The Promira platform is the SPI master, and the AT25080A on the I2C/SPI Activity Board is the SPI slave.

Note: similar steps can be used for other SPI devices. The Setup

  • The Promira platform is connected to the AT25080A on the I2C/SPI Activity Board using the 34-10 I2C/SPI cable.
  • The Promira platform is configured for Ethernet over USB interface (see Figure 3 below), and provides 3.3V SPI signals and 5V VDD signal to the I2C/SPI Activity Board.
  • The Control Center Serial Software is connected to the Promira platform.
  • The Control Center Serial Software is setup in command line mode. For details, please refer to the section Command Line Option in the Control Center Serial Software User Manual.
Data Center - configure the adapter Figure 3: Configure Adapter Window
Writing and Reading to the SPI Device

  1. Open a terminal on the computer.
  2. From the file controlctr (which is located in the Control Center Serial package folder), enter the following:

    1. Controlctr -c
    2. connect xxxx-xxxxxx

      (xxxx-xxxxxx represents the serial number of your Promira platform)

    3. batch ./examples/spi-eeprom-read.xml
    4. disconnect xxxx-xxxxxx

      (xxxx-xxxxxx represents the serial number of your Promira platform)

    5. quit
    6. The results are shown in Figure 4 below.
read-write eeprom results Figure 4: Write and Read AT25080A

Additional resources that you may find helpful include the following:

If you have questions about our Total Phase products, feel free to email us at sales@totalphase.com, or if you already own one of our devices and have a technical question, please submit a request for technical support.