[arm-gnu] Placing variable at absolute address in RAM

42Bastian list-bastian.schick at sciopta.com
Sat Apr 7 07:59:01 UTC 2012


Hi

> static struct etharp_entry arp_table[ARP_TABLE_SIZE] __attribute__ ((section(".sram1")));  /*this variable's name not appearing in mapfile*/

This one is locally used.

> unsigned char *hello  __attribute__ ((section(".sram1")));                                                        /*this variable's name appears in mapfile*/

This one is global.

Try removing the "static".

BTW: Instead of adding "__attribute__" to every static, you might do

 .sram1 : {
  *lwIP.o(.data)
 } > SRAM1 AT > FLASH

But you must place this before the common

	*.o(.data)

-- 
42Bastian
+
| http://www.sciopta.com
| Fastest direct message passing kernel.
| IEC61508 certified.
+



More information about the arm-gnu mailing list