@@ -7,7 +7,7 | |||||
7 | isEmpty(_stm32f4_conf){ |
|
7 | isEmpty(_stm32f4_conf){ | |
8 | _stm32f4_conf="oneshot" |
|
8 | _stm32f4_conf="oneshot" | |
9 |
|
9 | |||
10 | QMAKE_CFLAGS=-mlittle-endian -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -std=c99 |
|
10 | QMAKE_CFLAGS+= -g -mlittle-endian -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -std=c99 | |
11 |
|
11 | |||
12 | include(../../common/arm-none-eabi.conf) |
|
12 | include(../../common/arm-none-eabi.conf) | |
13 |
|
13 | |||
@@ -45,7 +45,7 contains( TEMPLATE, app ) { | |||||
45 | LIBS += -lcpu |
|
45 | LIBS += -lcpu | |
46 | LIBS += -lcore -lm -lc |
|
46 | LIBS += -lcore -lm -lc | |
47 |
|
47 | |||
48 | QMAKE_LFLAGS= -mlittle-endian -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -std=c99 -T $$[QT_INSTALL_PREFIX]/mkspecs/features/stm32f4/$$LDSCRIPT |
|
48 | QMAKE_LFLAGS += -g -mlittle-endian -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -std=c99 -T $$[QT_INSTALL_PREFIX]/mkspecs/features/stm32f4/$$LDSCRIPT | |
49 |
|
49 | |||
50 |
|
50 | |||
51 |
|
51 | |||
@@ -59,7 +59,12 contains( TEMPLATE, app ) { | |||||
59 | stflash.commands = cd $$DESTDIR && st-flash write $(QMAKE_TARGET).bin 0x08000000 |
|
59 | stflash.commands = cd $$DESTDIR && st-flash write $(QMAKE_TARGET).bin 0x08000000 | |
60 | dfu.target = dfu |
|
60 | dfu.target = dfu | |
61 | dfu.commands = cd $$DESTDIR && dfu-util d 0483:df11 -c 1 -i 0 -a 0 -s 0x08000000 -D $(QMAKE_TARGET).bin 0x08000000 |
|
61 | dfu.commands = cd $$DESTDIR && dfu-util d 0483:df11 -c 1 -i 0 -a 0 -s 0x08000000 -D $(QMAKE_TARGET).bin 0x08000000 | |
62 | QMAKE_EXTRA_TARGETS += stflash dfu |
|
62 | gdb-server.target = gdb-server | |
|
63 | gdb-server.commands = st-util -p 3333 & | |||
|
64 | nemiver.target = nemiver | |||
|
65 | nemiver.commands = cd $$DESTDIR && nemiver --remote=localhost:3333 --gdb-binary=`which arm-none-eabi-gdb` $(QMAKE_TARGET) | |||
|
66 | nemiver.depends = gdb-server | |||
|
67 | QMAKE_EXTRA_TARGETS += stflash dfu nemiver gdb-server | |||
63 | } |
|
68 | } | |
64 |
|
69 | |||
65 |
|
70 |
General Comments 0
You need to be logged in to leave comments.
Login now