123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- TARGETS = projects/gcc/tools iap modules service_hw
- BUILDDIR = build
- .PHONY: all config $(TARGETS) tools distclean
- all: config $(TARGETS)
- CFLAGS += -DHARDWARE_$(HARDWARE)
- bt6702:
- @$(MAKE) HARDWARE=$@
- $(TARGETS):
- @$(MAKE) -C $@
- clean: $(TARGETS)
- distclean:
- rm -rf build output
- output: $(TARGETS)
- openocd_ups:
- $(shell openocd -f projects/gcc/configs/stm32f4discovery.cfg)
- gdb:
- $(shell arm-none-eabi-gdb build/stm32bt6702/stm32bt6702.elf)
- reset:
- st-flash --reset read /dev/null 0x8000000 1
- erase:
- st-flash --reset erase
- iapflash:
- st-flash --reset write output/iap.bin 0x8000000
- fwflash_6702:
- st-flash --reset write output/stm32bt6702.bin 0x8020000
- fullflash_6702:
- st-flash --reset write output/iap.bin 0x8000000
- sleep 1
- st-flash --reset write output/stm32bt6702.bin 0x8020000
-
- fwflash_6706:
- st-flash --reset write output/stm32bt6706.bin 0x8020000
- fullflash_6706:
- st-flash --reset write output/iap.bin 0x8000000
- sleep 1
- st-flash --reset write output/stm32bt6706.bin 0x8020000
-
- fullflash_6708:
- st-flash --reset write output/iap.bin 0x8000000
- sleep 1
- st-flash --reset write output/stm32bt6708.bin 0x8020000
|