-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for AVR DU #187
base: master
Are you sure you want to change the base?
Support for AVR DU #187
Conversation
We are interested in testing this PR against the Microchip "generated" stack (which is pretty heavy). |
@bradanlane please go ahead and test it out and let me know if you have any questions or bugs/problems |
@echoromeo ...
I am sure the build process is not overly complex for anyone who has build it in the past. Unfortunately we spend about an hour trying to get through all of the generated errors (likely all due to configuration of the build environment). Is there an example of setting up the Here are some example issues which may help you understand where our configuration is incorrect:
Addendum: I am using the |
@echoromeo ... much progress I switched from attempting After adding the required Solution: eliminating |
I have incorporated the code from this PR into a test project and it is working well at both 12mHz and 24mHz. Thank you @echoromeo ! |
Hi, I have added support for the new AVR DU Family, ported from the current XMEGA support, and added the AVR64DU32 Curiosity Nano board. I think the only thing I have not touched (yet) is bootloader.
I added it as ARCH_AVRDX in case more Dx USB devices pop up.
As I could not see any obvious DFP support in the build system I ended up including paths to the include file and device-specs file to the build flags in the makefile(s). Using the default Microchip Studio path in windows it would look like this:
CC_FLAGS += -B"C:/PROGRA~2/Atmel/Studio/7.0/packs/atmel/AVR-Dx_DFP/2.4.286/gcc/dev/avr64du32" -I"C:/PROGRA~2/Atmel/Studio/7.0/packs/atmel/AVR-Dx_DFP/2.4.286/include"
LD_FLAGS += -B"C:/PROGRA~2/Atmel/Studio/7.0/packs/atmel/AVR-Dx_DFP/2.4.286/gcc/dev/avr64du32"
Please have a look and let me know if this is something you would want to merge :)