Fabio Giovagnini | 8 May 2012 09:57

Re: running contiki in 1k of RAM

I think 1K is really few.
I tried to build on 2k and I had troubles.

Regards

Il giorno mar, 08/05/2012 alle 08.50 +0100, Andrew Baxter ha scritto:
> Hi,
> 
> Can anyone tell me if it's possible to run contiki in as little as 1k of 
> RAM?
> 
> I've been working on a port for the amb8423 (an rf2500 clone with a 
> cc1100 radio). This uses an msp430f2274, which has 32k of Flash and 1k 
> of ram. So far I've got all the local stuff working (sensors, button, 
> clock, etc), and also made a start on the radio code by writing the SPI 
> macros which will hook it up to the cc1100 code I'm using (from the 
> sensilab wsn430 port).
> 
> At this point, it's using 738 bytes of RAM  (as far as I can see from 
> the memory map printed by 'nm').
> 
> When I include the cc1100_init function from cc1100.c, the ram usage 
> jumps up: 'ld' fails with this error:
> 
> /local/opt/msp430tools/bin/../lib/gcc/msp430/4.6.1/../../../../msp430/bin/ld: 
> amb8423-radio.amb8423 section `.bss' will not fit in region `ram'
> /local/opt/msp430tools/bin/../lib/gcc/msp430/4.6.1/../../../../msp430/bin/ld: 
> region `ram' overflowed by 3782 bytes
> collect2: ld returned 1 exit status
> 
> Can anyone help with this?
> 
> What we are hoping for is to be able to run contiki on the boards we are 
> using, which are based on the amb8423, with RIME networking and enough 
> RAM for a simple data collection program. If this is really not likely 
> to be possible, I guess we'll have to look for another solution, but it 
> would be good to know if anyone has any experience running contiki in 
> such small amounts of ram.
> 
> Thanks for any help,
> 
> andrew baxter
> 
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Contiki-developers mailing list
> Contiki-developers@...
> https://lists.sourceforge.net/lists/listinfo/contiki-developers

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Gmane