I am not sure if this actually produces valid register accesses for an ATtiny202 as my chips will not show up until August -- but my firmware does compile.
All of the svd patches are in patch/common/attiny-0-series.yaml which should work for all of the 0-series (but may only work for ATtiny20 and ATtiny40, but not 80 or 160 given how the datasheet is split).
The yaml patch might even be somewhat applicable to the 1-series? They do seem extremely similar through my brief research.
I am currently only using the TWI/I²C peripheral and the PORT registers so have not really looked at the other peripherals for patching besides a few random things that stood out to me. I tried to look at the other patch files for ideas, but the 0-series seems significantly different. If you have any suggestions for things I should focus on I would be happy to take a look.
I can extract and commit the atdf files for the rest of the files that the ATtiny202 datasheet covers if you would like.
This may be tangentially related to #26 (if anything else, assuming the 1-series atdf files are similar, it seems the workflow works now)
I am not sure if this actually produces valid register accesses for an ATtiny202 as my chips will not show up until August -- but my firmware does compile.
All of the svd patches are in
patch/common/attiny-0-series.yaml
which should work for all of the 0-series (but may only work for ATtiny20 and ATtiny40, but not 80 or 160 given how the datasheet is split).The yaml patch might even be somewhat applicable to the 1-series? They do seem extremely similar through my brief research.
I am currently only using the TWI/I²C peripheral and the PORT registers so have not really looked at the other peripherals for patching besides a few random things that stood out to me. I tried to look at the other patch files for ideas, but the 0-series seems significantly different. If you have any suggestions for things I should focus on I would be happy to take a look.
I can extract and commit the
atdf
files for the rest of the files that the ATtiny202 datasheet covers if you would like.This may be tangentially related to #26 (if anything else, assuming the 1-series
atdf
files are similar, it seems the workflow works now)