\nFirst Link
===============
sdcc --model-huge --stack-auto -DSDCC_CC2430 --out-fmt-ihx --xram-loc 0xE000 --xram-size 0x1F00 --code-loc 0x00000 --code-size 0x20000 -Wl-bBANK1=0x018000 -Wl-r -o border-router.ihx obj_sensinode/contiki-sensinode-main.rel obj_sensinode/border-router.app.rel -llibsdcc.lib -lcontiki-sensinode.lib > /dev/null
\nBank Allocation
===============
python ../../../cpu/cc2430/bank-alloc.py border-router obj_sensinode/segment.rules
Total Size = 123573 bytes (117789 bankable, 1972 user-allocated, 3812 const+libs)
Preallocations: HOME=5784, BANK1=0, BANK2=0, BANK3=0
Bin-Packing results (target allocation):
Segment - max - alloc
HOME 32768 27335
BANK1 32768 32762
BANK2 32768 32760
BANK3 30720 30716
\nFinal Link
===============
sdcc --model-huge --stack-auto -DSDCC_CC2430 --out-fmt-ihx --xram-loc 0xE000 --xram-size 0x1F00 --code-loc 0x00000 --code-size 0x20000 -Wl-bBANK1=0x018000 -Wl-r -Wl-bBANK2=0x028000 -Wl-bBANK3=0x038000 -o border-router.ihx obj_sensinode/contiki-sensinode-main.rel obj_sensinode/border-router.app.rel -llibsdcc.lib -lcontiki-sensinode.lib > /dev/null
\nPack hex file
===============
srec_cat -disable_sequence_warnings border-router.ihx -intel -crop 0x10000 0x1FFFF -offset -0x10000 -o bank1.hex -intel
srec_cat -disable_sequence_warnings border-router.ihx -intel -crop 0x20000 0x2FFFF -offset -0x18000 -o bank2.hex -intel
srec_cat -disable_sequence_warnings border-router.ihx -intel -crop 0x30000 0x3FFFF -offset -0x20000 -o bank3.hex -intel
srec_cat -disable_sequence_warnings border-router.ihx -intel -crop 0x00000 0x0FFFF -o home.ihx -intel
srec_cat home.ihx -intel bank1.hex -intel bank2.hex -intel bank3.hex -intel -o border-router.hex -intel
rm -f home.ihx bank1.hex bank2.hex bank3.hex
cp border-router.hex border-router.sensinode
if [ -f border-router.ihx ] ; then \
cp border-router.ihx border-router-n601.ihx; fi
\nReport
===============
Code footprint:
Area Addr Size Decimal
---------------------------------- -------- -------- --------
HOME,CSEG,CONST,XINIT,GS* 00000000 00006AC7 = 27335. bytes (REL,CON,CODE)
BANK1 00018000 00007FFA = 32762. bytes (REL,CON,CODE)
BANK2 00028000 00007FF8 = 32760. bytes (REL,CON,CODE)
BANK3 00038000 000077FC = 30716. bytes (REL,CON,CODE)
Other memory:
Name Start End Size Max
---------------- -------- -------- -------- --------
PAGED EXT. RAM 0 256
EXTERNAL RAM 0xe000 0xf70a 5899 7936
ROM/EPROM/FLASH 0x0000 0x3f7fb 123573 131072
rm obj_sensinode/border-router.app.rel border-router.ihx
xzhang@labtop:~/work/contiki/contiki-sensinode/examples/sensinode/border-router$ ls -lh
total 1.1M
-rw-r--r-- 1 xzhang xzhang 2.4K 2013-06-21 09:38 border-router.banks
-rw-r--r-- 1 xzhang xzhang 4.7K 2013-05-29 18:34 border-router.c
-rw-r--r-- 1 xzhang xzhang 0 2013-06-21 09:38 border-router.cdb
-rw-r--r-- 1 xzhang xzhang 287K 2013-06-21 09:38 border-router.hex
-rw-r--r-- 1 xzhang xzhang 464 2013-06-21 09:38 border-router.lk
-rw-r--r-- 1 xzhang xzhang 67K 2013-06-21 09:38 border-router.map
-rw-r--r-- 1 xzhang xzhang 1.2K 2013-06-21 09:38 border-router.mem
-rw-r--r-- 1 xzhang xzhang 376K 2013-06-21 09:38 border-router-n601.ihx
-rw-r--r-- 1 xzhang xzhang 287K 2013-06-21 09:38 border-router.sensinode
-rw-r--r-- 1 xzhang xzhang 2.7K 2013-06-21 09:38 contiki-sensinode.lib
-rw-r--r-- 1 xzhang xzhang 381 2013-05-29 18:34 Makefile
drwxr-xr-x 2 xzhang xzhang 20K 2013-06-21 09:38 obj_sensinode
-rw-r--r-- 1 xzhang xzhang 2.1K 2013-05-29 18:34 project-conf.h
-rw-r--r-- 1 xzhang xzhang 556 2013-05-29 18:34 README
-rw-r--r-- 1 xzhang xzhang 3.6K 2013-05-29 18:34 slip-bridge.c
===============
sdcc --model-huge --stack-auto -DSDCC_CC2430 --out-fmt-ihx --xram-loc 0xE000 --xram-size 0x1F00 --code-loc 0x00000 --code-size 0x20000 -Wl-bBANK1=0x018000 -Wl-r -o border-router.ihx obj_sensinode/contiki-sensinode-main.rel obj_sensinode/border-router.app.rel -llibsdcc.lib -lcontiki-sensinode.lib > /dev/null
\nBank Allocation
===============
python ../../../cpu/cc2430/bank-alloc.py border-router obj_sensinode/segment.rules
Total Size = 123573 bytes (117789 bankable, 1972 user-allocated, 3812 const+libs)
Preallocations: HOME=5784, BANK1=0, BANK2=0, BANK3=0
Bin-Packing results (target allocation):
Segment - max - alloc
HOME 32768 27335
BANK1 32768 32762
BANK2 32768 32760
BANK3 30720 30716
\nFinal Link
===============
sdcc --model-huge --stack-auto -DSDCC_CC2430 --out-fmt-ihx --xram-loc 0xE000 --xram-size 0x1F00 --code-loc 0x00000 --code-size 0x20000 -Wl-bBANK1=0x018000 -Wl-r -Wl-bBANK2=0x028000 -Wl-bBANK3=0x038000 -o border-router.ihx obj_sensinode/contiki-sensinode-main.rel obj_sensinode/border-router.app.rel -llibsdcc.lib -lcontiki-sensinode.lib > /dev/null
\nPack hex file
===============
srec_cat -disable_sequence_warnings border-router.ihx -intel -crop 0x10000 0x1FFFF -offset -0x10000 -o bank1.hex -intel
srec_cat -disable_sequence_warnings border-router.ihx -intel -crop 0x20000 0x2FFFF -offset -0x18000 -o bank2.hex -intel
srec_cat -disable_sequence_warnings border-router.ihx -intel -crop 0x30000 0x3FFFF -offset -0x20000 -o bank3.hex -intel
srec_cat -disable_sequence_warnings border-router.ihx -intel -crop 0x00000 0x0FFFF -o home.ihx -intel
srec_cat home.ihx -intel bank1.hex -intel bank2.hex -intel bank3.hex -intel -o border-router.hex -intel
rm -f home.ihx bank1.hex bank2.hex bank3.hex
cp border-router.hex border-router.sensinode
if [ -f border-router.ihx ] ; then \
cp border-router.ihx border-router-n601.ihx; fi
\nReport
===============
Code footprint:
Area Addr Size Decimal
---------------------------------- -------- -------- --------
HOME,CSEG,CONST,XINIT,GS* 00000000 00006AC7 = 27335. bytes (REL,CON,CODE)
BANK1 00018000 00007FFA = 32762. bytes (REL,CON,CODE)
BANK2 00028000 00007FF8 = 32760. bytes (REL,CON,CODE)
BANK3 00038000 000077FC = 30716. bytes (REL,CON,CODE)
Other memory:
Name Start End Size Max
---------------- -------- -------- -------- --------
PAGED EXT. RAM 0 256
EXTERNAL RAM 0xe000 0xf70a 5899 7936
ROM/EPROM/FLASH 0x0000 0x3f7fb 123573 131072
rm obj_sensinode/border-router.app.rel border-router.ihx
xzhang@labtop:~/work/contiki/contiki-sensinode/examples/sensinode/border-router$ ls -lh
total 1.1M
-rw-r--r-- 1 xzhang xzhang 2.4K 2013-06-21 09:38 border-router.banks
-rw-r--r-- 1 xzhang xzhang 4.7K 2013-05-29 18:34 border-router.c
-rw-r--r-- 1 xzhang xzhang 0 2013-06-21 09:38 border-router.cdb
-rw-r--r-- 1 xzhang xzhang 287K 2013-06-21 09:38 border-router.hex
-rw-r--r-- 1 xzhang xzhang 464 2013-06-21 09:38 border-router.lk
-rw-r--r-- 1 xzhang xzhang 67K 2013-06-21 09:38 border-router.map
-rw-r--r-- 1 xzhang xzhang 1.2K 2013-06-21 09:38 border-router.mem
-rw-r--r-- 1 xzhang xzhang 376K 2013-06-21 09:38 border-router-n601.ihx
-rw-r--r-- 1 xzhang xzhang 287K 2013-06-21 09:38 border-router.sensinode
-rw-r--r-- 1 xzhang xzhang 2.7K 2013-06-21 09:38 contiki-sensinode.lib
-rw-r--r-- 1 xzhang xzhang 381 2013-05-29 18:34 Makefile
drwxr-xr-x 2 xzhang xzhang 20K 2013-06-21 09:38 obj_sensinode
-rw-r--r-- 1 xzhang xzhang 2.1K 2013-05-29 18:34 project-conf.h
-rw-r--r-- 1 xzhang xzhang 556 2013-05-29 18:34 README
-rw-r--r-- 1 xzhang xzhang 3.6K 2013-05-29 18:34 slip-bridge.c