-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio code and IAR extension integration - Error: unable to provide automatic debug configuration #16
Comments
Hi Chohan. Try with installing the IAR Build extension (https://marketplace.visualstudio.com/items?itemName=iarsystems.iar-build). With this, the IAR C-SPY Debug extension automatically provides debug configurations for your project. (With the IAR Build extension, you can also build your project (.ewp) within VS Code) |
Hi Micaelbo, I have already installed IAR Build extension v1.20.1, as can be seen in the second screenshot in my query. I have even tried to uninstall, install and restart program as well - still no success. Thanks |
It is hard to read on your project folder picture but does the opened folder (in VS Code) have a "settings" folder on the same directory level as the ".vscode" folder? If possible, please upgrade to EWARM v9.30 or newer! Then there is no need to run an initial debug session in EW. VS Code will find out the C-SPY settings anyway. |
The extension logs should help provide some more information. You can find them in the
As @micaelbo says, the 'settings' folder in your project folder contains files used by the VS Code extension to configure the debugger. The files of interest are named like this:
If you could post the contents of these files here, that would be very helpful for us to reproduce the issue. |
i. I am bound to use IAR8.42. due to project dependencies
|
The logs reset each time VS Code is restarted, so if they are empty it is probably because you have not used the extension since VS Code started. If you try to start a debug session and then look at the logs, you should see some log entries. The .xcl files you sent are fine and work on my machine, so if we can make the extension find them there should be no problem. The
Do those files exist? Note that the VS Code extension does not support asymmetric multicore debugging yet, so you will not be able to debug both cores at the same time like you can in Embedded Workbench. However, you should still be able to debug each core individually. |
Yes, these files exist exactly as you mentioned. Following is the output log data:
Thanks for the clarification regarding multicore. How do I select different core in VSCode (sorry, I am new to VSCode - any guide or vidoe reference?) |
There should also be logs under In most cases you will have one Embedded Workbench project per core (one master and one or more partner/slave projects). By default, the VS Code extension will use the debug configuration from the project selected in the "Extension Configuration" panel. Your cm0plus appears to be configured to debug the Cortex-M0+ core. If you have another project for the Cortex-M4 core, you can select it from the project list dropdown and then launch a debug session as you normally would. |
There is no "IAR C-SPY Debug" option available. There is "IAR Config Generator" log available with following last few lines:
|
That is odd. The extension logs a message right when it starts, which makes the logs appear. Without the logs it's difficult to tell what is wrong... Do you have this problem with other projects too, or only with this one? |
Hi, I have the same issue using the VSCode plugin on ubuntu with following error: Any ideas how to solve this? |
@TomasBarakNXP Are you using the newly released BXARM 9.40? If so, you should be able to debug without these files. Is the project loaded in the IAR Build extension, and can you see the project files in the 'Files' view? |
Hi @HampusAdolfsson, |
@TomasBarakNXP I was mistaken in my last reply -- the BX series does not yet support debugging, or displaying project files in the IAR Build extension. The warning you see is incorrect and will be fixed in the next extension version. It should say that IAR Embedded Workbench 9.20.4 is required (which is currently not available on linux). |
Dear IAR Team,
I am in contact with your support team and I have been told that the problem I am facing is a bug and I should report it here.
Problem:
I am trying to integrate IAR extension with Visual code studio and following tutorial provided by IAR (youtube video: https://www.youtube.com/watch?v=LHwjdZte2Hk )
I get following error when I try to Debug (video step at 1:46) i.e. Run Start Debugging. All step till this point (1:46) are successfully done.
Even after debugging the project directly in Embedded workbench and , restarting both programs and PC, the error is still persistent.
I have tried excatly what is stated in github documentation but still no success:
“If the IAR C-SPY Debug extension fails to launch a debug session and asks you to debug the project in the IAR Embedded Workbench IDE first, this means that the required configuration settings files are missing. To generate them, you must open the project in the IAR Embedded Workbench IDE and first start and then close a debug session for each project configuration you want to generate the configuration settings files for.”
Info regarding versions:
Extra Information:
IAR Build settings:
Installed extensions:
Project Folder structure:
Best regards,
Chohan
The text was updated successfully, but these errors were encountered: