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.

CC2530: CC2530 Firmware

Part Number: CC2530
Other Parts Discussed in Thread: CC2650, LAUNCHXL-CC2650

Dear all,

I have a "Zigbee CC2530 Wireless module with DRF1605H Antena" and I want to connect it to 6LBR. I have flashed the module with CC Debugger using a firmware named  "router-cc2530-diag.hex" but I am not sure if it is the right one. I was wondering if anyone could tell me which firmware should I flash the module with.

It will be greatly appreciated.

Sincerely,

Hosein Jahanshahi

  • I suppose you need to build and download slip radio into your CC2530 to make it work.

  • Thanks in advance for your reply, YiKai.

    Please tell me how I can make it possible as I am not a professional in this subject. I really need your help.

    Sincerely Yours,

  • I would suggest you to download InstantContiki 2.7 to do this.

  • Yes, of course. It has already been downloaded but I do not find any slip radio folder in contiki/examples/cc2530dk/ and the only folders are border-router & cc2531-USB-demo

    What should I do?

  • The slip radio is under contiki-2.7\examples\ipv6\slip-radio

  • Oh, I was searching in a wrong file, thank you.

    So what should I do next to build a .bin or .hex file in order to upload it to my module?

    I do "sudo make TARGET=cc25xx slip-radio.bin" but it fails with the error "The target platform "cc25xx" does not exist"

  • Try "make TARGET=cc2530dk slip-radio".

  • Thanks, but now I am getting an error that I can't find what made it happen.

    I have saved the result of the command "sudo make TARGET=cc2530dk slip-radio" in the following attached file named "error".

    Please help me with it.

    2804.error.txt
    $ sudo make TARGET=cc2530dk slip-radio
      CC        slip-radio.c
    slip-radio.c:237: warning 85: in function process_thread_slip_radio_process unreferenced function argument : 'ev'
    slip-radio.c:237: warning 85: in function process_thread_slip_radio_process unreferenced function argument : 'data'
    
    First Link
    ===============
      LD        slip-radio.ihx
    ?ASlink-Warning-Couldn't find library 'libsdcc.lib'
    ?ASlink-Warning-Couldn't find library 'mcs51'
    ?ASlink-Warning-Couldn't find library 'libsdcc'
    ?ASlink-Warning-Couldn't find library 'libint'
    ?ASlink-Warning-Couldn't find library 'liblong'
    ?ASlink-Warning-Couldn't find library 'libfloat'
    
    ?ASlink-Warning-Undefined Global '__mcs51_genRAMCLEAR' referenced by module 'contiki_main'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'slip_radio'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'nullsec'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'adc_sensor'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'uart_intr'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'watchdog'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'leds'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'etimer'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'button_sensor'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'rtimer'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'slip_net'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'sensors'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'uip6'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'uip_ds6'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'packetbuf'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'debug'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'netstack'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'energest'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'timer'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'cc2530_rf'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'process'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'packetutils'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'autostart'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'queuebuf'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'viztool'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'putchar'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'uip_ds6_route'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'memb'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'leds_arch'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'no_framer'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'clock'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'rtimer_arch'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'cmd'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'slip'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'tcpip'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'stimer'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'uart0'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'nbr_table'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'list'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'uip_nd6'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'random'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'slip_arch'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'linkaddr'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'uip_ds6_nbr'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'link_stats'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'uip_debug'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'uip_udp_packet'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'nullmac'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'ctimer'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'soc'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'uip_icmp6'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_ret' referenced by module 'frame802154'
    
    ?ASlink-Warning-Undefined Global '__mcs51_genXINIT' referenced by module 'contiki_main'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'slip_radio'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'etimer'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'rtimer'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'sensors'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'uip6'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'uip_ds6'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'packetbuf'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'timer'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'cc2530_rf'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'process'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'packetutils'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'queuebuf'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'viztool'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'uip_ds6_route'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'memb'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'slip'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'tcpip'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'stimer'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'nbr_table'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'list'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'uip_nd6'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'uip_ds6_nbr'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'link_stats'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'uip_udp_packet'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'ctimer'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'uip_icmp6'
    
    ?ASlink-Warning-Undefined Global '__gptrput' referenced by module 'frame802154'
    
    ?ASlink-Warning-Undefined Global '_memmove' referenced by module 'uip6'
    
    ?ASlink-Warning-Undefined Global '_memmove' referenced by module 'uip_udp_packet'
    
    ?ASlink-Warning-Undefined Global '_memmove' referenced by module 'uip_icmp6'
    
    ?ASlink-Warning-Undefined Global '__mulint' referenced by module 'sensors'
    
    ?ASlink-Warning-Undefined Global '__mulint' referenced by module 'uip_ds6'
    
    ?ASlink-Warning-Undefined Global '__mulint' referenced by module 'memb'
    
    ?ASlink-Warning-Undefined Global '__mulint' referenced by module 'nbr_table'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'contiki_main'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'slip_radio'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'nullsec'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'uart_intr'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'leds'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'etimer'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'button_sensor'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'rtimer'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'slip_net'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'sensors'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'uip6'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'uip_ds6'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'packetbuf'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'debug'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'netstack'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'timer'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'cc2530_rf'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'process'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'packetutils'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'autostart'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'queuebuf'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'viztool'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'putchar'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'uip_ds6_route'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'memb'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'no_framer'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'clock'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'rtimer_arch'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'cmd'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'slip'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'tcpip'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'stimer'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'nbr_table'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'list'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'uip_nd6'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'slip_arch'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'linkaddr'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'uip_ds6_nbr'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'link_stats'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'uip_debug'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'uip_udp_packet'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'nullmac'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'ctimer'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'uip_icmp6'
    
    ?ASlink-Warning-Undefined Global '__sdcc_banked_call' referenced by module 'frame802154'
    
    ?ASlink-Warning-Undefined Global '_memcmp' referenced by module 'uip6'
    
    ?ASlink-Warning-Undefined Global '_memcmp' referenced by module 'uip_ds6'
    
    ?ASlink-Warning-Undefined Global '_memcmp' referenced by module 'uip_ds6_route'
    
    ?ASlink-Warning-Undefined Global '_memcmp' referenced by module 'uip_nd6'
    
    ?ASlink-Warning-Undefined Global '_memcmp' referenced by module 'linkaddr'
    
    ?ASlink-Warning-Undefined Global '_memcmp' referenced by module 'uip_ds6_nbr'
    
    ?ASlink-Warning-Undefined Global '__mcs51_genXRAMCLEAR' referenced by module 'contiki_main'
    
    ?ASlink-Warning-Undefined Global '__modulong' referenced by module 'uip_ds6'
    
    ?ASlink-Warning-Undefined Global '__divslong' referenced by module 'link_stats'
    
    ?ASlink-Warning-Undefined Global '__divulong' referenced by module 'tcpip'
    
    ?ASlink-Warning-Undefined Global '__divulong' referenced by module 'uip_ds6_nbr'
    
    ?ASlink-Warning-Undefined Global '__divulong' referenced by module 'link_stats'
    
    ?ASlink-Warning-Undefined Global '_strncmp' referenced by module 'sensors'
    
    ?ASlink-Warning-Undefined Global '_memset' referenced by module 'uip6'
    
    ?ASlink-Warning-Undefined Global '_memset' referenced by module 'uip_ds6'
    
    ?ASlink-Warning-Undefined Global '_memset' referenced by module 'packetbuf'
    
    ?ASlink-Warning-Undefined Global '_memset' referenced by module 'viztool'
    
    ?ASlink-Warning-Undefined Global '_memset' referenced by module 'uip_ds6_route'
    
    ?ASlink-Warning-Undefined Global '_memset' referenced by module 'memb'
    
    ?ASlink-Warning-Undefined Global '_memset' referenced by module 'nbr_table'
    
    ?ASlink-Warning-Undefined Global '_memset' referenced by module 'uip_nd6'
    
    ?ASlink-Warning-Undefined Global '_memset' referenced by module 'frame802154'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'contiki_main'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'slip_radio'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'uip6'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'uip_ds6'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'packetbuf'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'viztool'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'uip_ds6_route'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'nbr_table'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'uip_nd6'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'linkaddr'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'uip_ds6_nbr'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'uip_udp_packet'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'uip_icmp6'
    
    ?ASlink-Warning-Undefined Global '_memcpy' referenced by module 'frame802154'
    
    ?ASlink-Warning-Undefined Global '_contikimac_driver' referenced by module 'contiki_main'
    
    ?ASlink-Warning-Undefined Global '_contikimac_driver' referenced by module 'slip_radio'
    
    ?ASlink-Warning-Undefined Global '_contikimac_driver' referenced by module 'netstack'
    
    ?ASlink-Warning-Undefined Global '_contikimac_driver' referenced by module 'nullmac'
    
    ?ASlink-Warning-Undefined Global '_printf' referenced by module 'slip_radio'
    
    ?ASlink-Warning-Undefined Global '_printf' referenced by module 'slip_net'
    
    ?ASlink-Warning-Undefined Global '_strlen' referenced by module 'sensors'
    
    ?ASlink-Warning-Undefined Global '___gptr_cmp' referenced by module 'etimer'
    
    ?ASlink-Warning-Undefined Global '___gptr_cmp' referenced by module 'sensors'
    
    ?ASlink-Warning-Undefined Global '___gptr_cmp' referenced by module 'uip6'
    
    ?ASlink-Warning-Undefined Global '___gptr_cmp' referenced by module 'uip_ds6'
    
    ?ASlink-Warning-Undefined Global '___gptr_cmp' referenced by module 'process'
    
    ?ASlink-Warning-Undefined Global '___gptr_cmp' referenced by module 'uip_ds6_route'
    
    ?ASlink-Warning-Undefined Global '___gptr_cmp' referenced by module 'memb'
    
    ?ASlink-Warning-Undefined Global '___gptr_cmp' referenced by module 'tcpip'
    
    ?ASlink-Warning-Undefined Global '___gptr_cmp' referenced by module 'list'
    
    ?ASlink-Warning-Undefined Global '___gptr_cmp' referenced by module 'uip_nd6'
    
    ?ASlink-Warning-Undefined Global '___gptr_cmp' referenced by module 'ctimer'
    
    ?ASlink-Warning-Undefined Global '__sdcc_gsinit_startup' referenced by module 'contiki_main'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'slip_radio'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'etimer'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'rtimer'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'slip_net'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'sensors'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'uip6'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'uip_ds6'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'packetbuf'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'debug'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'timer'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'cc2530_rf'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'process'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'packetutils'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'autostart'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'queuebuf'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'viztool'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'uip_ds6_route'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'memb'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'no_framer'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'slip'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'tcpip'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'stimer'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'nbr_table'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'list'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'uip_nd6'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'uip_ds6_nbr'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'link_stats'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'uip_debug'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'uip_udp_packet'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'ctimer'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'uip_icmp6'
    
    ?ASlink-Warning-Undefined Global '__gptrget' referenced by module 'frame802154'
    
    ?ASlink-Warning-Undefined Global '__mullong' referenced by module 'link_stats'
    
    ?ASlink-Warning-Undefined Global '__modsint' referenced by module 'process'
    
    ?ASlink-Warning-Undefined Global '__divsint' referenced by module 'debug'
    
    ?ASlink-Warning-Undefined Global '__divsint' referenced by module 'cc2530_rf'
    
    ?ASlink-Warning-Undefined Global '__divsint' referenced by module 'nbr_table'
    
    ?ASlink-Warning-Undefined Global '__divsint' referenced by module 'link_stats'
    make: *** [../../../cpu/cc253x/Makefile.customrules-cc253x:40: slip-radio.ihx] Error 1
    rm slip-radio.ihx obj_cc2530dk/slip-radio.app.rel
    

  • I cannot help much if it generates build error since Contiki CC2530 has been deprecated for a while. I would suggest you to use CC2650 instead of CC2530 as slip radio.

  • Thanks in advance YiKai, I really appreciate your help.

    Sure, I will consider it in future works.

    Sincerely Yours,

  • Sorry to bother you, just one question.

    Working on the command "make TARGET=cc2530dk slip-radio", I have got another error which can be seen in the following picture. Do you have any idea how I can fix it?

  • I haven't test Contiki CC2530 for a long time so I cannot help.

  • Sure, I see. Thanks for your time.

  • Sorry YiKair but in order to connect my CC2530 UART module to 6lbr, what pins should be connected to my Raspberry Pi? Are the Tx and Rx pins enough or there are other pins that have to be connected too?

    Also, after uploading the proper firmware to my module, do you know what I should do next to connect my module to 6lbr? Do I have to just add the following line in my 6lbr.conf file or is there any other things that I have to do?

    #DEV_RADIO=/dev/serial0
    #BAUDRATE=38400

    I sincerely appreciate any help.

  • You also need to connect GND pin and make sure CC2530 is well powered.

  • Oh, I see. Thanks in advance.

    How about the other question? After uploading the proper firmware to my module, do you know what I should do next to connect my module to 6lbr? Do I have to just add the following line in my 6lbr.conf file or are there any other things that I have to do?

    #DEV_RADIO=/dev/serial0
    #BAUDRATE=38400

  • Yes, you only need to set DEV_RADIO and BAUDRATE according to your device.

  • Thanks in advance, I really appreciate it.

  • Dear YiKai,

    I have been finally able to do "make TARGET=cc2530dk slip-radio" in the directory /contiki/examples/ipv6/slip-radio and flashed my CC2530 UART Module with the hex file.

    After that, I have connected the module to my Raspberry Pi and added the following lines to my 6lbr.conf file:

    DEV_RADIO=/dev/serial0

    BAUDRATE=115200

    Then I did "sudo systemctl 6lbr restart" but I am not able to load bbbb::100 in the browser. In fact, I have also enabled UART pins on Raspberry pi and tested a loopback on the module which was successful. (chrome). The 6lbr.log file shows that it gets stuck in the "Fetching MAC Address" loop. 

    I have also tried DEV_RADIO=/dev/ttyS0 but it did not work too

    Please, do you have any advice that I can follow?

  • Connect your slip radio to PC and check if it output some string like “slip radio ...” when you reset slip radio.

  • Thanks in advance for your concern and answer.



    But how should I connect it to my PC? Using CC Debugger?

    And also, where should I see the output you said?

  • I suppose you use serial-to-USB to connect CC2530 to your 6lbr host platform so you can connect it to PC. Then, you can use console tool such as Teraterm to open the COM port to check serial output from CC2530 slip radio.

  • Actually, I do not have a serial-to-USB connector. I just use the pins on the module and jumper cables to connect it to Raspberry Pi or CC Debugger.

    Is there any other way to see the output you mentioned on Raspberry Pi?

  • You can try to use "cat < /dev/ttyS0" to forward ttyS0 incoming message to your Rapberry Pi terminal and then reset your CC2530 to see if you can get "slip radio..."

  • I attach my result using CC2650 and raspberry Pi for your reference.

  • I sincerely appreciate your kindness and I thank you for your time, YiKai.

    I followed your instruction but I am not able to see anything after I reset the module:

    What do you think might be the problem?

  • If you connect CC2530 UART pins correctly to Raspberry Pi ttyS0 pins but cannot see the "slip radio..." messages, there must be something wrong on your CC2530 slip radio.

  • I see, Thanks in advance, YiKai.

  • Dear YiKai,

    My apologies to bother you but I realized that when I connect the Vcc and GND pins of my module () alongside connecting UART pins (Tx and Rx), the loopback test I run fails to receive data. Is it anything that I should be concerned about?

  • loopback test? What do you run on CC2530 to do such test?

  • Actually, just a simple Python program to test whether the UART pins work well or not. Here is the program:

    from __future__ import print_function
    import serial
    
    test_string = "Testing 1 2 3 4".encode('utf-8')
    
    port_list = ["/dev/serial0", "/dev/ttyS0"]
    
    for port in port_list:
    
        try:
            serialPort = serial.Serial(port, 115200, timeout = 2)
            serialPort.flushOutput()
            serialPort.flushInput() # Syntax may change in new version of python3-serial
            print("Opened port", port, "for testing:")
            bytes_sent = serialPort.write(test_string)
            print ("Sent", bytes_sent, "bytes")
            loopback = serialPort.read(bytes_sent)
    
            if loopback == test_string:
                print ("Received", len(loopback), "valid bytes, Serial port", port, "working \n")
            else:
                print ("Received incorrect data", loopback, "over Serial port", port, "loopback\n")
            serialPort.close()
        except:
            #except IOError:
            print ("Failed at", port, "\n")
    

  • If you test this with CC2530, what do you run on CC2530?

  • In fact, I just try this program to test if the UART works fine and that the module is connected correctly.

    I also have an SHT15 sensor that measures temperature and humidity. My project is to connect the mentioned module to 6LBR and then connect the SHT sensor to CC2530 so that I would be able to receive its data on my laptop. However, I got still stuck on connecting my module to 6LBR.

  • I don’t know how to help you on CC2530 in this way. To save your time, J would suggest you to use LAUNCHXL-CC2650 instead of Cc2530 to test this.

  • Thanks in advance for your recommendation but actually I am not allowed to change my equipment or replace them. 

    I will in fact try it in future works.

  • Sorry that I cannot help you further.

  • Please, I do appreciate all your responses and helps, they were really helpful.


    Sincerely,

  • My apologies YiKai,

    May you please make CC2530dk slip radio using your Contiki and send it to me? I would really appreciate it if you would please do this for me.

    Sincerely,

  • Sorry, I cannot help further on this.

  • No no, it's fine. Thank you anyway.