From d8c5620768b70bea29088e8ed92b5fd2b74f8dd7 Mon Sep 17 00:00:00 2001 From: Jesper Smith Date: Thu, 21 Jun 2018 09:15:22 +0200 Subject: [PATCH] Increased size of EEPROM buffer in eepromtool.c This PR increases the size eepromtool can read/write to 4 megabit, which is the maximum slave devices seem to support according to the datasheets. Due to space constraints on our device we store some application specific data on our slave that exceeds 32kbyte, hence the need for the ability to read/write larger images to EEPROM. --- test/linux/eepromtool/eepromtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/linux/eepromtool/eepromtool.c b/test/linux/eepromtool/eepromtool.c index 0a02be8..f347c1a 100644 --- a/test/linux/eepromtool/eepromtool.c +++ b/test/linux/eepromtool/eepromtool.c @@ -20,7 +20,7 @@ #include "ethercat.h" -#define MAXBUF 32768 +#define MAXBUF 524288 #define STDBUF 2048 #define MINBUF 128 #define CRCBUF 14