On quarta-feira, 7 de junho de 2017 12:04:45 PDT medo wrote:
> Hi,
> 
> I am trying to compile iotivity-constrained server/client examples in the
> port/contiki folder for Zolertia z1 platform. This platform is listed in
> the supported platforms. Has anyone successfully build any of the examples
> for contiki/z1 and if so what contiki/gcc version to use.
> 
> In my case I am using instant contiki3 virtual machine to compile the
> iotivity-constrained example for z1 platform. When compiling "make SERVER=1
> TARGET=z1", I get this error :
> 
>     ../../deps/tinycbor/src/cbor.h:467:49: error: unknown type name ?FILE?
> 
> >     ../../deps/tinycbor/src/cbor.h:468:48: error: unknown type name ?FILE?
> 
> when I commented these lines (not sure how much this will affect cbor
> functionality):

Just don't use the functions that require this. The main parser and encoder 
don't need this, only the "pretty" API and the conversion to JSON, which 
IoTivity Constrained does not use.

I can move those functions to a separate header to avoid the build error. Can 
you file a bug for me at https://github.com/01org/tinycbor ?

> Now I am getting the following indicating object code size is larger than
> z1 memory.
> 
> >     /usr/local/msp430/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/bin/
ld:
> > server_contiki.z1 section `.bss' will not fit in region `ram'
> > 
> >     /usr/local/msp430/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/bin/
ld:
> > region `ram' overflowed by 4058 bytes
> 
> Any feedback?

How much RAM does your device actually have? Maybe it is too small.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Reply via email to