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

Thread CLI CMakeLists.txt file issue

Hello,

I modified the CMakeLists.txt file and now I am able to compile the Thread CLI application. However I noticed something strange in the CMakeLists.txt file.

list(INSERT OVERLAY_CONFIG 0 /opt/nordic/ncs/v1.7.0/nrf/samples/openthread/common/overlay-ot-defaults.conf)

What is the "0" immediately after OVERLAY_CONFIG in the line above?

Another question: Is adding multi-protocol as simple as adding "./overlay-minimal_multiprotocol.conf" to the end of the "INSERT OVERLAY_CONFIG" line?

Thanks

Parents
  • Hi Alles,

    INSERT is one of CMake document defines List operations. You can learn CMakeLists.txt format from it.

    Best regards,

    Charlie

  • 1. according to the CMake documentation the "0" in the INSERT command is an error. The index is only relevant when performing a indexed operation into a list like "GET"

    2. You did not answer the question about how to use the overlay conf file to add multi-protocol support. I have read the documentation and is says to enable the SoftDevice in Kconfig to enable the ability to configure BLE options. I can not find anything regarding the overlay files provided in the project'

  • 1. No, "0" is not an error. According to the CMake list format: list(INSERT <list> <element_index> <element> [<element> ...]), "list(INSERT OVERLAY_CONFIG 0 /opt/nordic/ncs/v1.7.0/nrf/samples/openthread/common/overlay-ot-defaults.conf)" insert the path to the first position of OVERLAY_CONFIG list.

    2. You can add another line like "list(INSERT OVERLAY_CONFIG 1 ./overlay-minimal_multiprotocol.conf)", but this is not suggested since it is one optional configuration. It should be added on compilling command, like "west build -d nrf52840dk_nrf52840 -- -DOVERLAY_CONFIG=overlay-minimal_multiprotocol.conf". nRF Connect VS code Extentsion will do this for you when your choose the option from UI.

    Best regards,

    Charlie

  • Thanks Charlie,

    I missed the fragments option.

    This was very helpful

Reply Children
No Data
Related