I want to add some third party libraries to Contiki, but at the moment I can't. So I wanted to just test with a simple library.
I wrote two files hello.c hello.h, in hello.c I have:
printf(" Hello everbody, library call\n");
In hello.h I have:
extern void print_hello();
I created hello.o using the command:
msp430-gcc -mmcu=msp430f1611 hello.c -o hello.o
I created an archive file:
ar -cvq libhello.a hello.o
I move to contiki, i write a simple program that calls hello.h to execute a function.I try to include hello.a using PROJECT LIBRARIES variable in the makefile, when i compile i get this :
Hello_lib.sky section .vectors' will not fit in region'vectors'
...
region vectors overflowed by 32 Bytes
Can someone please explain me what is the problem (I am new to the field) ?
And how to correct it if possible? ( What options should i specify for msp430-gcc) Thanks.