This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problems creating app on Mac using VSC and nRF Connect

I'm trying to setup nRF Connect in VSC on a Mac. I've followed the various tutorials and created a new app from "hello world" template. I selected a nrf52840dk as a board and I'm getting these cmake warnings/failures:

{

"resource": "/opt/nordic/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmake",
"owner": "cmake-configure-diags",
"severity": 8,
"message": "CMake Deprecation Warning at /opt/nordic/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):The OLD behavior for policy CMP0079 will be removed from a future version\nof CMake.\n\nThe cmake-policies(7) manual explains that the OLD behaviors of all\npolicies are deprecated and that a policy should be set to OLD only under\nspecific short-term circumstances. Projects should be ported to the NEW\nbehavior and not rely on setting a policy to OLD.",
"source": "CMake (cmake_policy)",
"startLineNumber": 37,
"startColumn": 1,
"endLineNumber": 37,
"endColumn": 10000,
"relatedInformation": [
{
"startLineNumber": 24,
"startColumn": 1,
"endLineNumber": 24,
"endColumn": 1000,
"message": "In call to 'include' here",
"resource": "/opt/nordic/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake"
},
{
"startLineNumber": 102,
"startColumn": 1,
"endLineNumber": 102,
"endColumn": 1000,
"message": "In call to 'include_boilerplate' here",
"resource": "/opt/nordic/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake"
},
{
"startLineNumber": 5,
"startColumn": 1,
"endLineNumber": 5,
"endColumn": 1000,
"message": "In call to 'find_package' here",
"resource": "/Users/XXXX/Programs/ARM/Nordic/HelloWorld/CMakeLists.txt"
}
]
}

and:

{
"resource": "/opt/nordic/ncs/v1.7.0/zephyr/cmake/extensions.cmake",
"owner": "cmake-configure-diags",
"severity": 8,
"message": "CMake Error at /opt/nordic/ncs/v1.7.0/zephyr/cmake/extensions.cmake:2164 (message):BOARD is not being defined on the CMake command-line in the environment or\nby the app.",
"source": "CMake (message)",
"startLineNumber": 2164,
"startColumn": 1,
"endLineNumber": 2164,
"endColumn": 10000,
"relatedInformation": [
{
"startLineNumber": 217,
"startColumn": 1,
"endLineNumber": 217,
"endColumn": 1000,
"message": "In call to 'zephyr_check_cache' here",
"resource": "/opt/nordic/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmake"
},
{
"startLineNumber": 24,
"startColumn": 1,
"endLineNumber": 24,
"endColumn": 1000,
"message": "In call to 'include' here",
"resource": "/opt/nordic/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake"
},
{
"startLineNumber": 102,
"startColumn": 1,
"endLineNumber": 102,
"endColumn": 1000,
"message": "In call to 'include_boilerplate' here",
"resource": "/opt/nordic/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake"
},
{
"startLineNumber": 5,
"startColumn": 1,
"endLineNumber": 5,
"endColumn": 1000,
"message": "In call to 'find_package' here",
"resource": "/Users/ron/Programs/ARM/Nordic/HelloWorld/CMakeLists.txt"
}
]
}

I did select the board when I setup the app. I set it up as a standalone app. I've seen a similar problem in Case ID: 277019. I don't see a solution in that case.

Where is the BOARD set in VSC nRF Connect?

Related