Hi.
For a while I have had some issues with the toolchain when using the nRF connect SDK in visual studio code on windows 10. I believe it was after installing SDK version 2.8.0 that I saw the problems first, although I'm not entirely sure. When I use certain commands I get errors in toolchain versions other than 2.8.0. For instance, if I try to build and flash an application using SDK version 1.9.1 and toolchain 1.9.1 I get the attached output.
First of all, is there a workaround to get this to work? I'm currently flashing manually with nrfjprog from command line.
Secondly, should I be matching toolchain versions and SDK versions in the first place? What is the intended/recommended way to use SDK and toolchain versions? If I try build my application with SDK version 1.9.1 and toolchain version 2.8.0 the application appears to run as expected, even with some improvements: resulting merged.hex file is smaller and more warnings are caught in the build process.
[9/27] Linking CXX executable zephyr\zephyr_pre0.elf [10/27] Generating dev_handles.c FAILED: zephyr/dev_handles.c cmd.exe /C "cd /D C:\...\build_191\zephyr && C:\ncs\v1.9.1\toolchain\opt\bin\python.exe C:/ncs/v1.9.1/zephyr/scripts/gen_handles.py --output-source dev_handles.c --kernel C:/.../build_191/zephyr/zephyr_pre0.elf --zephyr-base C:/ncs/v1.9.1/zephyr --start-symbol __device_start" Traceback (most recent call last): File "C:/ncs/v1.9.1/zephyr/scripts/gen_handles.py", line 37, in <module> from elftools.elf.elffile import ELFFile File "C:\ncs\toolchains\2d382dcd92\opt\bin\Lib\site-packages\elftools\elf\elffile.py", line 41, in <module> from ..dwarf.dwarfinfo import DWARFInfo, DebugSectionDescriptor, DwarfConfig File "C:\ncs\toolchains\2d382dcd92\opt\bin\Lib\site-packages\elftools\dwarf\dwarfinfo.py", line 17, in <module> from .structs import DWARFStructs File "C:\ncs\toolchains\2d382dcd92\opt\bin\Lib\site-packages\elftools\dwarf\structs.py", line 10, in <module> from logging.config import valid_ident File "<frozen zipimport>", line 259, in load_module File "logging\config.py", line 30, in <module> File "<frozen zipimport>", line 259, in load_module File "logging\handlers.py", line 26, in <module> File "<frozen zipimport>", line 259, in load_module File "socket.py", line 49, in <module> ImportError: Module use of python312.dll conflicts with this version of Python. ninja: build stopped: subcommand failed. FATAL ERROR: re-build