arduino / ArduinoCore-megaavr

Arduino Core for the ATMEGA4809 CPU
103 stars 63 forks source link

Support for ATmega4809 Curiosity Nano #8

Closed sstaub closed 5 years ago

sstaub commented 5 years ago

Can you add support for the ATmega4809 Curiosity Nano board from microchip? https://www.microchip.com/DevelopmentTools/ProductDetails/DM320115

facchinm commented 5 years ago

Not sure about officially supporting it (since it's not an Arduino product and we usually don't add boards that are out of our control), but it will be definitely interesting to have it as a separate installable json :wink:

WestfW commented 5 years ago

Xplained Pro, too? I would have thought that Arduino's relationship with Atmel was close enough that it might be desirable to have Atmel Eval Board support for any eval board that uses the same CPU as an official Arduino. At least for the boards that don't directly compete with (unfairly, in some cases) Arduino boards...

The 4809 board have significantly different SERCOM usage, which makes things a bit more complicated, I think. Still looking.

goodchip commented 5 years ago

I'm also very interressed by third party support of this board.

MCUdude commented 5 years ago

For better 3rd party support you may try to use https://github.com/MCUdude/MegaCoreX. It's still in a very early stage, but I welcome anyone to test it so improvements can be done

goodchip commented 5 years ago

Nice job MCUdude, all my encouragements!

mbanzi commented 5 years ago

@ MCUdude wouldn't it be better to contribute to the existing core instead of creating a new one?

MCUdude commented 5 years ago

Well, I will still contribute to this repo, but my main focus will be on my own core(s) and then maybe try to get a PR merged here afterwards. Here's why: my core/cores have a slightly different approach that the official Arduino boards. Mine are chip oriented and not board oriented, and give the users more hardware options in the tools menu. BOD and clocks are certainly important for more advanced users.

Let's concentrate on the MegaCoreX. My plan is to use these core files to support a variety of tinyAVR-0 and tinyAVR-1 chips too. I need to do some fundamental changes in order for this to happen. Changes like this doesn't really benefit users of the official Arduino boards, so PRs like this doesn't seem to be important for the devs to merge.

Here's also some important changes I'd need on order for me to use these core files directly:

WestfW commented 5 years ago

It would take a "corporate change of direction" to get the Arduino github repository to accept patches to either create or enhance new variants for "unsupported products" and/or from "competing" vendors. (as facchinm mentioned in his initial reply.)

It's a difficult problem, balancing the stability and internal expertise of a given core vs the customer (non-customer?) interest in other boards.