Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
733 Views

Using I2C to write to hex file

Hi all, I am wondering if it is possible to use I2C to write values into a hex file. Thanks.

0 Kudos
3 Replies
Altera_Forum
Honored Contributor I
20 Views

I2C connected to what? What device on I2C are you trying to write to?

Altera_Forum
Honored Contributor I
20 Views

The I2C master is an iMX6 and the I2C slave is Max10. The idea would be to use the iMX6 to change hex file values in the Max10.

Altera_Forum
Honored Contributor I
20 Views

This is still very ill defined. What does "change hex file values in the Max10" mean? The MAX10 is an FPGA, there are no "files" in it. 

 

Certainly you could implement a pseudo-EEPROM type device with an I2C access protocol within your MAX10 FPGA. Then connect this externally to the iMX6 and perform I2C reads and writes of 'hex' (really I think you mean binary bytes) data to that EEPROM pseudo-device in the MAX10. 

 

Internally to the MAX10 the data would be stored in a block RAM (or registers even) depending on the emulated EEPROM size. Other logic within the MAX10 could access this data as is required. 

 

But I am just extrapolating that this is what you want to do.