C
ONFIGURATION
C
OMMAND
S
ET
- F
IRMWARE
R
EVISION
2.4.0_
BETA
-
V
ERSION
1.0.0
Syntax
Exit
Data
Mode
Select Sector
Write Data to
Sector
Read
Sector
Checksum
Clear
Sector
<cmd_id>
0x00
0x01
0x02
0x03
0x04
<datalength>
0x00
0x01
4 + number of bytes
to be written.
2
0
<data>
-
Number of sector or
99
to
select
configuration sector.
-
-
-
<pos>
-
-
2 Bytes
(position
inside sector 0x00-
0xFFFF)
2 Bytes
(position
inside sector 0x00-
0xFFFF)
-
<data_to_write>
-
-
data for this position
-
-
<cksum>
-
-
2 Byte
(16 bit
checksum of <pos>
and
<data_to_write>)
-
-
Functionality
Switches back
to
normal
Command
mode (PFAL
commands)
-
Selects one of the
sectors (0 ... number
returned
from
RUpdate.Init
command).
-
If '
CFG
' is selected,
only a half sector can
be accessed. The
new
device
configuration can be
stored there if
desired.
-
This selected sector
is used for all further
commands.
-
Data can be written
only to the currently
selected sector.
-
The
checksum
command works only
for the currently
selected sector.
-
Erasing a sector
can be performed
only on the currently
selected one.
Writes data to the
specified position
inside a currently
selected sector
Computes a 16 Bit
Cksum of the currently
selected sector from
the first byte until
<
pos
> (the byte at the
specified position is
included). This Cksum
has to match with the
expected value (i.e. of
the new firmware
sector)
-
If this Cksum
differs from expected
results data is
corrupted, which can
result
in
an
unreachable device.
-
In case a wrong
cksum was reported,
the whole sector has
to be erased (see
next command)
-
Note:
If just a part
of a sector needs to
be written, the
specified
position
should be the last byte
written. If
the
maximum
value
(
0xFFFF
) is specified,
trailing 0xFF’s inside
this sector would be
also used for
calculation.
-
Do not specify
0xFFFF
for the very
last sector containing
a configuration
-
the maximum value
for this sector is
0x7FFF
.
Erases a
currently
selected
sector. (i.e. if
corrupted
data was
inside)
−
leave empty
This confidential document is a property of FALCOM and may not be copied or circulated without previous permission.
Page 36 of 271