Welcome page and Application page not found for some project

Hi DevZone,

As mentioned in the title, the Welcome page and Application page won't show any selection for my project as following image shown.

My project is based on nrf5340_audio sample and changes are all about adding new .c/.h, change existing code in .c/.h/prj.conf. I didn't change devicetree related files.

I've tried to rebuild a nrf5340_audio sample and move all the changes to new one. It will works while the VSCode still on, but as I reopen the VSCode project, these page empty again.

Please help to solve this issue or I have to rebuild the project and move the changes every time I reboot my computer... let alone for the complilation...

Parents
  • Hello, 

    Have you tried to close VS Code work space? What does the VS code extension show when you first open VS code alone? 

    How are you opening the project? 

    Kind regards,
    Øyvind

  • Hi Øyvind,

    Have you tried to close VS Code work space?

    In fact this issue happened right after I close and reopen the work space.

    How are you opening the project? 

    I have tried several ways like open new VS code Window first and use the nRF Connect extension to open the existing application, or use command line in my Windows OS to open the folder, etc.

    What does the VS code extension show when you first open VS code alone?

    The NRF CONNECT extension shows normally as I open VS code without this work space.

    I've look into the output message from VS code and the Error shown as follow:

    [cmake] CMake Error at D:/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake:2891 (message):
    [cmake]   BOARD is not being defined on the CMake command-line, in the environment or
    [cmake]   by the app.
    [cmake] Call Stack (most recent call first):
    [cmake]   D:/ncs/v2.6.1/zephyr/cmake/modules/boards.cmake:56 (zephyr_check_cache)
    [cmake]   D:/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
    [cmake]   D:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    [cmake]   D:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:159 (include_boilerplate)
    [cmake]   CMakeLists.txt:52 (find_package)
    [cmake]
    [cmake]
    [cmake] -- Configuring incomplete, errors occurred!
    I've tried to add BOARD setting as suggestion here, but it will show another error. I didn't dive into this issue since the original nrf5340 audio project doesn't have the BOARD setting.
  • Could you please provide full build log? And also the output from "Generate support information"?

    Thanks!

  • Hi Øyvind,

    Here is the full log I've receive from VSCode Terminal, I replace sensitive path name info with "...".

    [proc] Executing command: ...\Programs\Python\Python37\Scripts\cmake.EXE --version
    [proc] Executing command: ...\Programs\Python\Python37\Scripts\cmake.EXE -E capabilities
    [kit] Successfully loaded 11 kits from ...\CMakeTools\cmake-tools-kits.json
    [variant] Loaded new set of variants
    [cmakefileapi-driver] Removing .../nrf5340_audio/build/CMakeCache.txt
    [main] Configuring project: nrf5340_audio 
    [proc] Executing command: ...\Programs\Python\Python37\Scripts\cmake.EXE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE --no-warn-unused-cli -S.../nrf5340_audio -B.../nrf5340_audio/build
    [cmake] Not searching for unused variables given on the command line.
    [cmake] -- Building for: Visual Studio 16 2019
    [cmake] Loading Zephyr default modules (Freestanding).
    [cmake] -- Using NCS Toolchain 2.6.20240304.889616714482 for building. (D:/ncs/toolchains/cf2149caf2/cmake)
    [cmake] -- Application: .../nrf5340_audio
    [cmake] -- CMake version: 3.29.2
    [cmake] -- Found Python3: D:/ncs/toolchains/cf2149caf2/opt/bin/python.exe (found suitable version "3.9.13", minimum required is "3.8") found components: Interpreter
    [cmake] -- Cache files will be written to: D:/ncs/v2.6.1/zephyr/.cache
    [cmake] -- Zephyr version: 3.5.99 (D:/ncs/v2.6.1/zephyr)
    [cmake] -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    [cmake] CMake Error at D:/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake:2891 (message):
    [cmake]   BOARD is not being defined on the CMake command-line, in the environment or
    [cmake]   by the app.
    [cmake] Call Stack (most recent call first):
    [cmake]   D:/ncs/v2.6.1/zephyr/cmake/modules/boards.cmake:56 (zephyr_check_cache)
    [cmake]   D:/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
    [cmake]   D:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    [cmake]   D:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:159 (include_boilerplate)
    [cmake]   CMakeLists.txt:52 (find_package)
    [cmake] 
    [cmake] 
    [cmake] -- Configuring incomplete, errors occurred!
    [proc] The command:...\Programs\Python\Python37\Scripts\cmake.EXE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE --no-warn-unused-cli -S.../nrf5340_audio -B.../nrf5340_audio/build exited with code: 1

    I've also try to open "Generate support information" but get this error.

    It also happened if I click any options here.

    btw. Reinstall nRF Connect extensions may work for the first time, but failed after reopen my VSCode.

Reply
  • Hi Øyvind,

    Here is the full log I've receive from VSCode Terminal, I replace sensitive path name info with "...".

    [proc] Executing command: ...\Programs\Python\Python37\Scripts\cmake.EXE --version
    [proc] Executing command: ...\Programs\Python\Python37\Scripts\cmake.EXE -E capabilities
    [kit] Successfully loaded 11 kits from ...\CMakeTools\cmake-tools-kits.json
    [variant] Loaded new set of variants
    [cmakefileapi-driver] Removing .../nrf5340_audio/build/CMakeCache.txt
    [main] Configuring project: nrf5340_audio 
    [proc] Executing command: ...\Programs\Python\Python37\Scripts\cmake.EXE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE --no-warn-unused-cli -S.../nrf5340_audio -B.../nrf5340_audio/build
    [cmake] Not searching for unused variables given on the command line.
    [cmake] -- Building for: Visual Studio 16 2019
    [cmake] Loading Zephyr default modules (Freestanding).
    [cmake] -- Using NCS Toolchain 2.6.20240304.889616714482 for building. (D:/ncs/toolchains/cf2149caf2/cmake)
    [cmake] -- Application: .../nrf5340_audio
    [cmake] -- CMake version: 3.29.2
    [cmake] -- Found Python3: D:/ncs/toolchains/cf2149caf2/opt/bin/python.exe (found suitable version "3.9.13", minimum required is "3.8") found components: Interpreter
    [cmake] -- Cache files will be written to: D:/ncs/v2.6.1/zephyr/.cache
    [cmake] -- Zephyr version: 3.5.99 (D:/ncs/v2.6.1/zephyr)
    [cmake] -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    [cmake] CMake Error at D:/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake:2891 (message):
    [cmake]   BOARD is not being defined on the CMake command-line, in the environment or
    [cmake]   by the app.
    [cmake] Call Stack (most recent call first):
    [cmake]   D:/ncs/v2.6.1/zephyr/cmake/modules/boards.cmake:56 (zephyr_check_cache)
    [cmake]   D:/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
    [cmake]   D:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    [cmake]   D:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:159 (include_boilerplate)
    [cmake]   CMakeLists.txt:52 (find_package)
    [cmake] 
    [cmake] 
    [cmake] -- Configuring incomplete, errors occurred!
    [proc] The command:...\Programs\Python\Python37\Scripts\cmake.EXE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE --no-warn-unused-cli -S.../nrf5340_audio -B.../nrf5340_audio/build exited with code: 1

    I've also try to open "Generate support information" but get this error.

    It also happened if I click any options here.

    btw. Reinstall nRF Connect extensions may work for the first time, but failed after reopen my VSCode.

Children
Related