testing nf5340_audio_dk

I am trying to use the nrf5340 audio DK for the first time using one of the sample blink codes. I keep getting an error when first creating an application by copying the sample provided. The system seems to be missing a board information and I could not figure out where and how to provide that information. My system configuration and versions of my tools are given below. I am beginning to wonder if my installation is ok as some of the folders are different from the nrfConnect instruction videos from Nordic which  were for a Windows PC.

My Toolchain is 2.6.1 at /opt/Nordic/ncs/toolchains

My SDK is 2.6.1 at /opt/Nordic/ncs/v2.6.1

My applications are in user/name/ncs/

MacBook Pro 2.9ghz quad core i7

16GB RAM Mac OS13.6.7

VS Code

Version: 1.90.1

Commit: 611f9bfce64f25108829dd295f54a6894e87339d

Date: 2024-06-11T21:02:41.372Z

Electron: 29.4.0

ElectronBuildId: 9593362

Chromium: 122.0.6261.156

Node.js: 20.9.0

V8: 12.2.281.27-electron.0

OS: Darwin x64 22.6.0

The error I am getting is below. Apologies for the long text captured and pasted. Can someone help?

CMake Error at /opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake:2891 (message):BOARD is not being defined on the CMake command-line, in the environment or

by the app.

[{

"resource": "/opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake",

"owner": "cmake-configure-diags",

"severity": 8,

"message": "CMake Error at /opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake:2891 (message):BOARD is not being defined on the CMake command-line, in the environment or\nby the app.",

"source": "CMake (message)",

"startLineNumber": 2891,

"startColumn": 1,

"endLineNumber": 2891,

"endColumn": 10000,

"relatedInformation": [

{

"startLineNumber": 56,

"startColumn": 1,

"endLineNumber": 56,

"endColumn": 1000,

"message": "In call to 'zephyr_check_cache' here",

"resource": "/opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/boards.cmake"

},

{

"startLineNumber": 129,

"startColumn": 1,

"endLineNumber": 129,

"endColumn": 1000,

"message": "In call to 'include' here",

"resource": "/opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake"

},

{

"startLineNumber": 66,

"startColumn": 1,

"endLineNumber": 66,

"endColumn": 1000,

"message": "In call to 'include' here",

"resource": "/opt/nordic/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake"

},

{

"startLineNumber": 159,

"startColumn": 1,

"endLineNumber": 159,

"endColumn": 1000,

"message": "In call to 'include_boilerplate' here",

"resource": "/opt/nordic/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake"

},

{

"startLineNumber": 4,

"startColumn": 1,

"endLineNumber": 4,

"endColumn": 1000,

"message": "In call to 'find_package' here",

"resource": "/Users/assegid/ncs/blinky/CMakeLists.txt"

}

]

}]

  • Sorry, I forgot to add. I have 2 nrf5340_audio_dk boards. According to the Getting Started page, a brand new board when powered should turn the Nordic logo yellow. One of my boards turns the logo red, the second one has no light on the logo, but 3 other green LEDs, one on top and 2 at the bottom turn on.

  • Hi,

    Apologies for the delayed response.

    Based on the logs (and build errors) I believe that there is a mixup between the prerequisites for building the application (please verify).

    1) You mention both installing NCS v2.6.1 and nRF5340 Audio source code. I believe that you might've copied the audio application from the SDK and that you're using an outdated buildprog.py script (From the audio source code or older 

    For reference  About DeviceTree and Overlay files and  About nRF5340 Audio operation 

    Could you verify if you're using the buildscript corresponding to the SDK version you're using?

    Kind regards,
    Andreas

  • Hi Andreas,

    I am willing to invest all the time needed to go through all the documents and links you provided and those available at your website, but I do not seem to have the development system installed properly to test even the simplest blink program. I followed the installation instructions on your website and another available on youtube. I was unsuccessful on both Mac and Windows machines. I am currently on my Mac installation and I want to start from the very beginning. When I create an application by copying the Blinky example provided, I get the errors shown below in the pictures. Can you please help me find what I am missing?
    more..
  • My problem seems to originate in

    /opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake:2891

    as shown in the message generated below. I have also added a screen capture of the code showing the line causing the error.

    [{
    "resource": "/opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake",
    "owner": "cmake-configure-diags",
    "severity": 8,
    "message": "CMake Error at /opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake:2891 (message):BOARD is not being defined on the CMake command-line, in the environment or\nby the app.",
    "source": "CMake (message)",
    "startLineNumber": 2891,
    "startColumn": 1,
    "endLineNumber": 2891,
    "endColumn": 10000,
    "relatedInformation": [
    {
    "startLineNumber": 56,
    "startColumn": 1,
    "endLineNumber": 56,
    "endColumn": 1000,
    "message": "In call to 'zephyr_check_cache' here",
    "resource": "/opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/boards.cmake"
    },
    {
    "startLineNumber": 129,
    "startColumn": 1,
    "endLineNumber": 129,
    "endColumn": 1000,
    "message": "In call to 'include' here",
    "resource": "/opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake"
    },
    {
    "startLineNumber": 66,
    "startColumn": 1,
    "endLineNumber": 66,
    "endColumn": 1000,
    "message": "In call to 'include' here",
    "resource": "/opt/nordic/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake"
    },
    {
    "startLineNumber": 97,
    "startColumn": 1,
    "endLineNumber": 97,
    "endColumn": 1000,
    "message": "In call to 'include_boilerplate' here",
    "resource": "/opt/nordic/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake"
    },
    {
    "startLineNumber": 4,
    "startColumn": 1,
    "endLineNumber": 4,
    "endColumn": 1000,
    "message": "In call to 'find_package' here",
    "resource": "/Users/assegid/ncs/blinky/CMakeLists.txt"
    }
    ]
    }]

  • I managed to program the boards after lots of trial and error and information from the link below..

     Flashing issues after updating Command Line Tools on macOS 

    Now, I am off to the long road of setting up the various tools properly as I am not at all confident my system is optimized with the various tools linked properly. I am still getting errors when copying sample codes to create an application.

Related