EG_GenLoc31e_988_CL_002_UK
Page 18 / 22
Descriptions and non-contractual illustrations in this document are given as an indication only.
ERCO&GENER reserves the right to make any modifications.
2.3 Serial Flash commands
These commands provide a means of accessing the
optional
serial flash memory. Refer to the data sheet
for the type of flash used for detailed information.
2.3.1
AT+SFHELP – Display serial flash commands
This command will display a list of the available commands to access and manage the serial flash.
Syntax: AT+SFHELP
Example :
Command
Possible Responses
AT+SFHELP
------------------------- SERIAL FLASH -------------------------
AT+SFHELP.................Display list of commands
AT+SFTYPE.................Display manufacturer, memory size and erase
block size(s)
AT+SFSR...................Display Status Register
AT+SFWRTEXT=addr,"text"...Write an ascii text to the address addr
AT+SFRD=start,length(,a)..Read length bytes from start address, (a=1:
ascii dump)
AT+SFWEL=x................Display or modify Write Enable Latch bit:
0=Disabled, 1=Enabled
AT+SFBP=x.................Display or modify Block Protection bits:
1=Protected, 0=Unprotected
AT+SFEB=x(,s).............Erase block, size (default 64Kbytes)
AT+SFECHIP................Erase entire memory
OK
Note: Display Serial Flash command list
2.3.2
AT+SFTYPE – Display serial flash type
This command will display the manufacturer, type, memory size and erase block size in bytes of the serial
flash (if present).
Syntax: AT+SFTYPE
Examples :
Command
Possible Responses
AT+SFTYPE
------------- SERIAL FLASH -------------
Manufacturer: SST (0xBF), Type: SST25VF016B (0x2541)
Size: 2097152 Bytes
Erase Blocks: 64KB 32KB 4KB
OK
Display
information
about
detected
serial flash
AT+SFTYPE
No Serial Flash detected
OK
No serial
flash is
present