mraardvark / pyupdi

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

Support for megaAVR 0-series #21

Closed fschneidereit closed 5 years ago

fschneidereit commented 5 years ago

Support for the ATmega3208/3209/4808/4809 would be great.

mraardvark commented 5 years ago

Technically UPDI is the same on the megas, but the flash starts at 0x4000.

fschneidereit commented 5 years ago

I don't work with these devices at the moment, but would contribute the necessary code if flash address is the only difference. What about the ATtiny3216/3217? Telling from the data sheet, its the same as all the other tinyAVR 1-series devices, except for flash size.

mraardvark commented 5 years ago

I have a mega4809 here, but need to do a spot of soldering to use pyupdi... will note-to-self to try to get it done...

fschneidereit commented 5 years ago

OK. The page size is also different on the megas (128). I pushed a version with megaAVR support to my fork of pyupdi, you can use it for experimenting if you like.

mraardvark commented 5 years ago

Thanks. I did a cut-and-paste over and pushed. Tested with led blinker on m4809.

fschneidereit commented 5 years ago

:+1: