This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/CC2530: cc2530

Part Number: CC2530

Tool/software: Linux

in Contiki3.0 I want build rpl-border-router in cc2530dk (path: Contiki3_0Test/release-3-0/examples/ipv6/rpl-border-router)

and I use the command to build =>  make TARGET=cc2530dk  border-router.hex
and I can't build success.

If i have any wrong ?  Why can't I build it success

error log :

../../../core/net/ipv6/uip-ds6-route.c:322: syntax error: token -> 'const' ; column 7
../../../core/net/ipv6/uip-ds6-route.c:323: error 20: Undefined identifier 'nexthop_lladdr'
../../../core/net/ipv6/uip-ds6-route.c:380: error 20: Undefined identifier 'nexthop_lladdr'
../../../core/net/ipv6/uip-ds6-route.c:380: warning 127: non-pointer type cast to generic pointer
from type 'int fixed'
to type 'struct __00010006 generic* fixed'
../../../core/net/ipv6/uip-ds6-route.c:389: error 20: Undefined identifier 'nexthop_lladdr'
../../../core/net/ipv6/uip-ds6-route.c:389: warning 127: non-pointer type cast to generic pointer
from type 'int fixed'
to type 'struct __00010006 generic* fixed'
make: *** [obj_cc2530dk/uip-ds6-route.rel] Error 1

  • Try to use InstantContiki 2.7 to build CC2530 Contiki.
  • I have try use contiki 2.7 build cc2530dk border-router in ipv6 example . staill fail
    The log:

    CC ../../../platform/cc2530dk/./viztool.c
    ../../../platform/cc2530dk/./viztool.c:284: warning 85: in function process_thread_viztool_process unreferenced function argument : 'data'
    CC ../../../cpu/cc253x/./soc.c
    CC ../../../cpu/cc253x/dev/clock.c
    CC ../../../cpu/cc253x/./stack.c
    CC ../../../cpu/cc253x/dev/uart0.c
    CC ../../../cpu/cc253x/dev/uart1.c
    CC ../../../cpu/cc253x/dev/uart-intr.c
    CC ../../../cpu/cc253x/dev/dma.c
    CC ../../../cpu/cc253x/dev/dma_intr.c
    CC ../../../cpu/cc253x/dev/cc2530-rf.c
    CC ../../../cpu/cc253x/dev/watchdog.c
    CC ../../../cpu/cc253x/./rtimer-arch.c
    CC ../../../cpu/cc253x/dev/port2-intr.c
    CC ../../../cpu/cc253x/dev/port2.c
    CC ../../../cpu/cc253x/usb/usb-arch.c
    ../../../cpu/cc253x/usb/usb-arch.c:779: warning 85: in function usb_arch_set_configuration unreferenced function argument : 'usb_configuration_value'
    CC ../../../cpu/cc253x/usb/common/usb-core.c
    ../../../cpu/cc253x/usb/common/usb-core.c:76: warning 196: pointer target lost const qualifier
    ../../../cpu/cc253x/usb/common/usb-core.c:554: warning 85: in function process_thread_usb_process unreferenced function argument : 'data'
    CC ../../../cpu/cc253x/usb/common/cdc-acm/cdc-acm.c
    ../../../cpu/cc253x/usb/common/cdc-acm/cdc-acm.c:34: warning 85: in function encapsulated_command unreferenced function argument : 'data'
    ../../../cpu/cc253x/usb/common/cdc-acm/cdc-acm.c:34: warning 85: in function encapsulated_command unreferenced function argument : 'length'
    CC ../../../cpu/cc253x/usb/cdc-acm-descriptors.c
    CC slip-bridge.c
    slip-bridge.c:76: warning 196: pointer target lost const qualifier
    slip-bridge.c:98: warning 112: function 'BAUD2UBR' implicit declaration
    slip-bridge.c:98: error 101: too many parameters
    slip-bridge.c:98: warning 112: function 'BAUD2UBR' implicit declaration
    slip-bridge.c:98: warning 112: function 'BAUD2UBR' implicit declaration
    slip-bridge.c:148: error 98: conflict with previous definition of 'putchar' for attribute 'type'
    from type 'void function ( char fixed) __reentrant __banked fixed'
    to type 'int function ( int fixed) __reentrant __banked fixed'
    make: *** [obj_cc2530dk/slip-bridge.rel] Error 1

    If example/ipv6/ can't build cc2530dk?
  • About above problem . If my sdcc version is wrong . My sdcc ver: SDCC : mcs51 3.1.1 #7100 (Jul 7 2016) (Linux)
  • I remember you can use pre-install SDCC in InstantContiki 2.7 to build CC2530 Contiki example. Don’t install any update or tool chain.