Rahix / avr-device

Register access crate for AVR microcontrollers
Apache License 2.0
178 stars 68 forks source link

Error creating support for atmega16u2 #159

Closed zacharytomlinson closed 1 month ago

zacharytomlinson commented 1 month ago

I made the necessary changes to my knowledge following the instructions in the readme. SVD2RUST gets to the point of execution and a encounters an error for my new target:

-e  GEN-VECTOR  >macros/src/vector.rs
-e  SVD2RUST    atmega16u2
error: a value is required for '-i <FILE>' but none was supplied

Anyone experienced a similar issue upon integration? I suspect maybe the atdf is not in the expected format?

Rahix commented 1 month ago

Please open a draft pull request with your current code so we can take a look.

Also, please make sure all tools are installed in the correct version as specified.

zacharytomlinson commented 1 month ago

@Rahix sorry for the delay: https://github.com/Rahix/avr-device/pull/163

zacharytomlinson commented 1 month ago

As for dep versions:

~$ atdf2svd --version
atdf2svd v0.4.0 (no git)
~$ svd2rust --version
svd2rust 0.28.0 ( )
~$ form --version
form 0.12.1
~$ svd --version
svdtools, version 0.1.27
Rahix commented 1 month ago

The problem was a typo in the ATDF file name which then lead to the makefile doing crazy things - see #163 and commit 5a58673 for details.