.size R/O Property

Function:

Returns total EEPROM memory capacity (in bytes) for the current device.

Type:

Word

Value Range:

Platform-dependent

See Also:

stor. Object


Details

A certain amount of EEPROM is occupied by the special configuration section — for details on what this area actually stores, see your device's platform documentation (for example, the EM1000's is here).

By default, the special configuration area is not accessible to the application and is excluded from the memory capacity reported by stor.size. For example, if the EEPROM IC used by this platform has 2,048 bytes of data and the size of the special configuration memory is 8 bytes, then stor.size will return 2,040 by default. At the same time, the default value of the stor.base property will be 9, which means that EEPROM locations 1~8 are occupied by the special configuration area.

If you set stor.base to 1 (for instance, to edit the MAC address), stor.size will show a capacity of 2,048. In other words, the number this property returns is actual_EEPROM_capacity - stor.base + 1.


.size R/O Property

Details