summaryrefslogtreecommitdiff
path: root/downloader/proto.txt
diff options
context:
space:
mode:
Diffstat (limited to 'downloader/proto.txt')
-rw-r--r--downloader/proto.txt20
1 files changed, 6 insertions, 14 deletions
diff --git a/downloader/proto.txt b/downloader/proto.txt
index af32584..15caec7 100644
--- a/downloader/proto.txt
+++ b/downloader/proto.txt
@@ -43,36 +43,28 @@ identify:
1 | len=3 | <csum>
answer:
- 1 | len=22 | <ret> | version | userid | devid | fs | fss | es | mess | supported | <csum>
+ 1 | len=22 | <ret> | version | name | devid | fss | mess | supported | <csum>
version:
2bytes, protocol version
It is an error if the major version (MSB) is different (hence any
protocol update must change the major version of the bootloader).
- userid:
- 2bytes, an id which determines the exact device
- The downloader has to compare this with the device id supplied
+ name:
+ 3bytes, a descriptive name of the device.
+ The downloader has to compare this name with the device name supplied
via commandline and stop in case they don't match
devid:
2bytes, device id of the PIC
The downlaoder may use this id to check if it talks to the right bootloader
- fs:
- 2bytes, flash size
- The size of the flash in code words.
-
fss:
1byte, flash segment size
The number of words of one flash segment which has to be written at once.
If less than <fss> should be updated the downloader has to perform a read
operation first.
- es:
- 2bytes, eeprom size
- The size of the eeprom in bytes.
-
mess:
1byte, maximum eeprom segment size
This represents the maximum number of eeprom bytes which may be written or
@@ -165,12 +157,12 @@ write eeprom:
~~~~~~~~~~~~~
command:
- 7 | len=4+len(data) | addr | data | <csum>
+ 7 | len=4+2<len(data) | addr | data | <csum>
answer:
7 | len=4 | <ret> | <csum>
- The bootloader writes <data> (which has to contain exactly <len>-4 bytes) to address
+ The bootloader writes <data> (which has to contain exactly <len> bytes) to address
<addr> inside the eeprom. len is 1byte long and the value must not exceed <mess> bytes.