Building project with toolchain V2.6.1 errors

I had a project that was successfully building in Visual Studio code months ago (June 2024) with Toolchain 2.6.1 for the nRF52832.  I have just had time to pick it back up and now when I am trying to build the project, I am getting errors which I am not sure what has changed. 

When I first loaded the folder, the NRF Connect extension didn't seem to recognize the build configuration I had previously used.

I did NOT intentionally update Visual Code Studio but I am guessing something updated.

'__device_dts_ord_DT_N_ALIAS_homeswitch_P_gpios_IDX_0_PH_ORD' undeclared here (not in a function)

['DT_N_ALIAS_homeswitch_P_gpios_IDX_0_VAL_pin' undeclared here (not in a function); did you mean 'DT_N_S_leds_S_led_1_P_gpios_IDX_0_VAL_pin'?

CMake Error at C:/Users/XXXXX/zephyrproject/zephyr/cmake/modules/snippets.cmake:92 (message):Traceback (most recent call last):

  File "C:\Users\XXXXX\zephyrproject\zephyr\scripts\snippets.py", line 24, in <module>
    import pykwalify.core

ModuleNotFoundError: No module named 'pykwalify'


I tried installing the latest 2.7.0 (as of October 2024) and using it but that results in similar but also additional errors.

****************

Errors when building with toolchain V2.7.0 and sdk 2.7.0

In prj.conf  Unknown symbol CONFIG_WS2812_STRIP

Errors under file named led_ring.h

#include errors detected based on information provided by the configurationProvider setting. Squiggles are disabled for this translation unit (C:\code\009-Nordic-projects\nrfconnect\led_ring_w_l6470\led_ws2812_w_l6470\src\led_ring.c).
cannot open source file "devicetree_generated.h" (dependency of "C:\Users\XXXXX\.vscode\extensions\ms-vscode.cpptools-1.22.9-win32-x64\bin\zephyr\drivers\led_strip.h")

cannot open source file "devicetree_generated.h" (dependency of "C:\Users\JABlackann\.vscode\extensions\ms-vscode.cpptools-1.22.9-win32-x64\bin\zephyr\devicetree.h")

[{
    "resource": "/c:/ncs/v2.7.0/zephyr/cmake/modules/kconfig.cmake",
    "owner": "nrf-connect",
    "severity": 8,
    "message": "command failed with return code: 1",
    "source": "cmake",
    "startLineNumber": 392,
    "startColumn": 1,
    "endLineNumber": 392,
    "endColumn": 2147483647
}]

CMake Error at C:/Users/XXXXXX/zephyrproject/zephyr/cmake/modules/snippets.cmake:92 (message):Traceback (most recent call last):

  File "C:\Users\XXXXXX\zephyrproject\zephyr\scripts\snippets.py", line 24, in <module>
    import pykwalify.core

ModuleNotFoundError: No module named 'pykwalify'

I am also getting a pop up in the corner of Visual Studio that shows the following:

I am not sure what could have changed. 

I have uninstalled Visual Studio Code and reinstalled the latest as of October 10, 2024. 

I validated both toolchains through the visual studio

*****************

When building with V2.7.0 toolchain, the errors associated DT alias DON'T appear (as I listed at the top of this post)  For reference.

'__device_dts_ord_DT_N_ALIAS_homeswitch_P_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
['DT_N_ALIAS_homeswitch_P_gpios_IDX_0_VAL_pin' undeclared here (not in a function); did you mean 'DT_N_S_leds_S_led_1_P_gpios_IDX_0_VAL_pin'?

Any assistance would be helpful. 

Thanks.

Parents Reply Children
Related