blob: 038b93b1d8dc9083fd1002939dcd4650f817dddb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
PROJECT = gpio_blink
BUILD_DIR = bin
#SHARED_DIR = ../libraries
CFILES = main.c
#CFILES += api.c
#AFILES += api-asm.S
# TODO - you will need to edit these two lines!
DEVICE=stm32f103c8
#OOCD_FILE = board/stm32f4discovery.cfg
# You shouldn't have to edit anything below here.
VPATH += $(SHARED_DIR)
INCLUDES += $(patsubst %,-I%, . $(SHARED_DIR))
OPENCM3_DIR=../libopencm3
include $(OPENCM3_DIR)/mk/genlink-config.mk
include ../rules.mk
include $(OPENCM3_DIR)/mk/genlink-rules.mk
# Black Magic Probe:
GDB=/usr/bin/arm-none-eabi-gdb
BMP_DEVICE=/dev/ttyACM0
bmp: $(PROJECT).elf
$(GDB) $(PROJECT).elf \
-ex 'set confirm off' \
-ex 'target extended-remote $(BMP_DEVICE)' \
-ex 'monitor swdp_scan' \
-ex 'attach 1'
|