Error next to zephyr/kernel.h: "In included file: "_DSP_PRESENT and CONFIG_ARMV8_M_DSP are not set to the same value"

I am using ncs sdk, my projects are under ~/zephyr-workspace. This is from an example project - blinkypwm. The clangd compiler shows the following erro: In included file: "_DSP_PRESENT and CONFIG_ARMV8_M_DSP are not set to the same value. I am on an ubuntu linux system and developing on a text editor (nvim). The ncs sdk is in ~/ncs. I have installed the zephyr toolchain and have initialized a west workspace.

I understand that this is a configuration mismatch in the Zephyr RTOS build system. The error indicates that there's an inconsistency between the settings in my build configuration, for:

  • _DSP_PRESENT: Hardware capability flag
  • CONFIG_ARMV8_M_DSP: Software configuration flag

Both of these are not in my proj.conf nor have I been able to find these exact one in kconfig using the gui interface menuconfig

Hence, I thought I could resolve this can resolve this by, adding the line to prj.conf

But then I get the following error on building the project. I tried searching for a similar option in kconfig using the gui interface, was unsuccessful.

If I remove the bool variable from proj.conf, the error is shown in the editor. Tho, the project builds and flashes into the nrf52832dk and functions are expected.
I really want to solve this error although for now it does not seem to cause any issues, unsure of its effects in future projects.

Any help would be appreciated.

Parents
  • Hi,

     

    Based on the emitted zephyr version of v4.0.99, it looks like you are running upstream zephyr?

    ncs-zephyr is currently at v3.7.99, even in the main branch.

     

    In general, we do not recommend using main, but rather a tagged version.

     

    Can you confirm what tag/hash that you're using?

     

    Kind regards,

    Håkon

  • Zephyr v4.0.0-2778 with commit hash 1b70bfa14e

    So yes, I am using an upstream zephyr. I see, that it is recommended to use ncs-zephyr instead. 

    I will set up NCS v2.5.0, which uses ncs-zephyr v3.3.99, and will let you know if things work out.

  • Now I get this build error:

    CMake Error at /home/roshan/ncs/zephyr/cmake/modules/boards.cmake:167 (message):
    Invalid BOARD; see above.
    Call Stack (most recent call first):
    /home/roshan/ncs/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
    /home/roshan/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    /home/roshan/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
    CMakeLists.txt:4 (find_package)


    -- Configuring incomplete, errors occurred!
    FAILED: build.ninja
    /usr/bin/cmake --regenerate-during-build -S/home/roshan/zephyr-workspace/blinkypwm -B/home/roshan/zephyr-workspace/blinkypwm/build
    ninja: error: rebuilding 'build.ninja': subcommand failed
    FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/roshan/zephyr-workspace/blinkypwm/build

    I used west build -b nrf52dk_nrf52832, for the upstream zephyr this board was nrf52dk/nrf52832

    I have ncs at ~/ncs and the project at ~/zephyr-workspace/blinkypwm/
    ZEPHYR BASE points to ~/ncs/zephyr/

    I don't understand the error : Invalid BOARD 

  • hmm, this actually solved itself by adding --pristine to the build command, why?

    Also, no longer see the error in my code

Reply Children
No Data
Related