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

Related