nRF9160 serial lte modem with custom board

Hello,

I am trying to use the LTE modem serial example on a customized board that communicates an NRF9160 SICA B1 with an external STM32 microcontroller through the UART interface. I'm working with VS Code extensions.

I did the following steps:

1. install toolchain 2.6.1 

2. install SDK v2.6.1

3. Create an application from sample (Serial LTE modem)

4. Create a "build configuration" --> Board = nrf9160dk_nrf9160_ns (there is no SICA B1 option) // Revision = 2  // configuration= use build system default

5. Build (It takes a very long time to finish)

it gives me some warnings, but the build seems to finish: 

      CMakeLists.txt --> No SOURCES given to Zephyr library: drivers__console

      prj.conf --> CONFIG_LOG_BACKEND_UART was assigned the value n, but got the value n. Missing dependencies: UART_CONSOLE

6. Open Devicetree Overlay file and adjust it to my needs:

               disable spi, buttons, leds ... 

               change uart0 pins to the pins assigned in my custom board

7. Edit build configuration to include the overlay modified

8. Build again

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe '-Bc:\nordic\myApps\serial_lte_modem\build_1' -GNinja -DBOARD=nrf9160dk_nrf9160_ns@2 -DNCS_TOOLCHAIN_VERSION=NONE -DEXTRA_DTC_OVERLAY_FILE=overlay-external-mcu.overlay -DBOARD_ROOT=c:/nordic/myapps/serial_lte_modem '-Sc:\nordic\myApps\serial_lte_modem'

 

I'm desperate with this problem; I don't know how I could control the nRF9160 modem from my microcontroller using AT commands through the UART interface.

thanks in advance

best regards

Parents
  • Hey,

    8. Build again

    can you post the entire build log from the last build?

  • Call Stack (most recent call first):
    C:/ncs/v2.6.1/zephyr/cmake/modules/kernel.cmake:248 (include)
    C:/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
    C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    CMakeLists.txt:9 (find_package)


    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/myApps/serial_lte_modem/build
    -- west build: building application
    [3/406] Generating include/generated/version.h
    -- Zephyr version: 3.5.99 (C:/ncs/v2.6.1/zephyr), build: 3758bcbfa5cd
    [3/178] Generating include/generated/version.h
    -- Zephyr version: 3.5.99 (C:/ncs/v2.6.1/zephyr), build: 3758bcbfa5cd
    [178/178] Linking C executable zephyr\zephyr.elf
    Memory region Used Size Region Size %age Used
    FLASH: 31222 B 48 KB 63.52%
    RAM: 16376 B 32 KB 49.98%
    IDT_LIST: 0 GB 32 KB 0.00%
    [12/406] Generating ../../tfm/CMakeCache.txt
    CMake Warning at cmake/version.cmake:22 (message):

    Actual TF-M version is not available from Git repository. Settled to

    v2.0.0

    Call Stack (most recent call first):

    CMakeLists.txt:22 (include)


    -- Found Git: C:/ncs/toolchains/cf2149caf2/mingw64/bin/git.exe (found version "2.37.3.windows.1")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe (found version "3.9.13") found components: Interpreter
    CMake Deprecation Warning at C:/ncs/v2.6.1/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):

    'PYTHON_PREFER' variable is deprecated. Please use Python3_EXECUTABLE

    instead.

    Call Stack (most recent call first):

    C:/ncs/v2.6.1/zephyr/cmake/modules/python.cmake:16 (find_package)

    C:/ncs/v2.6.1/zephyr/cmake/modules/user_cache.cmake:30 (include)

    C:/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake:5 (include)

    C:/ncs/v2.6.1/nrf/subsys/nrf_security/tfm/CMakeLists.txt:38 (include)


    -- Found Python3: C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe (found suitable version "3.9.13", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.6.1/zephyr/.cache
    -- Configuring done
    -- Generating done
    CMake Warning:

    Manually-specified variables were not used by the project:

    CRYPTO_RNG_MODULE_ENABLED

    MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE

    PYTHON_PREFER

Reply
  • Call Stack (most recent call first):
    C:/ncs/v2.6.1/zephyr/cmake/modules/kernel.cmake:248 (include)
    C:/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
    C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    CMakeLists.txt:9 (find_package)


    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/myApps/serial_lte_modem/build
    -- west build: building application
    [3/406] Generating include/generated/version.h
    -- Zephyr version: 3.5.99 (C:/ncs/v2.6.1/zephyr), build: 3758bcbfa5cd
    [3/178] Generating include/generated/version.h
    -- Zephyr version: 3.5.99 (C:/ncs/v2.6.1/zephyr), build: 3758bcbfa5cd
    [178/178] Linking C executable zephyr\zephyr.elf
    Memory region Used Size Region Size %age Used
    FLASH: 31222 B 48 KB 63.52%
    RAM: 16376 B 32 KB 49.98%
    IDT_LIST: 0 GB 32 KB 0.00%
    [12/406] Generating ../../tfm/CMakeCache.txt
    CMake Warning at cmake/version.cmake:22 (message):

    Actual TF-M version is not available from Git repository. Settled to

    v2.0.0

    Call Stack (most recent call first):

    CMakeLists.txt:22 (include)


    -- Found Git: C:/ncs/toolchains/cf2149caf2/mingw64/bin/git.exe (found version "2.37.3.windows.1")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe (found version "3.9.13") found components: Interpreter
    CMake Deprecation Warning at C:/ncs/v2.6.1/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):

    'PYTHON_PREFER' variable is deprecated. Please use Python3_EXECUTABLE

    instead.

    Call Stack (most recent call first):

    C:/ncs/v2.6.1/zephyr/cmake/modules/python.cmake:16 (find_package)

    C:/ncs/v2.6.1/zephyr/cmake/modules/user_cache.cmake:30 (include)

    C:/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake:5 (include)

    C:/ncs/v2.6.1/nrf/subsys/nrf_security/tfm/CMakeLists.txt:38 (include)


    -- Found Python3: C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe (found suitable version "3.9.13", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.6.1/zephyr/.cache
    -- Configuring done
    -- Generating done
    CMake Warning:

    Manually-specified variables were not used by the project:

    CRYPTO_RNG_MODULE_ENABLED

    MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE

    PYTHON_PREFER

Children
No Data
Related