Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
38430d4d
Commit
38430d4d
authored
10 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Patches
Plain Diff
boards/arduino-due: fixed broken flash target
parent
c633c083
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
boards/arduino-due/Makefile.include
+1
-4
1 addition, 4 deletions
boards/arduino-due/Makefile.include
boards/arduino-due/dist/flash.sh
+11
-0
11 additions, 0 deletions
boards/arduino-due/dist/flash.sh
with
12 additions
and
4 deletions
boards/arduino-due/Makefile.include
+
1
−
4
View file @
38430d4d
...
...
@@ -11,20 +11,18 @@ export LINK = $(PREFIX)gcc
export
SIZE
=
$(
PREFIX
)
size
export
OBJCOPY
=
$(
PREFIX
)
objcopy
export
TERMPROG
=
$(
RIOTBASE
)
/dist/tools/pyterm/pyterm
export
FLASHER
=
$(
RIOTBOARD
)
/
$(
BOARD
)
/dist/flash.sh
#define the flash-tool and default port depending on the host operating system
OS
:=
$(
shell
uname
)
ifeq
($(OS),Linux)
PORT
?=
/dev/ttyACM0
FLASHER
=
stty
-F
$(
PORT
)
raw ispeed 1200 ospeed 1200 cs8
-cstopb
ignpar eol 255 eof 255
;
$(
RIOTBOARD
)
/
$(
BOARD
)
/dist/bossac
else
ifeq
($(OS),Darwin)
PORT
?=
$(
shell
ls
-1
/dev/tty.usbmodem
*
|
head
-n
1
)
FLASHER
=
stty
-f
$(
PORT
)
raw ispeed 1200 ospeed 1200 cs8
-cstopb
ignpar eol 255 eof 255
;
$(
RIOTBOARD
)
/
$(
BOARD
)
/dist/bossac_osx
else
$(info CAUTION
:
No flash tool for your host system found!)
# TODO: add support for windows as host platform
endif
export
FLASHER
export
PORT
# define build specific options
...
...
@@ -36,7 +34,6 @@ export LINKFLAGS += -g3 -ggdb -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endi
# linkerscript specified in cpu/Makefile.include
export
LINKFLAGS
+=
-T
$(
LINKERSCRIPT
)
export
OFLAGS
+=
-O
binary
export
FFLAGS
+=
-R
-e
-w
-v
-b
bin/
$(
BOARD
)
/
$(
APPLICATION
)
.hex
export
TERMFLAGS
+=
-p
"
$(
PORT
)
"
# use the nano-specs of the NewLib when available
...
...
This diff is collapsed.
Click to expand it.
boards/arduino-due/dist/flash.sh
0 → 100755
+
11
−
0
View file @
38430d4d
#!/bin/sh
if
[
`
uname
`
=
"Linux"
]
;
then
stty
-F
"
${
PORT
}
"
raw ispeed 1200 ospeed 1200 cs8
-cstopb
ignpar eol 255 eof 255
"
${
RIOTBOARD
}
"
/
"
${
BOARD
}
"
/dist/bossac
-R
-e
-w
-v
-b
"
${
HEXFILE
}
"
elif
[
`
uname
`
=
"Darwin"
]
;
then
stty
-f
$(
PORT
)
raw ispeed 1200 ospeed 1200 cs8
-cstopb
ignpar eol 255 eof 255
"
${
RIOTBOARD
}
"
/
"
${
BOARD
}
"
/dist/bossac_osx
-R
-e
-w
-v
-b
"
${
HEXFILE
}
"
else
echo
"CAUTION: No flash tool for your host system found!"
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment