support

Forum Replies Created

Viewing 15 posts - 2,626 through 2,640 (of 7,952 total)
  • Author
    Posts
  • support
    Keymaster

    Hi,

    The AdditionalIncludeDirectories variable exists on the MSBuild level and is not generally passed to the VisualGDB level (to make things more complicated, it is not a global MSBuild variable, but a property of each individual ClCompile item).

    To work around it, you would need to create a custom MSBuild target, translate %(ClCompile.AdditionalIncludeDirectories) into a global variable (just placing <PropertyGroup> inside the custom target might work) and then use the <Exec> task to launch the custom tool. The rest of the variables you mentioned are available both on VisualGDB and MSBuild level, so they will work in this scenario as well.

    An easier alternative would be to create a basic property sheet defining the include directories (see the stm32.props file created by VisualGDB for embedded STM32 projects), referencing it from your project and parsing its contents from the custom tool. This will avoid complex MSBuild scripting and will still avoid having multiple redundant definitions of the include directories.

    in reply to: Unit test xml report not Junit compatible #26777
    support
    Keymaster

    Sorry, we have not explicitly tested VisualGDB with Jenkins yet. Producing the .trx file with the /vsoutput option and then using the regular MSTest plugin should normally work. If not, please share the details and we will try to help you configure it.

    in reply to: ERROR while unpacking kernel sources #26776
    support
    Keymaster

    Thanks for reporting this. We have fixed it in our development branch and will include in the next VisualKernel update.

    in reply to: Update kernel in debuggee #26775
    support
    Keymaster

    Hi,

    It looks like the linux-source-4.19 package got corrupt. Please try removing it via apt-get remove, deleting the /usr/src/linux* folders and letting VisualKernel reinstall it.

    in reply to: Import STM32CubeIDE project #26772
    support
    Keymaster

    Yes, starting from VisualGDB 5.x, you can import the STM32CubeIDE projects directly using the STM32CubeIDE import plugin.

    • This reply was modified 2 years, 12 months ago by support. Reason: mentioned new import plugin
    support
    Keymaster

    Sorry, could you please post a screenshot of the entire VS window as well. It really shows a lot of important information about the state of the Clang engine (see this explanation). Otherwise, it’s virtually impossible to guess what is going on.

    Second of all, does the problem happen with GPIO_PIN_Reset? If yes, please try the following:

    1. Try simplifying the expression as much as possible. E.g. “int x = GPIO_PIN_Reset”. Does this still reproduce the problem? If not, is there any specific change between the repro code and the “int x” example that changes the behavior?
    2. If the simple case still triggers the problem, does moving right after the preamble (i.e. block of #include<>’s)  change anything?
    3. What happens if you add another enum (not just another value to an existing enum) near the place where GPIO_PIN_Reset is defined? Will it trigger the problem as well?
    4. If yes, what if you move the newly added enum to the source file that triggers the problem (try putting it before and after the #include<> block)?
    in reply to: Steps for using custom kernel #26751
    support
    Keymaster

    Hi,

    We would advise creating a VisualKernel project for the kernel itself  (see this tutorial). First of all, this will allow building and installing the kernel directly from Visual Studio.

    Second of all, all you would need to do when creating a new kernel module, is to select “My Kernel is built with VisualKernel” and point it to the Kernel project file. This will automatically handle build paths, versions and source file mappings (see this tutorial).

    in reply to: Not compile some files based on current configuration #26750
    support
    Keymaster

    Thanks for confirming your license key.

    The “Exclude from build” setting works out-of-the-box for MSBuild-based projects only. In order to achieve the same effect with GNU Make-based projects, we can advise one of the 2 workarounds:

    1. You can manually use the $(filter-out …) expression combined with ifeq($(CONFIG), DEBUG) to filter out specific files from the source file list (see how this is handled for STARTUPFILES). VisualGDB will preserve your changes to the Makefile, although they won’t be synchronized with the VS-level “exclude from project” setting.
    2. Alternatively, simply surround the code in your source files with #ifdef DEBUG (or any other macro used in your project to distinguish debug/release configurations).
    in reply to: xml file not being copied #26739
    support
    Keymaster

    Most likely, the *.xml is not mentioned in the copied file masks. If you could share a screenshot of your settings, we should be able check this and help you find the cause.

    in reply to: Visual gdb return 0 on a failed unit test #26738
    support
    Keymaster

    The return code of 0 means that the there was no critical error preventing VisualGDB from launching the tests. You can find out the specific tests that succeeded/failed by analyzing the report file generated by either /output or /vsoutput option (see this thread).

    If this doesn’t help, please let us know what exactly you are trying to accomplish and we will try to suggest the best setup for it.

    in reply to: Unit test xml report not Junit compatible #26737
    support
    Keymaster

    Hi,

    Although VisualGDB cannot directly generate a Junit-compatible output, it can be configured to generate the outputs in the Visual Studio/MSTest test report format.

    You can do this via the following command line

    VisualGDB.exe /runtests <...> /vsoutput:<output file>

    As both JUnit and MSTest test report formats are very popular, there are various open-source translators between them, so we would advise simply running one of them after VisualGDB returns.

    in reply to: Visual gdb option disappeared #26736
    support
    Keymaster

    Good to know it works. If you encounter further problems, feel free to get back to us.

    in reply to: ESP32 Static/Shared Library Wizard or Project #26735
    support
    Keymaster

    It looks like you are not using the ESP-IDF component GUI. Please ensure you use the Advanced ESP-IDF project wizard as suggested by VisualGDB and shown in this tutorial.

    in reply to: Arduino STM32 error finding file #26734
    support
    Keymaster

    Unfortunately we are not able to guarantee that every possible combination of Arduino targets and libraries will work. Please consider posting on the Arduino forums for further support.

    in reply to: Failed to debug if multiple STM32 are connected #26733
    support
    Keymaster

    We have determined that the problem occurs in a 3rd-party component: OpenOCD. Please contact OpenOCD support for further help with this.

Viewing 15 posts - 2,626 through 2,640 (of 7,952 total)