X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src-avr%2Fcheck-avr-mem;fp=src-avr%2Fcheck-avr-mem;h=c73edbd1e8f88ca1d3cda2f697b0a1b9312fe981;hb=6c87e4f77e6072ae7e8587d327b2ff80af2c3e6a;hp=0000000000000000000000000000000000000000;hpb=7818f9962aa3375c29e32ee75038e998eaf53df8;p=fw%2Faltos diff --git a/src-avr/check-avr-mem b/src-avr/check-avr-mem new file mode 100644 index 00000000..c73edbd1 --- /dev/null +++ b/src-avr/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); }'