Evaluating VS Code software and I cannot get a project to even configure and build. I need help.

Hello,

I'm new to this development environment and trying to get one of your projects to build for the nRF9151-DK.  I recently installed everything with the latest versions (IDE, SDK, toolchain) and then I tried to create a new project using your existing code.  I let the software examine devices attached to the USB port to determine this DK and then I selected the "serial_lte_modem" project.  That's the end of what worked.

I tried to add a new build configuration and left most things default.  I have the toolchains v3.0.1 and v2.9.0 on my drive so I tried each of those.  I can only select the SDK v2.9.0 even though it says that I have v3.0.1 installed.  I had to change the board target to nrf9151dk/nrf9151 (/ns) <---tried both.  It will not generate and build.  It tried to come up with the nRF9131 and I tried that in case it was compatible and supposed to be selected.  It failed too.

I'm just trying to get a project running and learn how to program a board without changing a single line of code in your project and it is disappointing that it can't even do that.  After messing with options, the number of problems has dropped from 20 to 8 and the main problems seems to be with build scripts.

I'll do a lite dump of some logs:

C:/Users/mweston/workspace_3/serial_lte_modem/prj.conf:67: warning: attempt to assign the value 'y' to the undefined symbol DOWNLOADER
Parsing C:/Users/mweston/workspace_3/serial_lte_modem/Kconfig
Loaded configuration 'C:/Users/mweston/workspace_3/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151_ns_defconfig'
Merged configuration 'C:/Users/mweston/workspace_3/serial_lte_modem/prj.conf'
Merged configuration 'C:/Users/mweston/workspace_3/serial_lte_modem/boards/nrf9151dk_nrf9151_ns.conf'
Merged configuration 'C:/Users/mweston/workspace_3/serial_lte_modem/build_1/serial_lte_modem/zephyr/.config.sysbuild'

C:/Users/mweston/workspace_3/serial_lte_modem/prj.conf:68: warning: attempt to assign the value '4096' to the undefined symbol DOWNLOADER_STACK_SIZE

C:/Users/mweston/workspace_3/serial_lte_modem/prj.conf:69: warning: attempt to assign the value '2048' to the undefined symbol DOWNLOADER_MAX_FILENAME_SIZE

C:/Users/mweston/workspace_3/serial_lte_modem/prj.conf:87: warning: attempt to assign the value 'y' to the undefined symbol NRF_CLOUD

error: Aborting due to Kconfig warnings

CMake Error at C:/Users/mweston/workspace_3/zephyr/cmake/modules/kconfig.cmake:396 (message):
  command failed with return code: 1

-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
  CMake configure failed for Zephyr project: serial_lte_modem

-- Configuring incomplete, errors occurred!
See also "C:/Users/mweston/workspace_3/serial_lte_modem/build_1/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe '-Bc:\Users\mweston\workspace_3\serial_lte_modem\build_1' -GNinja -DBOARD=nrf9151dk/nrf9151/ns -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/users/mweston/workspace_3/serial_lte_modem '-SC:\Users\mweston\workspace_3\zephyr\share\sysbuild' '-DAPP_DIR:PATH=c:\Users\mweston\workspace_3\serial_lte_modem'

Am I missing a support package?  It seems like everything nRF_xxxxx is installed.  This is not any special case where I am trying to customize the build.  I just want to do a straight up "out of the box" build.  I have your YouTube video series open "nRF Connect for VS Code" but I can't proceed because it didn't fail in the video.

Thanks for your assistance!

Michael

Parents
  • Hi,

    Have you tried to use Quick Start guide?
    Further information is available in developing with nrf9151 guide
    Since you are just starting, it might be useful for you to look at Nordic Cellular IoT Fundamentals course.

    Best regards,
    Dejan

  • Hello Dejans,

    Thanks for the assist.  I was talking to another FAE at Nordic and he suggested this link: Exercise 1 - Nordic Developer Academy  That was exactly what I needed plus some other clunky things.

    I had to put nrfutil.exe into its own folder and create a path to it which was shown in the link above.  I had to power the DK up and do the path BEFORE running VS Code and that was the only way it would recognize the path and also even see that the DK was available (won't even show me the CONNECTED DEVICES section if one not available before starting software).

    I had to delete the project and start another one, this time it let me select the latest SDK and toolchain together.  After that, it was as simple as anyone would have wanted to build and flash the code to the board.  I couldn't believe how simple it was, as long as you know to jump through all the hoops and get the environment all set up before shutting down the software and restarting it.

    On to bigger and actual problems... Slight smile

    Thanks again,

    Michael

Reply
  • Hello Dejans,

    Thanks for the assist.  I was talking to another FAE at Nordic and he suggested this link: Exercise 1 - Nordic Developer Academy  That was exactly what I needed plus some other clunky things.

    I had to put nrfutil.exe into its own folder and create a path to it which was shown in the link above.  I had to power the DK up and do the path BEFORE running VS Code and that was the only way it would recognize the path and also even see that the DK was available (won't even show me the CONNECTED DEVICES section if one not available before starting software).

    I had to delete the project and start another one, this time it let me select the latest SDK and toolchain together.  After that, it was as simple as anyone would have wanted to build and flash the code to the board.  I couldn't believe how simple it was, as long as you know to jump through all the hoops and get the environment all set up before shutting down the software and restarting it.

    On to bigger and actual problems... Slight smile

    Thanks again,

    Michael

Children
No Data
Related