-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (31 loc) · 1.01 KB
/
Makefile
File metadata and controls
45 lines (31 loc) · 1.01 KB
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
34
35
36
37
38
39
40
41
42
43
44
all: compile-debug gdb
detect:
mbed detect
deploy:
mbed deploy
compile:
mbed compile -t GCC_ARM -m NUCLEO_F446RE
copy:
cp -v ./BUILD/NUCLEO_F446RE/GCC_ARM/midiplayer.bin /mnt/hd
screen:
screen /dev/ttyACM0
compile-debug:
mbed compile -t GCC_ARM -m NUCLEO_F446RE --profile mbed-os/tools/profiles/debug.json
clean:
rm -Rvf BUILD
clean-all:
rm -Rvf BUILD
rm -Rvf mbed-os
# Neem een stabiele releaseversie.
# Anders komen er compilatiefouten.
add-mbed-os:
mbed add mbed-os
#cd mbed-os; mbed update mbed-os-5.15.2
openocd:
openocd -f /usr/share/openocd/scripts/board/st_nucleo_f4.cfg
ddd: compile-debug
ddd --debugger arm-none-eabi-gdb BUILD/NUCLEO_F446RE/GCC_ARM/midiplayer.elf
gdb: compile-debug
arm-none-eabi-gdb -q -ex "target remote localhost:3333" -ex "load" -ex "continue" BUILD/NUCLEO_F446RE/GCC_ARM-DEBUG/midiplayer.elf
gdb-fault: compile-debug
arm-none-eabi-gdb -q -ex "target remote localhost:3333" -ex "load" -ex "break HardFault_Handler" -ex "continue" BUILD/NUCLEO_F446RE/GCC_ARM-DEBUG/midiplayer.elf