Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ch341a_i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <stdint.h>

#define MAX_EEPROM_SIZE 131072 /* For 24c1024*/
#define MAX_EEPROM_SIZE 262144 /* For 24c2048*/

#define EEPROM_I2C_BUS_ADDRESS 0x50

Expand Down Expand Up @@ -358,6 +358,7 @@ const static struct EEPROM eepromlist[] = {
{ "24c256", 32768, 32/*64*/, 2, 0x00 },
{ "24c512", 65536, 32/*128*/, 2, 0x00 },
{ "24c1024", 131072, 32/*128*/, 2, 0x01 },
{ "24c2048", 262144, 32/*256*/, 2, 0x03 },
{ 0, 0, 0, 0 }
};

Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ extern char eepromname[12];
extern int eepromsize;
extern int mw_eepromsize;
extern int org;
#define EHELP " -E select I2C EEPROM {24c01|24c02|24c04|24c08|24c16|24c32|24c64|24c128|24c256|24c512|24c1024}\n" \
#define EHELP " -E select I2C EEPROM {24c01|24c02|24c04|24c08|24c16|24c32|24c64|24c128|24c256|24c512|24c1024|24c2048}\n" \
" select Microwire EEPROM {93c06|93c16|93c46|93c56|93c66|93c76|93c86|93c96} (need SPI-to-MW adapter)\n" \
" -8 set organization 8-bit for Microwire EEPROM(default 16-bit) and set jumper on SPI-to-MW adapter\n" \
" -f <addr len> set manual address size in bits for Microwire EEPROM(default auto)\n"
Expand Down