Close

EEPROM File

A project log for Not Quite Useless Raspberry Pi Replacement

Make a Raspberry Pi replacement using a Cypress Semiconductor Programmable System on a Chip (PSOC 5)

land-boardscomland-boards.com 10/18/2019 at 01:010 Comments

Here's what the hex dump of the ID EEPROM file for the RPP-UIO-16 card looks like:

I dumped the binary file using HxD which I found here.

Our company name land-boards.com can be see in the right side as well as the card name RPP-UIO-16. The length is 109 bytes.

Conveniently HxD exports directly to .c files. The result is:

unsigned char rawData[109] = {
    0x52, 0x2D, 0x50, 0x69, 0x01, 0x00, 0x02, 0x00, 0x6D, 0x00, 0x00, 0x00,
    0x01, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00, 0xC0, 0xE9, 0x73, 0x39,
    0x59, 0x5C, 0x8B, 0xAF, 0x62, 0x4F, 0x19, 0x32, 0xFE, 0x3F, 0x2D, 0xD5,
    0x05, 0x00, 0x01, 0x00, 0x0F, 0x0A, 0x6C, 0x61, 0x6E, 0x64, 0x2D, 0x62,
    0x6F, 0x61, 0x72, 0x64, 0x73, 0x2E, 0x63, 0x6F, 0x6D, 0x52, 0x50, 0x50,
    0x2D, 0x55, 0x49, 0x4F, 0x2D, 0x31, 0x36, 0xF2, 0x9F, 0x02, 0x00, 0x01,
    0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xED,
    0x6E
};

This should make it easy to load the EEPROM. I will need to rename the array but other than that minor detail this looks like a good approach. srec_cat would probably work just as well but having the HxD editor will be very convenient for what I want to do.

I am putting the 3 hat EEPROM images into a file: EEPROM_Images.c so that they can be loaded as needed. I am also changing the type from unsigned char to const uint8 so that the array doesn't get moved into SRAM (saving some SRAM).

The three images are different sizes; 109, 117, and 105 bytes. So I think I just need to have a 128 byte buffer or 4 blocks of 32 bytes each.

Discussions