X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Futil%2Fcheck-avr-mem;fp=src%2Futil%2Fcheck-avr-mem;h=c73edbd1e8f88ca1d3cda2f697b0a1b9312fe981;hb=c32893ce79835a8f861d6ef414644c2ff9769ff6;hp=0000000000000000000000000000000000000000;hpb=8125acc030574afed6f23aa8aa302d9c768bb04e;p=fw%2Faltos diff --git a/src/util/check-avr-mem b/src/util/check-avr-mem new file mode 100644 index 00000000..c73edbd1 --- /dev/null +++ b/src/util/check-avr-mem @@ -0,0 +1,9 @@ +#!/bin/sh +nm "$@" | +grep ' N _end' | +awk '{ iram = strtonum("0x" $1) % 0x10000; +if ( iram > 0xaff) { + printf ("%d bytes of ram more than %d available\n", iram, 0xaff); + exit(1); +} else + exit(0); }'