Skip to content
Snippets Groups Projects
Commit b3cea73a authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

esp8266, stm32f446re-nucleo: Fix ROM/RAM usage report

parent cf97c185
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ build/system.elf: build/system.ar ...@@ -81,7 +81,7 @@ build/system.elf: build/system.ar
-Wl,--gc-sections \ -Wl,--gc-sections \
-Wl,--start-group -lc -lgcc -lhal -lpp -lphy -lnet80211 -llwip -lwpa \ -Wl,--start-group -lc -lgcc -lhal -lpp -lphy -lnet80211 -llwip -lwpa \
-lmain $< -Wl,--end-group -o $@ -lmain $< -Wl,--end-group -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) "%)" }' ${QUIET}${SIZE} build/system.elf | tail -n1 | awk '{ print " ROM: " ($$1+$$2) " (" int(($$1+$$2)*100/4194304) "%) RAM: " ($$2 + $$3) " (" int(($$2+$$3)*100/81920) "%)" }'
build/0x00000.bin: build/system.elf build/0x00000.bin: build/system.elf
${ESPTOOL} --chip esp8266 elf2image -o build/ $< ${ESPTOOL} --chip esp8266 elf2image -o build/ $<
......
...@@ -98,7 +98,7 @@ build/system.elf: ${OBJECTS} ext/libopencm3/lib/libopencm3_stm32f4.a ...@@ -98,7 +98,7 @@ build/system.elf: ${OBJECTS} ext/libopencm3/lib/libopencm3_stm32f4.a
-T src/arch/stm32f446re-nucleo/stm32f446.ld \ -T src/arch/stm32f446re-nucleo/stm32f446.ld \
${OBJECTS} -lopencm3_stm32f4 \ ${OBJECTS} -lopencm3_stm32f4 \
-o $@ -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) "%)" }' ${QUIET}${SIZE} build/system.elf | tail -n1 | awk '{ print " ROM: " ($$1+$$2) " (" int(($$1+$$2)*100/524288) "%) RAM: " ($$2 + $$3) " (" int(($$2+$$3)*100/131072) "%)" }'
program: build/system.elf program: build/system.elf
openocd -c 'source [find interface/stlink-v2-1.cfg]' \ openocd -c 'source [find interface/stlink-v2-1.cfg]' \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment