From bdff4289c8d10f287f6b2ca562730b17b295c8dc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 28 Jan 2021 22:02:54 +0100 Subject: add more cat targets and size output --- src/arch/stm32f446re-nucleo/Makefile.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/arch/stm32f446re-nucleo/Makefile.inc') diff --git a/src/arch/stm32f446re-nucleo/Makefile.inc b/src/arch/stm32f446re-nucleo/Makefile.inc index 781d82e..f5ca344 100644 --- a/src/arch/stm32f446re-nucleo/Makefile.inc +++ b/src/arch/stm32f446re-nucleo/Makefile.inc @@ -98,6 +98,7 @@ build/system.elf: ${OBJECTS} ext/libopencm3/lib/libopencm3_stm32f4.a -T src/arch/stm32f446re-nucleo/stm32f446.ld \ ${OBJECTS} -lopencm3_stm32f4 \ -o $@ + ${QUIET}${SIZE} build/system.elf | tail -n1 | awk '{ print " ROM: " ($$1+$$2) " (" int(($$1+$$2)*100/49152) "%) RAM: " ($$2 + $$3) " (" int(($$2+$$3)*100/4096) "%)" }' program: build/system.elf openocd -c 'source [find interface/stlink-v2-1.cfg]' \ @@ -110,6 +111,9 @@ program: build/system.elf arch_clean: ${QUIET}rm -f ${OBJECTS} +cat: + ${QUIET}script/cat.py /dev/${SERIAL_PORT} 115200 ${cpu_freq} 65536 + monitor: ${QUIET}screen /dev/${SERIAL_PORT} 115200 @@ -128,4 +132,4 @@ arch_info: attributes: build/system.elf ${QUIET}script/size.py ${SIZE} text,data data,bss -.PHONY: arch_clean arch_help arch_info attributes monitor program +.PHONY: arch_clean arch_help arch_info attributes cat monitor program -- cgit v1.2.3