This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Visual Studio corrupts project when switching between projects

I am using the nRF52832 in several projects for several different clients. I have created a "project" under Visual Studio using VisualGDB for each one, using the automated build process. Every time I switch from one project to another, I get a VisualGDB warning "Could not locate BSP with ID.....". Choices presented are "Download BSP", "Use version x.xx", or "Locate BSP". I have tried all three at various times; I inevitably end up in another nightmare, killing a couple hours, trying to get the project back together and all the mysterious include files pulled from the right places. Surely the tools can't be THAT amateurish as to preclude multiple parallel projects, so I must be missing something.

1) Why does the message pop up, and why is it not resolved when I load the latest version to all projects?

2) Where do I set the various include paths (which in true Microsoft style, is at least a dozen directories deep)?

3) Is there a better way to do real world development?

Steve Hendrix

Parents
  • I am using Visual Studio 2019 and a self-created BSP for 15.3 and besides the learning curve of using VisualGDB instead of the supported IDEs, have had no issues.

    • Have you updated to VisualGDB 5.4?
    • If you go to Tools > VisualGDB > Manage VisualGDB Packages, you can see where the BSP for Nordic devices is installed. Are you sure you have the correct permissions to this directory? I presume you do but something is not right.
    • Are your projects using different versions of the BSP? The only time I have run across the screen you refer to is when I have installed a new BSP and the project needs to be updated.
    • The include paths are a tricky issue that I have brought up in the VisualGDB forums before. As annoying as it is, in order for the build file to be generated we have to add each header and source file to solution explorer. Visual Studio/VisualGDB should ask you if you include a header if you want to add it to the list of includes but you will still need to manually add the files to Solution Explorer. I have not used SES much but from what little I have used it, I believe you also have to add each source file to the project manually though I may be wrong on this.

    As annoying as VisualGDB can be, I have stuck with it and cannot imagine switching to Segger (Or Keil or whatever). Also, this question will probably be better answered on the VisualGDB forum. From what I can tell there are only a handful of us using VisualGDB for development here.

Reply
  • I am using Visual Studio 2019 and a self-created BSP for 15.3 and besides the learning curve of using VisualGDB instead of the supported IDEs, have had no issues.

    • Have you updated to VisualGDB 5.4?
    • If you go to Tools > VisualGDB > Manage VisualGDB Packages, you can see where the BSP for Nordic devices is installed. Are you sure you have the correct permissions to this directory? I presume you do but something is not right.
    • Are your projects using different versions of the BSP? The only time I have run across the screen you refer to is when I have installed a new BSP and the project needs to be updated.
    • The include paths are a tricky issue that I have brought up in the VisualGDB forums before. As annoying as it is, in order for the build file to be generated we have to add each header and source file to solution explorer. Visual Studio/VisualGDB should ask you if you include a header if you want to add it to the list of includes but you will still need to manually add the files to Solution Explorer. I have not used SES much but from what little I have used it, I believe you also have to add each source file to the project manually though I may be wrong on this.

    As annoying as VisualGDB can be, I have stuck with it and cannot imagine switching to Segger (Or Keil or whatever). Also, this question will probably be better answered on the VisualGDB forum. From what I can tell there are only a handful of us using VisualGDB for development here.

Children
  • I have not used SES much but from what little I have used it, I believe you also have to add each source file to the project manually

    Because Nordic provide base projects, that saves you a lot of grunt work with the "standard" stuff.

    Of course, anything you want to add to that, you have to do yourself.

    You only have to add .c files - not the headers - although you do have to manually add include paths as necessary.

    this question will probably be better answered on the VisualGDB forum

    +1

    From what I can tell there are only a handful of us using VisualGDB for development here

    Apparently so.

Related