Sysprogs forums › Forums › VisualGDB › VisualGDB 5.3 STM update issues
Tagged: update, VisualGDB 5.3
- This topic has 7 replies, 2 voices, and was last updated 7 years, 1 month ago by support.
-
AuthorPosts
-
October 2, 2017 at 14:45 #12563parsec67Participant
I had some issues when upgrading from 5.2 to 5.3 and thought I should share this.
After VGDB update was completed and project converted to 5.3 I was unable to build or clean my project, got the error Could not find a BSP with ID = com.visualgdb.arm-eabi and version = 4. Please use VisualGDB Package Manager to install it. This with BSP 4.3 already installed.
Also in VGDB Project properties, selecting Code Analyzers would bring up an error dialog about Clang IntelliSense not being enabled and code analyzers settings were unavailable. Clang IntelliSense was in fact enabled.
There were no warnings or anything indicating a problem shown in MSBuild settings or anywhere else that I noticed.
Reinstalling the ST BSP did not work. In the end the solution was to select “Rebuild MSBuild and IntelliSsense files for toolchain” under MSBuild settings.
After this, when opening successive non-converted projects and trying to build them the error shown is instead: No toolchain found. Please configure the toolchain via VisualGDB Project Properties. Under MSBuild settings a warning icon will also indicate a problem with Toolchain ID setting. Clicking this fixes the problem and building works as expected afterwards.
The latter message is okay as it points to the actual problem. The initial error message, however, looks erroneous/misleading and had me wondering for quite some time about what was going on.
October 2, 2017 at 23:55 #12569supportKeymasterHi,
Strange, com.visualgdbm.arm-eabi is a toolchain ID, not BSP ID. Could you have accidentally edited the project files manually and confused some settings? Either way, does creating new projects with the toolchain/BSP work?
If yes, could you please compare the ToolchainID tags in the working vs. non-working projects (in .vgdbsettings files as described here)?
October 3, 2017 at 10:58 #12570parsec67ParticipantHi,
I did not edit anything manually, just closed VS2017, updated to 5.3 and then reopened the project. Only the first project that I opened failed in this strange way, the others are reporting “No toolchain found” but will build after applying the fix. Creating new projects = no issues.
My old .vgdbsettings have no ToolchainID element while converted projects look like this:
<ToolchainID> <ID>com.visualgdb.arm-eabi</ID> <Version> <GCC>6.2.0</GCC> <GDB>7.12</GDB> <Revision>4</Revision> </Version> </ToolchainID>
Old .vcxproj:
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|VisualGDB'"> <GNUConfigurationType>Debug</GNUConfigurationType> <Toolchain>C:\SysGCC\arm-eabi</Toolchain> </PropertyGroup>
Converted .vcxproj:
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|VisualGDB'"> <GNUConfigurationType>Debug</GNUConfigurationType> <Toolchain>C:\SysGCC\arm-eabi</Toolchain> <ToolchainID>com.visualgdb.arm-eabi</ToolchainID> <ToolchainVersion>6.2.0/7.12/r4</ToolchainVersion> </PropertyGroup>
October 4, 2017 at 05:10 #12577supportKeymasterHi,
Thanks, the toolchain references look correct. Could you please try attaching the screenshot of the error along with the %LOCALAPPDATA%\VisualGDB\FindToolchain.props file? This should show what exactly is VisualGDB looking for and what toolchains are installed.
October 4, 2017 at 07:51 #12580parsec67ParticipantHi, attached.
EDIT: Couldn’t attach the .props file so here it is in its entirety:
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup Condition="'$(RemoteBuildHost)' == ''"> <ToolchainDir Condition="('$(ToolchainID)' == 'com.visualgdb.raspberry_pi') and (('$(ToolchainVersion)' == '') or ($(ToolchainVersion) == '4.9.2/7.7.1/r4'))">C:\SysGCC\Raspberry</ToolchainDir> <ToolchainProfile Condition="('$(ToolchainID)' == 'com.visualgdb.raspberry_pi') and (('$(ToolchainVersion)' == '') or ($(ToolchainVersion) == '4.9.2/7.7.1/r4')) and Exists('C:\SysGCC\Raspberry\toolchain.props')">C:\SysGCC\Raspberry</ToolchainProfile> <ToolchainProfile Condition="('$(ToolchainID)' == 'com.visualgdb.raspberry_pi') and (('$(ToolchainVersion)' == '') or ($(ToolchainVersion) == '4.9.2/7.7.1/r4')) and Exists('$(LOCALAPPDATA)\VisualGDB\ToolchainProfiles\localhost\com.visualgdb.raspberry_pi-4.9.2_7.7.1_r4\toolchain.props')">$(LOCALAPPDATA)\VisualGDB\ToolchainProfiles\localhost\com.visualgdb.raspberry_pi-4.9.2_7.7.1_r4</ToolchainProfile> <ToolchainDir Condition="('$(ToolchainID)' == 'com.visualgdb.xtensa-esp32-elf') and (('$(ToolchainVersion)' == '') or ($(ToolchainVersion) == '5.2.0/7.10/r5'))">C:\SysGCC\esp32</ToolchainDir> <ToolchainProfile Condition="('$(ToolchainID)' == 'com.visualgdb.xtensa-esp32-elf') and (('$(ToolchainVersion)' == '') or ($(ToolchainVersion) == '5.2.0/7.10/r5')) and Exists('C:\SysGCC\esp32\toolchain.props')">C:\SysGCC\esp32</ToolchainProfile> <ToolchainProfile Condition="('$(ToolchainID)' == 'com.visualgdb.xtensa-esp32-elf') and (('$(ToolchainVersion)' == '') or ($(ToolchainVersion) == '5.2.0/7.10/r5')) and Exists('$(LOCALAPPDATA)\VisualGDB\ToolchainProfiles\localhost\com.visualgdb.xtensa-esp32-elf-5.2.0_7.10_r5\toolchain.props')">$(LOCALAPPDATA)\VisualGDB\ToolchainProfiles\localhost\com.visualgdb.xtensa-esp32-elf-5.2.0_7.10_r5</ToolchainProfile> <ToolchainDir Condition="('$(ToolchainID)' == 'com.visualgdb.arm-eabi') and (('$(ToolchainVersion)' == '') or ($(ToolchainVersion) == '6.2.0/7.12/r4'))">C:\SysGCC\arm-eabi</ToolchainDir> <ToolchainProfile Condition="('$(ToolchainID)' == 'com.visualgdb.arm-eabi') and (('$(ToolchainVersion)' == '') or ($(ToolchainVersion) == '6.2.0/7.12/r4')) and Exists('C:\SysGCC\arm-eabi\toolchain.props')">C:\SysGCC\arm-eabi</ToolchainProfile> <ToolchainProfile Condition="('$(ToolchainID)' == 'com.visualgdb.arm-eabi') and (('$(ToolchainVersion)' == '') or ($(ToolchainVersion) == '6.2.0/7.12/r4')) and Exists('$(LOCALAPPDATA)\VisualGDB\ToolchainProfiles\localhost\com.visualgdb.arm-eabi-6.2.0_7.12_r4\toolchain.props')">$(LOCALAPPDATA)\VisualGDB\ToolchainProfiles\localhost\com.visualgdb.arm-eabi-6.2.0_7.12_r4</ToolchainProfile> </PropertyGroup> </Project>
- This reply was modified 7 years, 1 month ago by parsec67.
Attachments:
You must be logged in to view attached files.October 4, 2017 at 19:38 #12598supportKeymasterHi,
OK, this looks like a different error and should be very easy to fix. Please click the ‘repair’ link at the bottom of the MSBuild Settings page shown on your screenshot and VisualGDB will repair everything automatically.
With code analysis, the Clang engine could be disabled globally or may have troubles attaching to the project. Please check the View->Clang IntelliSense Diagnostics Console for initialization-related messages (e.g. close the solution, clear the console log and re-open it). If you are not sure, simply post the log here and we will help you understand what is going on.
October 5, 2017 at 07:20 #12601parsec67ParticipantHi,
I am unable to reproduce the initial problem I described, this only happened once with the first project I loaded after upgrading to 5.3. I even tried with an identical backup of that project and it, as well as every other 5.2 project that I tried, were all easily fixed by clicking repair.
Note the code analysis error is also gone after repairing.
The difference between loading the first and any successive project was a message dialog that was shown when loading the first project. It said something along the lines of “this project needs to be converted to 5.3. If you convert you will not be able to open this project with 5.2”. I have not seen this dialog since.
As things seems to work now it might not be worth pursuing this further. If I encounter the problem again I will revisit this post.
October 8, 2017 at 03:29 #12613supportKeymasterHi,
No problem. Let us know if you run into any issues again and we will be happy to help.
-
AuthorPosts
- You must be logged in to reply to this topic.