This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Try to start openthread daemon for the RCP design

Hi, I tried the fourth step of this guide https://openthread.io/codelabs/openthread-hardware#3, but if I start the OpenThread daemon, I got this output that is not the same as from the guide.

Is the problem that I used the 

script/build nrf52840 USB_trans -DOT_THREAD_VERSION=1.2

from this guide: https://openthread.io/codelabs/openthread-border-router#1 ?

If it's normal, can you explain why it's different?

In either way, Thanks in Advance!

Parents
  • This is not really a guide that we have written, or maintain, but you say that you used the -DOT_THREAD_VERSION=1.2:

    script/build nrf52840 USB_trans -DOT_THREAD_VERSION=1.2

    From your second link, right? Did it say anything after this? Did it build successfully? After you programmed it using nrfjprog, did you change the USB to the USB peripheral port on the DK? 

    Best regards,

    Edvin

Reply
  • This is not really a guide that we have written, or maintain, but you say that you used the -DOT_THREAD_VERSION=1.2:

    script/build nrf52840 USB_trans -DOT_THREAD_VERSION=1.2

    From your second link, right? Did it say anything after this? Did it build successfully? After you programmed it using nrfjprog, did you change the USB to the USB peripheral port on the DK? 

    Best regards,

    Edvin

Children
  • Thanks for the fast response, and sorry I'm a little bit a noob. But the feedback I got is this:

    pi@raspberrypi:~/ot-nrf528xx $ script/build nrf52840 USB_trans -DOT_THREAD_VERSION=1.2
    + OT_CMAKE_NINJA_TARGET=
    + NRF_PLATFORMS=(nrf52811 nrf52833 nrf52840)
    + readonly NRF_PLATFORMS
    + NRF_BUILD_TYPES=(UART_trans USB_trans SPI_trans_NCP soft_crypto soft_crypto_threading)
    + readonly NRF_BUILD_TYPES
    ++ pwd
    + readonly OT_SRCDIR=/home/pi/ot-nrf528xx
    + OT_SRCDIR=/home/pi/ot-nrf528xx
    + OT_OPTIONS=("-DCMAKE_BUILD_TYPE=MinSizeRel" "-DOT_PLATFORM=external" "-DOT_SLAAC=ON")
    + readonly OT_OPTIONS
    + main nrf52840 USB_trans -DOT_THREAD_VERSION=1.2
    + [[ 3 == 0 ]]
    + local platform=nrf52840
    + echo nrf52811 nrf52833 nrf52840
    + grep -wq nrf52840
    + [[ 3 == 1 ]]
    + local nrf_build_type=USB_trans
    + echo UART_trans USB_trans SPI_trans_NCP soft_crypto soft_crypto_threading
    + grep -wq USB_trans
    + shift
    + shift
    + local_options=()
    + local local_options
    + options=("${OT_OPTIONS[@]}")
    + local options
    + case "${platform}" in
    + local_options+=("-DCMAKE_TOOLCHAIN_FILE=src/${platform}/arm-none-eabi.cmake")
    + case "${nrf_build_type}" in
    + options+=("${local_options[@]}" "-DOT_USB=ON" "-DOT_EXTERNAL_MBEDTLS=nordicsemi-mbedtls")
    + options+=("$@")
    + build -DNRF_PLATFORM=nrf52840 -DCMAKE_BUILD_TYPE=MinSizeRel -DOT_PLATFORM=external -DOT_SLAAC=ON -DCMAKE_TOOLCHAIN_FILE=src/nrf52840/arm-none-eabi.cmake -DOT_USB=ON -DOT_EXTERNAL_MBEDTLS=nordicsemi-mbedtls -DOT_THREAD_VERSION=1.2
    + local builddir=build
    + mkdir -p build
    + cd build
    + cmake -GNinja -DOT_COMPILE_WARNING_AS_ERROR=ON -DNRF_PLATFORM=nrf52840 -DCMAKE_BUILD_TYPE=MinSizeRel -DOT_PLATFORM=external -DOT_SLAAC=ON -DCMAKE_TOOLCHAIN_FILE=src/nrf52840/arm-none-eabi.cmake -DOT_USB=ON -DOT_EXTERNAL_MBEDTLS=nordicsemi-mbedtls -DOT_THREAD_VERSION=1.2 /home/pi/ot-nrf528xx
    -- The C compiler identification is GNU 7.3.1
    -- The CXX compiler identification is GNU 7.3.1
    -- Check for working C compiler: /usr/bin/arm-none-eabi-gcc
    -- Check for working C compiler: /usr/bin/arm-none-eabi-gcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /usr/bin/arm-none-eabi-g++
    -- Check for working CXX compiler: /usr/bin/arm-none-eabi-g++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- OpenThread Source Directory: /home/pi/ot-nrf528xx/openthread
    -- Check if the system is big endian
    -- Searching 16 bit integer
    -- Looking for sys/types.h
    -- Looking for sys/types.h - found
    -- Looking for stdint.h
    -- Looking for stdint.h - found
    -- Looking for stddef.h
    -- Looking for stddef.h - found
    -- Check size of unsigned short
    -- Check size of unsigned short - done
    -- Using unsigned short
    -- Check if the system is big endian - little endian
    -- OpenThread CMake build type: MinSizeRel
    -- Package Name: OPENTHREAD
    -- Setting default package version: thread-reference-20200818-1286-g56ce8e259
    -- Package Version: thread-reference-20200818-1286-g56ce8e259
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/pi/ot-nrf528xx/build
    + [[ -n '' ]]
    + ninja
    [24/693] cd /home/pi/ot-nrf528xx/build/openthread && /usr/bin/cmake -DLIST="OPENTHREAD_CONFIG_ASSERT_ENABLE=1;OPENTHR...nrf52840-config-check.h";MBEDTLS_CONFIG_FILE="nrf-config.h"" -P /home/pi/ot-nrf528xx/openthread/etc/cmake/print.cmak
    OPENTHREAD_CONFIG_ASSERT_ENABLE=1
    OPENTHREAD_CONFIG_BACKBONE_ROUTER_DUA_NDPROXYING_ENABLE=0
    OPENTHREAD_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE=0
    OPENTHREAD_CONFIG_ENABLE_BUILTIN_MBEDTLS=0
    OPENTHREAD_CONFIG_ENABLE_BUILTIN_MBEDTLS_MANAGEMENT=1
    OPENTHREAD_CONFIG_MAC_CSL_AUTO_SYNC_ENABLE=0
    OPENTHREAD_CONFIG_PING_SENDER_ENABLE=1
    OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE=1
    OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT=0
    PACKAGE_NAME=OPENTHREAD
    OPENTHREAD_CONFIG_THREAD_VERSION=OT_THREAD_VERSION_1_2
    OPENTHREAD_CONFIG_NCP_HDLC_ENABLE=1
    OPENTHREAD_CONFIG_FILE=openthread-core-nrf52840-config.h
    OPENTHREAD_PROJECT_CORE_CONFIG_FILE=openthread-core-nrf52840-config.h
    OPENTHREAD_CORE_CONFIG_PLATFORM_CHECK_FILE=openthread-core-nrf52840-config-check.h
    MBEDTLS_USER_CONFIG_FILE=nrf52840-mbedtls-config.h
    USB_CDC_AS_SERIAL_TRANSPORT=1
    OPENTHREAD_CORE_CONFIG_PLATFORM_CHECK_FILE=openthread-core-nrf52840-config-check.h
    MBEDTLS_CONFIG_FILE=nrf-config.h
    [693/693] Linking CXX executable bin/ot-ncp-ftd
    + cd /home/pi/ot-nrf528xx

    Another difference with the build was that I got this output:

    Instead of this:

    And yes, I changed the USB peripheral.

  • try erasing it and programming it in two separate options. 

    Disclaimer: I have not tested nrfjprog from a raspberry pi before. 

    try:

    nrfjprog --eraseall

    nrfjprog --program ~/ot... --verify

Related