From 51bc06787707feabd34fb909f009df50691023c9 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 7 Jul 2013 13:54:16 +0000 Subject: added flash and eeprom sizes to identify git-svn-id: https://svn.spreadspace.org/pic/trunk@48 a09c6847-51d9-44de-8ef2-e725cf50f3c7 --- downloader/downloader.py | 7 ++++--- downloader/proto.txt | 10 +++++++++- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'downloader') diff --git a/downloader/downloader.py b/downloader/downloader.py index b85326f..f0407e9 100755 --- a/downloader/downloader.py +++ b/downloader/downloader.py @@ -158,9 +158,9 @@ def exec_command(dev, cmd, param, answer): ### Commands def identify(dev): - data = exec_command(dev, 1, '', ' answer: - 1 | len=22 | | version | name | devid | fss | mess | supported | + 1 | len=22 | | version | name | devid | fs | fss | es | mess | supported | version: 2bytes, protocol version @@ -59,12 +59,20 @@ identify: 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 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 -- cgit v1.2.3