From: Nathael Pajani Date: Thu, 3 Nov 2022 16:27:03 +0000 (+0100) Subject: EEPROM example README redaction X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=230b32fd27a56b2cfb41085388b44750dcc8a4b9;p=soft%2Flpc122x%2Fexamples EEPROM example README redaction --- diff --git a/eeprom/README b/eeprom/README index 0ce0401..decae8e 100644 --- a/eeprom/README +++ b/eeprom/README @@ -19,6 +19,23 @@ Copyright 2013 Nathael Pajani * *************************************************************************** */ -This example shows the support of the onboard I2C eeprom memory +This example shows the support of the onboard I2C eeprom memory on the + GPIO-Demo module from Techno-Innov + +The default build will compile the "read eeprom" version of the binary. +if you want to get the "write eeprom" version you need to build with +"EEPROM_WRITE" defined (comment or remove the line which undefines it in +main.c): +#undef EEPROM_WRITE + +Flash and run the "write version" once, which will write the module description +to the eeprom (MODULE_NAME, MODULE_VERSION, MODULE_SERIAL_NUM, and module +capabilities), and send "EEPROM Write OK." on UART0 if everything went right. + +Then flash and run the "read version", which will read module description from +the eeprom and display it on UART0: + +Module : GPIO Demo Module +serial number: 42, version: 4, capabilities: 0x0007 + -TODO