An I2C programmer for the Renesas SLG product line. Note: Only tested on an SLG46826
./slg_programmer [-i <id>] [-t nvm|eeprom] [-e] [-r] [-w <filename>] <i2c>
i2c
- This is the number of the i2c bus. You can find this usingi2cdetect -l
-i <id>
- The base I2C address for the SLG. 0 after an erase or defaults to 1-t nvm|eeprom
- Act on the NVM or the EEPROM-e
- Erase the selected target-r
- Read the selected target-w <filename>
- Write the contents of the Intel Hexfilename
to the target
Building should be as simple as running GNU Make - make sure you have libi2c installed (libi2c-devel
on Fedora)
make
or, if you don't have Make installed then
gcc -li2c -o slg_programmer main.c