mraardvark / pyupdi

Python UPDI driver for programming "new" tinyAVR and megaAVR devices
MIT License
212 stars 73 forks source link

attiny424 not programmed using pyupdi. #84

Open sahil-siwatch opened 3 years ago

sahil-siwatch commented 3 years ago

Hello all. I have been trying to use attiny424 (avr-2 series). When i upload it using pyupdi, it shows that attiny424 is notwrong argument. I checked datasheet and it clearly shows that UPDI is available.

image

mraardvark commented 3 years ago

I recommend to use pymcuprog instead of pyupdi: https://pypi.org/project/pymcuprog/

sahil-siwatch commented 3 years ago

I've installed it. when i check in device folder, attiny424 is not present got any tutorials to use ??

mraardvark commented 3 years ago

Good point - I was not aware it was missing. I would just copy the attiny414.py in the device scripts folder and edit the device id to match the 424. Start by checking connectivity: pymcuprog ping -d attiny424 -t uart -u then you could for example write flash using: pymcuprog write -m flash -f hexfile.hex

sahil-siwatch commented 3 years ago

Using UPDI, I can burn code if I select any microcontroller which is listed, I can upload the code this way. Maybe i can select attiny414 and write code..might work..will update.