I am using a custom board with STM32L082, which should have 6KB EEPROM. When I use the function EEPROM.length() I get 128. When I tested the same function on Nucleo L152RE, which should have 16KB EEPROM, I got 256.