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
87bdf43b
Commit
87bdf43b
authored
9 years ago
by
kYc0o
Browse files
Options
Downloads
Plain Diff
Merge pull request #4460 from aeneby/openmote-flash
Support flashing OpenMote via serial interface with 'make flash'
parents
78136ff2
d7377cde
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/openmote-cc2538/Makefile.include
+15
-5
15 additions, 5 deletions
boards/openmote-cc2538/Makefile.include
with
15 additions
and
5 deletions
boards/openmote-cc2538/Makefile.include
+
15
−
5
View file @
87bdf43b
...
@@ -6,11 +6,21 @@ export CPU_MODEL = cc2538sf53
...
@@ -6,11 +6,21 @@ export CPU_MODEL = cc2538sf53
PORT_LINUX
?=
/dev/ttyUSB0
PORT_LINUX
?=
/dev/ttyUSB0
PORT_DARWIN
?=
$(
shell
ls
-1
/dev/tty.usbserial-
*
|
head
-n
1
)
PORT_DARWIN
?=
$(
shell
ls
-1
/dev/tty.usbserial-
*
|
head
-n
1
)
# setup JLink for flashing
# Set default flash tool
export
JLINK_DEVICE
:=
cc2538sf53
export
PROGRAMMER
?=
cc2538-bsl
export
JLINK_FLASH_ADDR
:=
200000
export
JLINK_IF
:=
JTAG
ifeq
($(PROGRAMMER),jlink)
include
$(RIOTBOARD)/Makefile.include.jlink
# setup JLink for flashing
export
JLINK_DEVICE
:=
cc2538sf53
export
JLINK_FLASH_ADDR
:=
200000
export
JLINK_IF
:=
JTAG
include
$(RIOTBOARD)/Makefile.include.jlink
else
export
OFLAGS
=
-O
binary
export
HEXFILE
=
$(
ELFFILE:.elf
=
.bin
)
export
FLASHER
=
python
$(
RIOTBASE
)
/dist/tools/cc2538-bsl/cc2538-bsl.py
export
FFLAGS
=
-p
"
$(
PORT
)
"
-e
-w
-v
-b
460800
$(
HEXFILE
)
endif
# setup serial terminal
# setup serial terminal
include
$(RIOTBOARD)/Makefile.include.serial
include
$(RIOTBOARD)/Makefile.include.serial
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