You are viewing a static version of the site. Enable JavaScript to benefit from the
full functionality of this site and enable such things as forum posting.
Adding new boards
caliberza:
Is there a guide someplace on how one would go about adding boards? I'm trying to figure out how to get a atmega1284 working, using "mightycore" (https://github.com/mcudude/MightyCore ) works in Arduino but I can't quite figure out how to add it to uecide.
I've tried copying a different board's file and modifying it but I guess I'm doing something wrong..
matt:
That's really the best way at the moment - start with a board that's close and adjust it.
Some notes:
The name=
entry should match the folder name the board is in.
Well, that's it actually, only one thing of note ;)
caliberza:
Hmm, thanks... I didn't know that. :o Have fixed that now.
When I try compile I keep getting this error:
<command-line>:0:1: error: macro names must be identifiers
Which I assume is related to this line in the command:
-DARDUINO=10812
I can't figure out where this is coming from? Is it something in the board file?
caliberza:
Or maybe it has nothing to do with that..
caliberza:
There's also an empty "-D" flag, perhaps it's that one.
matt:
Yes, it'll be the empty -D flag.
matt:
Did I create a mightycore "core" for UECIDE? I seem to recall doing it, but can't find it...
caliberza:
There isn't one in the plugin manager. I only found a "Calunium 1284P".
matt:
MightCore is a whole core that would need porting. Are you trying to get a MightyCore board to work in the stock AVR core?
matt:
The Calunium board definition has a misspelled line. The board= should be build.board=
caliberza:
Well, I seem to have gotten it to work. :)
The Calunium board seemed to work, it compiled and uploaded but it appears to have a completely different pin layout. But I was able to use that as a base for getting it to work.
Not yet thoroughly tested, but it's compiling and blinking an LED at the moment so definitely on the right track at least. :)