-
Notifications
You must be signed in to change notification settings - Fork 446
Support for Arduino Due added #567
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
Conversation
|
What are your thoughts on this? |
sej7278
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't understand this bit that seems to replace ALTERNATE_CORE_PATH with SAM_CORE_PATH
| @$(MKDIR) $(dir $@) | ||
| $(CC) -MMD -c $(CPPFLAGS) $(ASFLAGS) $< -o $@ | ||
|
|
||
| # alt core files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this going to break non-sam alternate cores like attiny?
edit: actually i see if was added when sam support was added, so probably ok to rename (might even be better that way!)
| CXXFLAGS += -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color | ||
| CFLAGS += -flto -fno-fat-lto-objects -fdiagnostics-color | ||
| CXXFLAGS += -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color=$(DIAGNOSTICS_COLOR_WHEN) | ||
| CFLAGS += -flto -fno-fat-lto-objects -fdiagnostics-color=$(DIAGNOSTICS_COLOR_WHEN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this need rebasing as the COLOR_WHEN stuff has already been merged?
| - Tweak: Update Windows usage documentation and allow non-relative paths (issue #519) (https://github.com/tuna-f1sh) | ||
| - Tweak: Support Cygwin Unix Python and Windows installation on Windows to pass correct port binding. (https://github.com/tuna-f1sh) | ||
| - New: Added -fdiagnostics-color to \*STD flags (https://github.com/sej7278) | ||
| - New: Made -fdiagnostics-color take a variiable DIAGNOSTICS_COLOR_WHEN: never, always, auto. (https://github.com/wingunder) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
color diagnostics has already been merged, need to add Due comment to history
|
looks like it needs rebasing as the DIAGNOSTICS_COLOR_WHEN stuff has already been merged, also need Due support added to HISTORY.md |
|
Yes the ALTERNATIVE_CORE stuff looks like a big change but as you picked up, it's something that I added when doing the SAM support and think the naming it SAM_CORE is easier for readability. Think the DIAGNOSTICS_COLOR_WHEN stuff got pulled in as I merged upstream after starting work. I did do a rebase so I'll have to dig deeper as to how to eliminate this change, which is already in master, unless you have any tips? |
6556c1f to
eb56d90
Compare
|
Ok, I sorted out why my rebase didn't adjust for the upstream/master changes; I'd rebased to my local master prior doing a merge of upstream/master. |
sej7278
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all looks good to me now
void setup() {
Serial.begin(9600);
}
void loop() {
float foo = random(1000) * 0.001;
Serial.println(String("foo: ") + foo);
}this code yields this error there's --- a/Arduino.mk
+++ b/Arduino.mk
@@ -830,8 +830,9 @@ ifeq ($(strip $(NO_CORE)),)
CORE_CPP_SRCS = $(wildcard $(ARDUINO_CORE_PATH)/*.cpp)
CORE_AS_SRCS = $(wildcard $(ARDUINO_CORE_PATH)/*.S)
- # USB Core if samd or sam
+ # USB / dtostrf hack if samd or sam
ifeq ($(findstring sam, $(strip $(ARCHITECTURE))), sam)
+ CORE_C_SRCS += $(wildcard $(ARDUINO_CORE_PATH)/avr/*.c)
CORE_C_SRCS += $(wildcard $(ARDUINO_CORE_PATH)/USB/*.c)
CORE_CPP_SRCS += $(wildcard $(ARDUINO_CORE_PATH)/USB/*.cpp)
endif |
|
Good spot, looks like it's just the emulation of the |
Update HISTORY.md Add avr core emulation to C sources
|
Thanks for your contribution. Thanks for reviewing the PR. |
|
Have a look at the [Due](
https://github.com/sudar/Arduino-Makefile/tree/master/examples/DueBlink
) example and the [ARM](
https://github.com/sudar/Arduino-Makefile/blob/master/README.md) section of
the README.
…On Sat, 13 Jul 2019 at 19:18, Will ***@***.***> wrote:
Hi,
reading through this post, I understand that the arduino due is now
supported right? I don't see it in the supported board.txt file? could
someone enlighten me on what board_tag to set and more generally how to
generate the simplest makefile for the Arduino due. thx
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#567?email_source=notifications&email_token=AAOMUGSONB6ETVKDLWOOMG3P7IE7TA5CNFSM4FD3AYOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ3V2YY#issuecomment-511139171>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOMUGRGAPMUJY4GXF3DCFTP7IE7TANCNFSM4FD3AYOA>
.
|
|
Thks, I actually saw it right after writing the comment, hence why i deleted my comment. (you know you need to dial tech support for your computer to fix ^^ ) thanks again. |
Following on from #565 , support for Arduino Due added to complete Arduino SAM support. Fairly minor changes:
basenameflag complaining.grepstring to prevent macOS BSD grep complaining.