thanks, slowly loosing the will to live and program this bleeding chip!
OK, downloaded the hex, fine
went through two different paths using an arduino UNO I have around (on COM8) on win10 PC:
A. trying to follow @stuart instructions in post #63 above.
downloaded and installed jtag2updi configured properly.
wired using a 4k7 and a 10uF (ok, used 20uF, doubt its that much of a difference!)
downloaded and installed MegaTinyCore and configured as explained in the video that stuart linked to.
then tried
avrdude -v -C avrdude.conf -p attiny1614 -c uncompatino -U flash:w:diyBMSCurrentMonitor_ATtiny1614.hex:i
which gave me:
avrdude: Version 6.4
Copyright (c) Brian Dean, http://www.bdmicro.com/
Copyright (c) Joerg Wunsch
System wide configuration file is "avrdude.conf"
Using Port : usb
Using Programmer : uncompatino
avrdude: error: no libftdi or libusb support. Install libftdi1/libusb-1.0 or libftdi/libusb and run configure/make again.
avrdude done. Thank you.
obvs something is fundamentally wrong with my avrdude.
Problem is I don’t understand how the UNO running this whatever jtag2updi gets into the equation and how the avrdude passes stuff into it…
B. for good measure, I also tried to follow @atanisoft instructions, downloaded pymsuprog and run the following command (but again with the UNO wired there…)
pymcuprog write -f ./diyBMSCurrentMonitor_ATtiny1614.hex -d attiny1614 -t uart -u com8 --verify -v debug
which gave me:
pymcuprog.programmer - INFO - Setting up programming session for 'attiny1614'
pymcuprog.deviceinfo.deviceinfo - INFO - Looking for device attiny1614
pymcuprog.serialupdi.physical - INFO - Opening port 'com8' at '115200' baud
pymcuprog.serialupdi.physical - DEBUG - send : [0x0]
pymcuprog.serialupdi.link - DEBUG - STCS to 0x03
pymcuprog.serialupdi.physical - DEBUG - send : [0x55, 0xc3, 0x8]
pymcuprog.serialupdi.link - DEBUG - STCS to 0x02
pymcuprog.serialupdi.physical - DEBUG - send : [0x55, 0xc2, 0x80]
pymcuprog.serialupdi.link - DEBUG - LDCS from 0x00
pymcuprog.serialupdi.physical - DEBUG - send : [0x55, 0x80]
pymcuprog.serialupdi.physical - DEBUG - receive : []
pymcuprog.serialupdi.link - WARNING - Check failed
pymcuprog.serialupdi.physical - INFO - Sending double break
pymcuprog.serialupdi.physical - INFO - Opening port 'com8' at '115200' baud
pymcuprog.serialupdi.link - DEBUG - STCS to 0x03
pymcuprog.serialupdi.physical - DEBUG - send : [0x55, 0xc3, 0x8]
pymcuprog.serialupdi.link - DEBUG - STCS to 0x02
pymcuprog.serialupdi.physical - DEBUG - send : [0x55, 0xc2, 0x80]
pymcuprog.serialupdi.link - DEBUG - LDCS from 0x00
pymcuprog.serialupdi.physical - DEBUG - send : [0x55, 0x80]
pymcuprog.serialupdi.physical - DEBUG - receive : []
pymcuprog.serialupdi.link - WARNING - Check failed
Traceback (most recent call last):
File "d:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "d:\program files\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Program Files\Python37\Scripts\pymcuprog.exe\__main__.py", line 7, in <module>
File "d:\program files\python37\lib\site-packages\pymcuprog\pymcuprog.py", line 285, in main
return pymcuprog_main.pymcuprog(arguments)
File "d:\program files\python37\lib\site-packages\pymcuprog\pymcuprog_main.py", line 80, in pymcuprog
status = _start_session(backend, device_selected, args)
File "d:\program files\python37\lib\site-packages\pymcuprog\pymcuprog_main.py", line 549, in _start_session
backend.start_session(sessionconfig)
File "d:\program files\python37\lib\site-packages\pymcuprog\backend.py", line 366, in start_session
sessionconfig.interface_speed)
File "d:\program files\python37\lib\site-packages\pymcuprog\programmer.py", line 83, in setup_device
options=self.options)
File "d:\program files\python37\lib\site-packages\pymcuprog\nvm.py", line 42, in get_nvm_access_provider
accessprovider = NvmAccessProviderSerial(transport, device_info, baud=frequency, options=options)
File "d:\program files\python37\lib\site-packages\pymcuprog\nvmserialupdi.py", line 51, in __init__
self.avr = UpdiApplication(port, baud, self.dut)
File "d:\program files\python37\lib\site-packages\pymcuprog\serialupdi\application.py", line 81, in __init__
datalink.init_datalink()
File "d:\program files\python37\lib\site-packages\pymcuprog\serialupdi\link.py", line 45, in init_datalink
raise PymcuprogError("UPDI initialisation failed")
pymcuprog.pymcuprog_errors.PymcuprogError: UPDI initialisation failed
pymcuprog.serialupdi.physical - INFO - Closing port 'com8'
guess that is because I didn’t use a usb->serial adapter, getting lost tbh!
any help much appreciated by anyone!
cheers
V.