X-Git-Url: https://robinkrens.nl/gitweb/?a=blobdiff_plain;f=src%2FRAFlasher.py;fp=src%2FRAFlasher.py;h=d6f53d52df95135fc2e5d24f480da43bb9a17e4d;hb=ea527f1f036f5f313d0c395a9e24ae365c22f451;hp=75a4561cae33b363969ad6498a3aa8003aa27d1a;hpb=383ccd9f65c609dca06143236048c76595f22935;p=renesas-ra-flasher 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")