Writing Data to EEPROM via I2C from external device

Universal CAN Converter
Post Reply
Fabian Ruhoff
Posts: 1
Joined: Sun 17. Apr 2016, 10:27

Writing Data to EEPROM via I2C from external device

Post by Fabian Ruhoff » Sun 17. Apr 2016, 10:47

Hi.

I need to change runtime configurations, stored in the EEPROM of my PCAN-Router, "on the fly" from e.g. an mobile device.

So I came up with the idea to write configurations into the EEPROM of my PCAN-Router with an external device, by using the I2C Bus.

Is that possible and in which way I have to modify my Router?

or are there any other ways to change configs stored in the EEPROM from extrenal.

kind regards,
Fabian R.

User avatar
P.Steil
Hardware Development
Hardware Development
Posts: 32
Joined: Fri 14. Jan 2011, 10:27

Re: Writing Data to EEPROM via I2C from external device

Post by P.Steil » Tue 26. Apr 2016, 12:06

Hello,

you can use the functions EEPROM_Read(), EEPROM_Write() and EEPROM_FlushCache() to access the eeprom from firmware. See code example 2_EEPROM for the PCAN-Router.

Regards
--------------------------------------------
PEAK-System HW development Team
support@peak-system.com
phone: +49-6151-8173-20
fax: +49-6151-8173-29
--------------------------------------------

Post Reply