45
are sent indicating the number of bytes remaining when the operation aborted. This is
usually zero, unless the FPGA re-asserted the INIT line.
S
AVE
C
URRENT
C
AMERA
S
TATE TO
F
LASH
This command takes one argument. The argument can be 01 to 08 and indicates which of
the 8 flash storage areas to store the camera settings in. The camera responds with "K"
followed by the flash storage area number and a carriage-return. This command only
saves user settable parameters other than the Data FPGA loads (512 bytes total).
W
RITE
F
LASH
This command takes arguments that form the precise command to send to the flash
memory. Data length is limited by the flash page buffer size. There is no equivalent write
command to "Continuous Array Read". The intent of the command is to allow uploading
the FPGA code and to write to flash areas that need to be initialized at the factory. The
data is not interpreted by the serial control logic. It is possible to use this command to
directly upload camera settings to the flash pages without changing the current camera
state.
This is the only Control FPGA command that uses binary encoded arguments (with escape
codes for <cr> and \). The exact syntax of the Write Flash command is:
'L' <opcode> <addr> <data> <cr>
where opcode is one byte, addr is 3 bytes, and data can be from zero to 528 bytes
depending on the command. The following opcodes are acceptable to use with this
command (there is no error checking so make sure these are the only codes used).
0x84 Buffer 1 write
0x87 Buffer 2 write
0x83 Buffer 1 to main memory program with built-in erase
0x86 Buffer 2 to main memory program with built-in erase
0x88 Buffer 1 to main memory program without built-in erase
0x89 Buffer 2 to main memory program without built-in erase
0x81 Page Erase