Skip to content

[E09] Modified base files to support read from Eeprom v0.02

Shirin Raeisi requested to merge eeprom-i2c into seco_2017.09_next

Introduces a new read procedure to show: Mac Address, Board Serial Number, Board Part Number, System Serial Number, System Part Number. reading starts from address-offset and stops when it detects a empty-space. before the reading procedure, the header and crc are checked; if there are no errors, the reading can be started.

check_header(): read version and crc from eeprom, if saved version is not equal to 0.02 returns an error.
check_crc(): compares saved crc with current crc, if they are not the same returns an error.

memory address:

  Address | Size | Data
  ________|______|_______________________
   0      | 2    | Eeprom Map Version: 0.2
  ________|______|_______________________
   2      | 4    | CRC
  ________|______|_______________________
   6      | 248  | Data Section

Merge request reports

Loading