From: Robin Krens Date: Tue, 13 Feb 2024 14:18:39 +0000 (+0100) Subject: RAFlasher.py: signature request info X-Git-Tag: v0.0.1~37 X-Git-Url: https://robinkrens.nl/gitweb/?a=commitdiff_plain;h=ea527f1f036f5f313d0c395a9e24ae365c22f451;p=renesas-ra-flasher RAFlasher.py: signature request info --- diff --git a/src/RAFlasher.py b/src/RAFlasher.py index 75a4561..d6f53d5 100644 --- a/src/RAFlasher.py +++ b/src/RAFlasher.py @@ -22,7 +22,19 @@ def get_dev_info(dev): #info = b'\x81\x00\x0D\x3A\x01\x31\x2d\x00\x00\x1e\x84\x80\x04\x02\x0a\x08' # test fmt = '>IIIBBHH' _HEADER, SCI, RMB, NOA, TYP, BFV, _FOOTER = struct.unpack(fmt, info) - print(f'Ver{BFV >> 8}.{BFV & 0xFF}') + print('Chip info:') + print('====================') + print(f'Serial interface speed: {SCI} Hz') + print(f'Recommend max UART baud rate {RMB} bps') + if TYP == 0x02: + print('RA MCU + RA2/RA4 Series') + elif TYP == 0x03: + print('RA MCU + RA6 Series') + else: + print('Unknown MCU type') + print(f'Boot firmware version {BFV >> 8}.{BFV & 0xFF}') + print('====================') + def verify_img(dev, img, start_addr, end_addr): raise Exception("Not implemented")