Fail to build in VS new SDK 2.2

Hi,

We moving to new SDK and I'm failing on building with VS, previously I was with 1.9.1 and Segger so had no problem

"
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\nrf\toolchains\v2.2.0\opt\bin\cmake.EXE' --build 'c:\nrf\v2.2.0\nrf\applications\serial_lte_modem\SLM'
"

Any idea how to fix it?

  • Hello

    __device_dts_ord_xx undeclared probably means you have an ill-defined node in your devicetre.

    Have you customized any part of the devicetree yourself?

    It could also be helpful to see how you're initializing your device in your code.

    Best regards,

    Einar

  • Hi Einar,

    Thanks for the very fast reply

    I only changed the CONF file to use UART 2 and not 0

    here is the defines

    Here is the full log of the build

  • Right, then I would suspect you'll need to enable UART 2 for that to work.

    Can you share your UART nodes found in build/zephyr/zephyr.dts?

    -Einar

  • talking about this?

    you'll need to enable UART 2 for that to work

    where is the config for that?

  • You should add a devicetree overlay file to your project:

    https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/howtos.html#set-devicetree-overlays

    Under "Use devicetree overlays" there is an example that sets status = "okay", this is what you should do for UART 2.

    If you're not using UART 0 anymore you could also set its status to "disabled".

    -Einar

1 2