From 82c90d70279c9522520f864daa72156fdacf38b1 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 7 Jul 2013 02:46:24 +0000 Subject: bootloader now checks csum git-svn-id: https://svn.spreadspace.org/pic/trunk@47 a09c6847-51d9-44de-8ef2-e725cf50f3c7 --- downloader/downloader.py | 6 ++++-- downloader/proto.txt | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'downloader') diff --git a/downloader/downloader.py b/downloader/downloader.py index f90eced..b85326f 100755 --- a/downloader/downloader.py +++ b/downloader/downloader.py @@ -108,9 +108,11 @@ def exec_command(dev, cmd, param, answer): 5: "address invalid", 6: "address prohibited", 7: "value out of bounds" } - cstr = bytearray(struct.pack(' + 7 | len=4+len(data) | addr | data | answer: 7 | len=4 | | - The bootloader writes (which has to contain exactly bytes) to address + The bootloader writes (which has to contain exactly -4 bytes) to address inside the eeprom. len is 1byte long and the value must not exceed bytes. -- cgit v1.2.3