Hello,
I have been having some issues with the nRF Connect vscode extension around the flash button.
To give context, I have 3 SDK and toolchain versions installed on my machine: 2.3.0, 2.6.1 and 2.9.0. I have projects that use all three.
I am on Windows 11.
Basically the issue comes around the rebuild when pressing flash. It appears that the package elftools is being incorrectly obtained from a different toolchain. See below.
Don't mind the red. Here I am trying to rebuild a project with the flash button on SDK 2.6.1. What is happening is whilst the correct toolchain python is being called (which is 3.9 for reference, underlined in green), when elffile is imported from elftools, it is being imported from toolchain 2.9.0 (underlined in yellow), causing an incompatibility error. The same thing happens when I try 2.3.0.
Now I read somewhere that you can check where it would be looking with the python -m site command, this is the output:
As can be seen, the correct toolchain is in the list (and the site packages directory, where elftools is, is correct).
The consequence here isn't that bad, it just means I have to press the build button before I press the flash button. Just thought you might want to be aware and if you could provide a fix for it, that would be fantastic.
Thanks in advance!
Kieran