Then compile with make command, however compilation failed with below output:
CC ../../../cpu/cc2538/./startup-gcc.c
CC mqtt-demo.c
LD mqtt-demo.elf
contiki-cc2538dk.a(sicslowpan.o): In function output': sicslowpan.c:(.text.output+0x50c): undefined reference tononcoresec_framer'
contiki-cc2538dk.a(nullrdc.o): In function send_one_packet': nullrdc.c:(.text.send_one_packet+0x110): undefined reference tononcoresec_framer'
contiki-cc2538dk.a(nullrdc.o): In function packet_input': nullrdc.c:(.text.packet_input+0x48): undefined reference tononcoresec_framer'
collect2: error: ld returned 1 exit status
make: *** [mqtt-demo.elf] Error 1
rm mqtt-demo.co obj_cc2538dk/startup-gcc.o
Hello,
May I have your help with this issue. I add following line to examples/cc2538dk/mqtt-demo/project-conf.h
/ nullrdc_driver: never switch the radio off /
undef NETSTACK_CONF_RDC
define NETSTACK_CONF_RDC nullrdc_driver
/ Enable LLSEC /
undef LLSEC802154_CONF_ENABLED
define LLSEC802154_CONF_ENABLED 1
undef NETSTACK_CONF_FRAMER
define NETSTACK_CONF_FRAMER noncoresec_framer
undef NETSTACK_CONF_LLSEC
define NETSTACK_CONF_LLSEC noncoresec_driver
undef NONCORESEC_CONF_SEC_LVL
define NONCORESEC_CONF_SEC_LVL 0x07
define NONCORESEC_CONF_KEY { 0x00 , 0x01 , 0x02 , 0x03 , \
Then compile with make command, however compilation failed with below output: CC ../../../cpu/cc2538/./startup-gcc.c CC mqtt-demo.c LD mqtt-demo.elf contiki-cc2538dk.a(sicslowpan.o): In function
output': sicslowpan.c:(.text.output+0x50c): undefined reference to
noncoresec_framer' contiki-cc2538dk.a(nullrdc.o): In functionsend_one_packet': nullrdc.c:(.text.send_one_packet+0x110): undefined reference to
noncoresec_framer' contiki-cc2538dk.a(nullrdc.o): In functionpacket_input': nullrdc.c:(.text.packet_input+0x48): undefined reference to
noncoresec_framer' collect2: error: ld returned 1 exit status make: *** [mqtt-demo.elf] Error 1 rm mqtt-demo.co obj_cc2538dk/startup-gcc.oThanks,