contiki-os / contiki

The official git repository for Contiki, the open source OS for the Internet of Things
http://www.contiki-os.org/
Other
3.72k stars 2.58k forks source link

Contiki OS Cooja - How to solve region `rom' overflowed error #2664

Open amirrezavzn opened 4 years ago

amirrezavzn commented 4 years ago

Hi all, I'm using sky motes to run rpl (udp_sender.c). i've added some codes to rpl files (i.g. rpl-icmp6.c , rpl.c and etc) and that was working ok but after adding a small function i got this error:

 * /usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: udp-sender.sky section `.data' will not fit in region `rom'
 * /usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: section .vectors loaded at [0000ffe0,0000ffff] overlaps section .data loaded at [0000ff80,0001007b]
 * /usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: region `rom' overflowed by 156 bytes
  1. i've removed many "printf"s but it doesn't worked! (just reduced the rom overflow space)
  2. i've also tried restarting the contiki OS !
  3. and when i try to add z1 mote or wismote instead of skymote, it gives this error : "too few argument to function 'uip_ds6_nbr_add'" I'll be so appreciated if anyone gives me the solution. thank you in advance