Hello,
I tried pyupdi with two atmega4808 micros and two different USB2serial converters, but I couldn't have made the thing work.
I wired it up as https://github.com/mraardvark/py... described it.
I tried it on linux, python 2.7.6. This is what I got (tried 19200 and 57600 baud too):
tom@tom-HP:~/_UPDI/pyupdi-master$ python pyupdi.py -d mega4808 -c /dev/ttyUSB0 -b 115200 -v -f blinky_m4808.hex
INFO:phy Opening /dev/ttyUSB0 at 115200 baud
INFO:phy send : [0x0]
INFO:link STCS to 0x03
INFO:phy send : [0x55, 0xc3, 0x8]
INFO:link STCS to 0x02
INFO:phy send : [0x55, 0xc2, 0x80]
INFO:link LDCS from 0x00
INFO:phy send : [0x55, 0x80]
INFO:phy receive : []
INFO:link UPDI not OK - reinitialisation required
INFO:phy Sending double break
INFO:phy Opening /dev/ttyUSB0 at 115200 baud
INFO:link STCS to 0x03
INFO:phy send : [0x55, 0xc3, 0x8]
INFO:link STCS to 0x02
INFO:phy send : [0x55, 0xc2, 0x80]
INFO:link LDCS from 0x00
INFO:phy send : [0x55, 0x80]
INFO:phy receive : []
INFO:link UPDI not OK - reinitialisation required
Traceback (most recent call last):
File "pyupdi.py", line 157, in <module>
_main()
File "pyupdi.py", line 88, in _main
device=Device(args.device))
File "/home/tom/_UPDI/pyupdi-master/updi/nvm.py", line 17, in __init__
self.application = UpdiApplication(comport, baud, device)
File "/home/tom/_UPDI/pyupdi-master/updi/application.py", line 17, in __init__
self.datalink = UpdiDatalink(comport, baud)
File "/home/tom/_UPDI/pyupdi-master/updi/link.py", line 30, in __init__
raise Exception("UPDI initialisation failed")
Exception: UPDI initialisation failed
INFO:phy Closing /dev/ttyUSB0
Does anyone have any idea what to do? I can try it and post the response.
Tom