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/downloader.py | 49 +++++++++++++++++++++++++++++------------------- downloader/proto.txt | 12 +++++++----- 2 files changed, 37 insertions(+), 24 deletions(-) (limited to 'downloader') diff --git a/downloader/downloader.py b/downloader/downloader.py index 41e60c2..936f459 100755 --- a/downloader/downloader.py +++ b/downloader/downloader.py @@ -125,13 +125,13 @@ def exec_command(dev, cmd, answer): 3: "not implemented", 4: "flash write error", 5: "address invalid", 6: "address prohibited" } - answer = "=cB" + answer + "B" + answer = ' | 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