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):

    /*
>     CBOR_API CborError cbor_value_to_pretty_advance(FILE *out, CborValue
> *value);
>     CBOR_INLINE_API CborError cbor_value_to_pretty(FILE *out, const
> CborValue *value)
>     {
>         CborValue copy = *value;
>         return cbor_value_to_pretty_advance(out, &copy);
>     }
>
>     */
>
the compilation passed this error.

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?

Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170607/04083f14/attachment.html>

Reply via email to