SDK - nRF5_SDK_for_Thread_and_Zigbee_2.0.0_29775ac
Segger embedeed studio
Linux Ubuntu 18.04
I try use the thread_simple_coap_client example from SDK. I need to use functions from channel monitoring. Then I use instructions in documentation to building the lastest openthread library.
Next I try build example in segger studio. This is output errors:
Building 'thread_simple_coap_client_pca10056' from solution 'thread_simple_coap_client_pca10056' in configuration 'Release'
Assembling 'thumb_crt0.s'
Compiling 'nrf_log_backend_serial.c'
Compiling 'nrf_log_backend_rtt.c'
Compiling 'nrf_log_frontend.c'
Compiling 'nrf_log_default_backends.c'
Compiling 'nrf_log_str_formatter.c'
Compiling 'boards.c'
Compiling 'app_button.c'
Compiling 'app_error.c'
Compiling 'app_error_handler_gcc.c'
Compiling 'app_scheduler.c'
Compiling 'app_error_weak.c'
Compiling 'app_util_platform.c'
Compiling 'app_timer.c'
Compiling 'assert.c'
Compiling 'nrf_assert.c'
Compiling 'nrf_atomic.c'
Compiling 'nrf_balloc.c'
Compiling 'nrf_fprintf.c'
Compiling 'nrf_fprintf_format.c'
Compiling 'nrf_memobj.c'
Compiling 'nrf_ringbuf.c'
Compiling 'nrf_strerror.c'
Compiling 'nrf_drv_clock.c'
Compiling 'nrf_nvmc.c'
Compiling 'nrf_nvic.c'
Compiling 'nrf_soc.c'
Compiling 'nrfx_clock.c'
Compiling 'nrfx_gpiote.c'
Compiling 'nrfx_power_clock.c'
Compiling 'bsp.c'
Compiling 'bsp_thread.c'
Compiling 'main.c'
Compiling 'SEGGER_RTT_Syscalls_SES.c'
Compiling 'SEGGER_RTT.c'
Compiling 'SEGGER_RTT_printf.c'
Assembling 'ses_startup_nrf_common.s'
Assembling 'ses_startup_nrf52840.s'
Compiling 'system_nrf52840.c'
Compiling 'thread_coap_utils.c'
initialization from incompatible pointer type [-Wincompatible-pointer-types]
(near initialization for ‘m_coap_resources.provisioning_resource.mHandler’)
initialization from incompatible pointer type [-Wincompatible-pointer-types]
(near initialization for ‘m_coap_resources.light_resource.mHandler’)
In function ?thread_coap_utils_init?:
passing argument 2 of ‘otCoapSetDefaultHandler’ from incompatible pointer type [-Wincompatible-pointer-types]
thread_coap_utils.h
thread_coap_utils.c
expected ‘otCoapRequestHandler {aka void (*)(void *, struct otMessage *, const struct otMessageInfo *)}’ but argument is of type ‘void (*)(void *, otMessage *, otMessage *, const otMessageInfo *) {aka void (*)(void *, struct otMessage *, struct otMessage *, const struct otMessageInfo *)}’
In function ?thread_coap_utils_deinit?:
passing argument 2 of ‘otCoapSetDefaultHandler’ from incompatible pointer type [-Wincompatible-pointer-types]
thread_coap_utils.h
thread_coap_utils.c
expected ‘otCoapRequestHandler {aka void (*)(void *, struct otMessage *, const struct otMessageInfo *)}’ but argument is of type ‘void (*)(void *, otMessage *, otMessage *, const otMessageInfo *) {aka void (*)(void *, struct otMessage *, struct otMessage *, const struct otMessageInfo *)}’
In function ?thread_coap_utils_unicast_light_request_send?:
passing argument 2 of ‘otCoapNewMessage’ from incompatible pointer type [-Wincompatible-pointer-types]
thread_coap_utils.h
thread_coap_utils.c
expected ‘const otMessageSettings * {aka const struct otMessageSettings *}’ but argument is of type ‘otMessage * {aka struct otMessage *}’
In function ?thread_coap_utils_multicast_light_request_send?:
passing argument 2 of ‘otCoapNewMessage’ from incompatible pointer type [-Wincompatible-pointer-types]
thread_coap_utils.h
thread_coap_utils.c
expected ‘const otMessageSettings * {aka const struct otMessageSettings *}’ but argument is of type ‘otMessage * {aka struct otMessage *}’
In function ?thread_coap_utils_provisioning_request_send?:
passing argument 2 of ‘otCoapNewMessage’ from incompatible pointer type [-Wincompatible-pointer-types]
thread_coap_utils.h
thread_coap_utils.c
expected ‘const otMessageSettings * {aka const struct otMessageSettings *}’ but argument is of type ‘otMessage * {aka struct otMessage *}’
passing argument 4 of ‘otCoapSendRequest’ from incompatible pointer type [-Wincompatible-pointer-types]
thread_coap_utils.h
thread_coap_utils.c
expected ‘otCoapResponseHandler {aka void (*)(void *, struct otMessage *, const struct otMessageInfo *, enum otError)}’ but argument is of type ‘void (*)(void *, otMessage *, otMessage *, const otMessageInfo *, otError) {aka void (*)(void *, struct otMessage *, struct otMessage *, const struct otMessageInfo *, enum otError)}’
In function ?cloud_data_send?:
passing argument 2 of ‘otCoapNewMessage’ from incompatible pointer type [-Wincompatible-pointer-types]
thread_coap_utils.h
thread_coap_utils.c
expected ‘const otMessageSettings * {aka const struct otMessageSettings *}’ but argument is of type ‘otMessage * {aka struct otMessage *}’
In function ?thread_coap_utils_provisioning_response_send?:
passing argument 2 of ‘otCoapNewMessage’ from incompatible pointer type [-Wincompatible-pointer-types]
thread_coap_utils.h
thread_coap_utils.c
expected ‘const otMessageSettings * {aka const struct otMessageSettings *}’ but argument is of type ‘otMessage * {aka struct otMessage *}’
In function ?thread_coap_utils_light_response_send?:
passing argument 2 of ‘otCoapNewMessage’ from incompatible pointer type [-Wincompatible-pointer-types]
thread_coap_utils.h
thread_coap_utils.c
expected ‘const otMessageSettings * {aka const struct otMessageSettings *}’ but argument is of type ‘otMessage * {aka struct otMessage *}’
Compiling 'thread_utils.c'
Generating linker script 'thread_simple_coap_client_pca10056.ld'
Linking thread_simple_coap_client_pca10056.elf
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-alarm.o): In function `HandleCompareMatch':
undefined reference to `nrf_802154_lp_timer_fired'
undefined reference to `nrf_802154_lp_timer_synchronized'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioSetPanId':
undefined reference to `nrf_802154_pan_id_set'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioSetExtendedAddress':
undefined reference to `nrf_802154_extended_address_set'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioSetShortAddress':
undefined reference to `nrf_802154_short_address_set'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `nrf5RadioInit':
undefined reference to `nrf_802154_init'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `nrf5RadioDeinit':
undefined reference to `nrf_802154_sleep'
undefined reference to `nrf_802154_deinit'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioSleep':
undefined reference to `nrf_802154_sleep'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioReceive':
undefined reference to `nrf_802154_channel_set'
undefined reference to `nrf_802154_tx_power_set'
undefined reference to `nrf_802154_receive'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioTransmit':
undefined reference to `nrf_802154_channel_set'
undefined reference to `nrf_802154_transmit_csma_ca_raw'
undefined reference to `nrf_802154_transmit_raw'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioGetRssi':
undefined reference to `nrf_802154_rssi_last_get'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioGetPromiscuous':
undefined reference to `nrf_802154_promiscuous_get'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioSetPromiscuous':
undefined reference to `nrf_802154_promiscuous_set'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioEnableSrcMatch':
undefined reference to `nrf_802154_auto_pending_bit_set'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioAddSrcMatchShortEntry':
undefined reference to `nrf_802154_pending_bit_for_addr_set'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioAddSrcMatchExtEntry':
undefined reference to `nrf_802154_pending_bit_for_addr_set'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioClearSrcMatchShortEntry':
undefined reference to `nrf_802154_pending_bit_for_addr_clear'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioClearSrcMatchExtEntry':
undefined reference to `nrf_802154_pending_bit_for_addr_clear'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioClearSrcMatchShortEntries':
undefined reference to `nrf_802154_pending_bit_for_addr_reset'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioClearSrcMatchExtEntries':
undefined reference to `nrf_802154_pending_bit_for_addr_reset'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioEnergyScan':
undefined reference to `nrf_802154_channel_set'
undefined reference to `nrf_802154_energy_detection'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `otPlatRadioSetTransmitPower':
undefined reference to `nrf_802154_tx_power_set'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-radio.o): In function `nrf5RadioProcess':
undefined reference to `nrf_802154_buffer_free_raw'
undefined reference to `nrf_802154_buffer_free_raw'
undefined reference to `nrf_802154_sleep'
undefined reference to `nrf_802154_channel_set'
undefined reference to `nrf_802154_energy_detection'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-diag.o): In function `startCarrierTransmision':
undefined reference to `nrf_802154_channel_set'
undefined reference to `nrf_802154_tx_power_set'
undefined reference to `nrf_802154_continuous_carrier'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-diag.o): In function `processCcaThreshold':
undefined reference to `nrf_802154_cca_cfg_get'
undefined reference to `nrf_802154_cca_cfg_set'
../../../../../../external/openthread/lib/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-temp.o): In function `nrf5TempProcess':
undefined reference to `nrf_802154_temperature_changed'
Build failed