From c843e1ea6b9ccaf7cfe70182f04e82f143cb289a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 3 Jul 2013 21:02:45 +0000 Subject: implemented basic commands git-svn-id: https://svn.spreadspace.org/pic/trunk@26 a09c6847-51d9-44de-8ef2-e725cf50f3c7 --- downloader/proto.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'downloader/proto.txt') diff --git a/downloader/proto.txt b/downloader/proto.txt index 1228811..826be5f 100644 --- a/downloader/proto.txt +++ b/downloader/proto.txt @@ -17,7 +17,7 @@ Description: Every command consits of one byte command code, a fixed number of bytes as arguments and ends with a XOR checksum over all bytes sent. All data is -transferred LSB first. +transferred LSB first (aka little endian). All addresses and words are 2bytes long. Every answer to a command starts with the command code. One byte return value, optionally some data and a checksum (XOR over all bytes received) The return codes have the following meaning: @@ -138,7 +138,7 @@ read eeprom: 'e' | | data | The bootloader reads bytes from eeprom at address and returns it as - . + . len is 2bytes long. write eeprom: @@ -151,7 +151,7 @@ write eeprom: 'E' | | The bootloader writes (which has to contain exactly bytes) to address - inside the eeprom. + inside the eeprom. len is 2bytes long. read config: @@ -163,7 +163,8 @@ read config: answer: 'c' | | word | - The bootloader reads and returns the configuration word number . + The bootloader reads and returns the configuration word number . is one + byte long. write config: @@ -175,4 +176,5 @@ write config: answer: 'C' | | - The bootloader writes onto configuration word number . + The bootloader writes onto configuration word number . is one + byte long -- cgit v1.2.3