User Tools

Site Tools


ds:projects:vdio:el502

This is an old revision of the document!


V-DIO EL502 EEPROM Programming

The newly manufactured EL502 Mezzanine cards do not contain any data in their EEPROM yet. A Raspberry Pi and a custom made cable are used to programm the EEPROM.

Resources

The code of this project is under version control in a Git repository whose upstream is: https://git.gsi.de/BEA_HDL/V_DIO_EEPROM_Programming

How to program the EEPROM

  • connect the custom made cable to the Raspberry Pi and to the Mezzanine (TODO: add image)
  • activate the I2C interface of the Raspberry Pi: sudo raspi-config, browse to Interfaces and activate I2C
  • copy the src folder to the Raspberry Pi or clone this repository on it

 I2C connection

Raspberry Pi Raspberry Pi Mezzanine Mezzanine
pin number signal name pin number signal name
1 +3.3 V 1 +5 V
3 SDA 3 SDA
5 SCL 2 SCL
6 GND 26 GND

Programming

  • cd src
  • ./write_i2c_data.py

This will programm the content of src/eeprom_content.csv to the EEPROM.

Verification

  • cd src
  • ./read_i2c_data.py

This will create an output file src/eeprom_content_readback.csv.

You can compare it to the desired content using diff eeprom_content_readback.csv eeprom_content.csv

ds/projects/vdio/el502.1626808566.txt.gz · Last modified: 2021/07/20 21:16 by rgeissler