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
f571814d
Commit
f571814d
authored
7 years ago
by
kYc0o
Browse files
Options
Downloads
Patches
Plain Diff
boards: add rom boot offset for boards w/bootloader
parent
d0067b45
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
boards/bluepill/Makefile.include
+8
-8
8 additions, 8 deletions
boards/bluepill/Makefile.include
boards/opencm904/Makefile.include
+3
-3
3 additions, 3 deletions
boards/opencm904/Makefile.include
boards/spark-core/Makefile.include
+3
-3
3 additions, 3 deletions
boards/spark-core/Makefile.include
with
14 additions
and
14 deletions
boards/bluepill/Makefile.include
+
8
−
8
View file @
f571814d
...
@@ -15,16 +15,16 @@ include $(RIOTMAKE)/tools/serial.inc.mk
...
@@ -15,16 +15,16 @@ include $(RIOTMAKE)/tools/serial.inc.mk
# To stop bootloader from loading an existing firmware, pull down
# To stop bootloader from loading an existing firmware, pull down
# (ground) GPIO B1.
# (ground) GPIO B1.
ifeq
($(PROGRAMMER),dfu-util)
ifeq
($(PROGRAMMER),dfu-util)
export
LINKER_SCRIPT
=
stm32f103c8_bluepill.ld
export
ROM_OFFSET
?=
0x2000
# Skip the space needed by the embedded bootloader
export
BINFILE
=
$(
patsubst %.elf,%.bin,
$(
ELFFILE
))
export
BINFILE
=
$(
patsubst %.elf,%.bin,
$(
ELFFILE
))
export
FLASHER
=
dfu-util
export
DEBUGGER
=
# no debugger
export
RESET
=
# dfu-util has no support for resetting the device
export
FLASHER
=
dfu-util
export
OFLAGS
=
-O
binary
export
DEBUGGER
=
# no debugger
export
FFLAGS
=
-d
1d50:6017
-s
0x08002000:leave
-D
"
$(
HEXFILE
)
"
export
RESET
=
# dfu-util has no support for resetting the device
export
OFLAGS
=
-O
binary
export
FFLAGS
=
-d
1d50:6017
-s
0x08002000:leave
-D
"
$(
HEXFILE
)
"
else
else
# this board uses openocd by default
# this board uses openocd by default
include
$(RIOTMAKE)/tools/openocd.inc.mk
include
$(RIOTMAKE)/tools/openocd.inc.mk
endif
endif
This diff is collapsed.
Click to expand it.
boards/opencm904/Makefile.include
+
3
−
3
View file @
f571814d
...
@@ -2,9 +2,6 @@
...
@@ -2,9 +2,6 @@
export
CPU
=
stm32f1
export
CPU
=
stm32f1
export
CPU_MODEL
=
stm32f103cb
export
CPU_MODEL
=
stm32f103cb
# custom linkerscript
export
LINKER_SCRIPT
=
stm32f103cb_opencm904.ld
# custom flasher to use with the bootloader
# custom flasher to use with the bootloader
export
FLASHER
=
$(
RIOTBOARD
)
/
$(
BOARD
)
/dist/robotis-loader.py
export
FLASHER
=
$(
RIOTBOARD
)
/
$(
BOARD
)
/dist/robotis-loader.py
export
DEBUGGER
=
export
DEBUGGER
=
...
@@ -19,5 +16,8 @@ export DEBUGGER_FLAGS =
...
@@ -19,5 +16,8 @@ export DEBUGGER_FLAGS =
PORT_LINUX
?=
/dev/ttyACM0
PORT_LINUX
?=
/dev/ttyACM0
PORT_DARWIN
?=
$(
firstword
$(
sort
$(
wildcard /dev/tty.usbmodem
*
)))
PORT_DARWIN
?=
$(
firstword
$(
sort
$(
wildcard /dev/tty.usbmodem
*
)))
# Skip the space needed by the embedded bootloader
export
ROM_OFFSET
?=
0x3000
# setup serial terminal
# setup serial terminal
include
$(RIOTMAKE)/tools/serial.inc.mk
include
$(RIOTMAKE)/tools/serial.inc.mk
This diff is collapsed.
Click to expand it.
boards/spark-core/Makefile.include
+
3
−
3
View file @
f571814d
...
@@ -2,9 +2,6 @@
...
@@ -2,9 +2,6 @@
export
CPU
=
stm32f1
export
CPU
=
stm32f1
export
CPU_MODEL
=
stm32f103cb
export
CPU_MODEL
=
stm32f103cb
# the spark-core uses its own custom linkerscript...
export
LINKER_SCRIPT
=
stm32f103cb_sparkcore.ld
# configure the serial interface
# configure the serial interface
PORT_LINUX
?=
/dev/ttyUSB0
PORT_LINUX
?=
/dev/ttyUSB0
PORT_DARWIN
?=
$(
firstword
$(
sort
$(
wildcard /dev/tty.SLAB_USBtoUART
*
)))
PORT_DARWIN
?=
$(
firstword
$(
sort
$(
wildcard /dev/tty.SLAB_USBtoUART
*
)))
...
@@ -21,5 +18,8 @@ export FFLAGS = -d 1d50:607f -a 0 -s 0x08005000:leave -D "$(HEXFILE)"
...
@@ -21,5 +18,8 @@ export FFLAGS = -d 1d50:607f -a 0 -s 0x08005000:leave -D "$(HEXFILE)"
export
INCLUDES
+=
-I
$(
RIOTCPU
)
/
$(
CPU
)
/include/
-I
$(
RIOTBOARD
)
/
$(
BOARD
)
/include/
export
INCLUDES
+=
-I
$(
RIOTCPU
)
/
$(
CPU
)
/include/
-I
$(
RIOTBOARD
)
/
$(
BOARD
)
/include/
# Skip the space needed by the embedded bootloader
export
ROM_OFFSET
?=
0x5000
# this board uses openocd
# this board uses openocd
include
$(RIOTMAKE)/tools/openocd.inc.mk
include
$(RIOTMAKE)/tools/openocd.inc.mk
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