My question was: where at the code (for the driver) is the SRAM used with such a huge amount
I am just guessing, it can be on the flash access routine - i think the eeprom driver calling it.
Have you compile the code? Is the compiler confirm that 2K RAM requirement?
Yeah no internal eeprom can be a pain, i choose to use external eeprom / fram - remember that writing the flash will stall the MCU, no interrupt can be catch on that time.