This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problems with adding openthread to gcc BLE project

Hi,

I'm trying to add Openthread support to my project, which is based on ATT_MTU_Throughput example. I followed the tutorial in infocenter, but I still have some problems in linking stage:

image description

Thanks from advance for your help.

Parents
  • Hi,

    The first problem of multiple defines of RTC2_IRQHandler, is due to both OpenThread stack and ATT_MTU_throughput example using RTC2. ATT_MTU example use RTC2 for implementing a counter, and this counter needs to be implemented using other method/resources if you want to combine the OpenThread stack with this example. RTC0 and RTC1 cannot be used either, as these are used by the softdevice and app_timer respectively.

    The other errors related to __flash_data_start/__flash_data_end could be caused by wrong linker script used for compilation. What Makefile/linker script do you use for your project? The default linker script for Thread/BLE multiprotocol examples are located in:

    [THREAD_SDK_ROOT]/external/openthread/linker_scripts/openthread_nrf52840_multiprotocol.ld
    

    Best regards,

    Jørgen

  • I had to do it once again and now I have one another problem with UART, When I leave as it is i get

    /home/rolu/repos/openthread/examples/../examples/platforms/nrf52840/uart.c:243: multiple definition of `UARTE0_UART0_IRQHandler' _build/nrf52840_xxaa_nrf_drv_uart.c.o:C:\Users\Dell\Documents\nRF5_SDK_for_Thread_v0.10.0_e1c3d11\examples\multiprotocol\experimental\ble_app_att_mtu_throughput_rssi\pca10056\s140\armgcc/../../../../../../../components/drivers_nrf/uart/nrf_drv_uart.c:959: first defined here`
    

    and when I change it to

    #define APP_UART_DRIVER_INSTANCE 1
    #define UART0_ENABLED            0
    #define UART1_ENABLED            1
    

    i get

    ../../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:82:19: error: 'UART0_CONFIG_USE_EASY_DMA' undeclared here (not in a function)
             (CONCAT_3(UART, id, _CONFIG_USE_EASY_DMA) == 1 ? \
    

    how should I configure UART?

Reply
  • I had to do it once again and now I have one another problem with UART, When I leave as it is i get

    /home/rolu/repos/openthread/examples/../examples/platforms/nrf52840/uart.c:243: multiple definition of `UARTE0_UART0_IRQHandler' _build/nrf52840_xxaa_nrf_drv_uart.c.o:C:\Users\Dell\Documents\nRF5_SDK_for_Thread_v0.10.0_e1c3d11\examples\multiprotocol\experimental\ble_app_att_mtu_throughput_rssi\pca10056\s140\armgcc/../../../../../../../components/drivers_nrf/uart/nrf_drv_uart.c:959: first defined here`
    

    and when I change it to

    #define APP_UART_DRIVER_INSTANCE 1
    #define UART0_ENABLED            0
    #define UART1_ENABLED            1
    

    i get

    ../../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:82:19: error: 'UART0_CONFIG_USE_EASY_DMA' undeclared here (not in a function)
             (CONCAT_3(UART, id, _CONFIG_USE_EASY_DMA) == 1 ? \
    

    how should I configure UART?

Children
No Data
Related