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
1ea1fe90
Unverified
Commit
1ea1fe90
authored
7 years ago
by
Cenk Gündoğan
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #7928 from smlng/board/bluepill/dfu
bluepill: dfu-util support
parents
ba56fb1c
f0ef2223
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/bluepill/Makefile.include
+18
-1
18 additions, 1 deletion
boards/bluepill/Makefile.include
cpu/stm32f1/ldscripts/stm32f103c8_bluepill.ld
+29
-0
29 additions, 0 deletions
cpu/stm32f1/ldscripts/stm32f103c8_bluepill.ld
with
47 additions
and
1 deletion
boards/bluepill/Makefile.include
+
18
−
1
View file @
1ea1fe90
...
...
@@ -9,5 +9,22 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include
$(RIOTMAKE)/tools/serial.inc.mk
# this board uses openocd
# optionally, use dfu-util to flash via usb
# note: needs a bootloader flashed before, config below is compatible
# with blackmagic_dfu, see https://github.com/blacksphere/blackmagic/
# To stop bootloader from loading an existing firmware, pull down
# (ground) GPIO B1.
ifeq
($(PROGRAMMER),dfu-util)
export
LINKER_SCRIPT
=
stm32f103c8_bluepill.ld
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
OFLAGS
=
-O
binary
export
FFLAGS
=
-d
1d50:6017
-s
0x08002000:leave
-D
"
$(
HEXFILE
)
"
else
# this board uses openocd by default
include
$(RIOTMAKE)/tools/openocd.inc.mk
endif
This diff is collapsed.
Click to expand it.
cpu/stm32f1/ldscripts/stm32f103c8_bluepill.ld
0 → 100644
+
29
−
0
View file @
1ea1fe90
/*
* Copyright (C) 2015 Alexander Melnikov <avmelnikoff@gmail.com>
* 2017 HAW Hamburg
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @addtogroup cpu_stm32f1
* @{
*
* @file
* @brief Memory definitions for the STM32F103C8
*
* @author Alexander Melnikov <avmelnikoff@gmail.com>
* @author Sebastian Meiling <s@mlng.net>
*
* @}
*/
MEMORY
{
rom (rx) : ORIGIN = 0x08002000, LENGTH = 64K-0x2000
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
}
INCLUDE cortexm_base.ld
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