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
a886c7c0
You need to sign in or sign up before continuing.
Commit
a886c7c0
authored
9 years ago
by
Jonas
Browse files
Options
Downloads
Patches
Plain Diff
pba-d-01-kw2x: enable support to flash board selected by its SERIAL no
parent
64cef15f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/pba-d-01-kw2x/Makefile.include
+12
-0
12 additions, 0 deletions
boards/pba-d-01-kw2x/Makefile.include
with
12 additions
and
0 deletions
boards/pba-d-01-kw2x/Makefile.include
+
12
−
0
View file @
a886c7c0
...
...
@@ -29,6 +29,18 @@ export PRE_FLASH_CHECK_SCRIPT = $(RIOTCPU)/kinetis_common/dist/check-fcfield-elf
include
$(RIOTBOARD)/$(BOARD)/Makefile.dep
# Add board selector (USB serial) to OpenOCD options if specified.
# Use /dist/tools/usb-serial/list-ttys.sh to find out serial number.
# Usage: SERIAL="0200..." BOARD="pba-d-01-kw2x" make flash
ifneq
(,$(SERIAL))
export
OPENOCD_EXTRA_INIT
+=
"-c cmsis_dap_serial
$(
SERIAL
)
"
SERIAL_TTY
=
$(
shell
$(
RIOTBASE
)
/dist/tools/usb-serial/find-tty.sh
$(
SERIAL
))
ifeq
(,$(SERIAL_TTY))
$(
error
Did not find a device with serial
$(
SERIAL
))
endif
PORT_LINUX
:=
$(
SERIAL_TTY
)
endif
# setup serial terminal
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