TotalPhase-Blog-Erlebniswelten

Programming an SPI EEPROM on Linux with Promira

Programming SPI memory devices is a common use case for the Promira™ Serial Platform with SPI Active Level 1-3 Applications. There are several ways to do this with the Promira™ Serial Platform from Totalphase, including using Control Center Serial, Flash Center, or the Promira API. This article focuses on how to execute the commands in Control Center Serial Software Command Line mode. Although the following describes the Atmel SPI EEPROM AT25080A found on the I2C/SPI Activity Board, similar steps can be used for other devices. 

In this article, the Promira platform writes and reads multiple bytes from AT25080A. Here the Promira platform is the SPI master and the AT25080A in the I2C/SPI Activity Board is the SPI slave. The Promira platform is connected to the AT25080A in the I2C/SPI Activity Board through the 34-10 I2C/SPI cable. The Promira platform supplies 3.3V SPI signals and 5V VDD signal to the I2C/SPI Activity Board. For additional information take a look at I2C/SPI activity board user's manual and the AT25080A datasheet.

Writing and Reading Guidelines

1. Connect the Promira platform USB connector to the PC USB connector.

2. Download and unzip the latest version of Promira USB Drivers Linux.

3. Follow the instructions of the Promira platform system user manual to configure the Ethernet over USB interface.

Promira_Isusb_ipconfig_commands

4. Download and unzip the latest version of Promira FW Utility for Linux. If the Promira FW is not the latest FW, then update the Promira to the latest FW with the latest Promira FW Utility for Linux.

5. Download and unzip the latest version of Control Center Serial.

6. Connect the Promira platform I2C/SPI connector to the I2C/SPI Activity Board through 34-10 cable.

7. Launch Control Center Serial.

8. Connect Control Center Serial to the Promira platform. 

  • Click Adapter, and choose Connect.
  • Select the Promira platform.
  • Click OK to connect to the Promira platform.
Promira_Control_Center_Serial_Configure_Adapter_Window2

9. Write and read from SPI EEPROM on the Total Phase I2C/SPI activity board with Promira platform and Control Center Serial Command Line Mode. (?)

  1. Launch terminal on the computer
  2. Go to Control Center Serial package folder with the file controlctr
  3. Type: "controlctr -c"
  4. Type "connect 2416-606091" (Modify the 2416-606091 to your Promira SN)
  5. Type "batch ./examples/spi-eeprom-read.xml"
  6. Type "disconnect 2416-606091" (Modify the 2416-606091 to your Promira SN)
  7. Type "quit"
Promira_Control_Center_write-and-read-AT25080A

SPI Development Tools

Aardvark I2C/SPI Host AdapterAardvark I2C/SPI Host Adapter
Aardvark I2C/SPI Host Adapter
TP240141
Erase, program, verify Memory Devices - The Aardvark I2C/SPI Host Adapter is a fast and powerful I2C bus and SPI bus host adapter through USB.

€309.00*
Beagle I2C/SPI Protokoll Analyzer - Total Phase
Beagle I2C/SPI Protocol Analyzer
TP320121
The versatile Beagle I2C/SPI Protocol Analyzer is the ideal tool for the embedded engineer who is developing an I2C, SPI, or MDIO based product.

€369.00*
Promira I2C/ SPI/ eSPI Platform
TP500110-S
Promira is a universal hardware platform usable for a variety of applications, like I2C, SPI and eSPI.

Variants from €900.00*
€1,060.00*