Forum Replies Created
-
AuthorPosts
-
supportKeymaster
Hi,
The OpenOCD implementation of semihosting is rather unreliable, hence VisualGDB provides its own one. Naturally, it will only work when using VisualGDB for debugging.
supportKeymasterIf you are able to connect (and successfully use) gdb to OpenOCD when you run it manually, please share the following:
- The exact command lines from OpenOCD and GDB from the manual debug session that works.
- The OpenOCD and GDB command lines shown by VisualGDB/VisualKernel. You can find the OpenOCD command line in OpenOCD window in Visual Studio during a debug session. The GDB command line is shown in the GDB session window.
- A screenshot of the exact error message you get with VisualGDB/VisualKernel.
supportKeymasterHi,
If OpenOCD generally doesn’t work with your hardware, running it with VisualGDB/VisualKernel won’t automatically resolve the OpenOCD issues. If this is the case, please consider asking in the OpenOCD or Raspberry Pi community.
If you can get OpenOCD/gdb working when you launch it manually, we can gladly help you configure VisualGDB/VisualKernel to use this setup for debugging.
supportKeymasterPlease refer to the following page for a detailed description of MSBuild project files: https://visualgdb.com/documentation/projects/msbuild/
supportKeymasterHi,
In general, ignoring the .vs, .visualgdb and build subdirectories should work for most project types, however you may need to ignore additional file types depending on your project type. You can find the detailed description of different project types and related files here.
If you encounter file types that are not covered by the documentation, feel free to let us know and we will update it accordingly.
supportKeymasterHi,
This looks like a bug in the gdb executable, that is typically triggered by some constructs in the debug symbols. You can try working around it by:
- Using a different gdb executable from an older or newer toolchain.
- Explicitly selecting another DWARF version in gcc settings (e.g. -gdwarf-4).
- Stripping the debug information from the object files you are not intending to debug.
October 14, 2022 at 20:16 in reply to: Can not debug Raspberry Pico target using remote Raspberry Pi #33318supportKeymasterHi,
Based on the screenshot you attached, you have 2 instances of OpenOCD running simultaneously (one in the terminal and another launched via VisualGDB). This will indeed not work, as they will conflict with each other.
Please make sure you only have one instance at a time.
supportKeymasterHi,
This looks like a question about the ESP-IDF framework and not something specific to VisualGDB. Please consider asking on the Espressif forums instead. Any advice they may suggest will also work with VisualGDB.
supportKeymasterHi,
No problem, we will try to help you. Please try clicking the “show exception details” link and share the stack trace shown, there as long with the VisualGDB build number from the Help->About VisualGDB window.
supportKeymasterThanks for renewing your support.
This error would happen if the project file would be corrupt (e.g. edited manually). The easiest way to troubleshoot it would be to create another similar project from scratch, make sure it builds, an then compare the .vcxproj files one-by-one, specifically the PropertyGroup parts.
If there are too many differences, you can try merging half of them at a time (i.e. replacing the XML tags with the ones from the other file) and reopening the solution to see if it solves the problem.
October 11, 2022 at 14:17 in reply to: switching between processors with project configuration? #33303supportKeymasterHi,
In general, we would advise migrating your project to Advanced CMake. You could then organize your project to have multiple platforms, each targeting a specific MCU, and multiple targets (applications/libraries) reusing the same MCU definition from the platform. E.g. see this tutorial.
If you would like to keep MSBuild instead, you would need to fork the mcu.xml and mcu.props files and update the references as shown below:
Location Element Target MSBuild projects properties -> Embedded Project MSU Build Settings File New mcu.props file MSBuild projects properties -> Embedded Project VisualGDB Settings File New .vgdbsettings file New .vgdbsettings file <EmbeddedProfileFile> New mcu.xml file This will keep the settings in multiple configurations/platforms separate from each other.
October 11, 2022 at 14:02 in reply to: target_compile_definitions doesn't work in STM32CubeMX based projects #33302supportKeymasterGood to know it works.
The STM32CubeMX generator insists on generating the main file so that it could automatically switch between non-RTOS vs. FreeRTOS configurations, that have a completely different initialization sequence, but we do agree that it is not very convenient.
If you absolutely want to override it, you can mark the file as “excluded from build” via the context menu, and provide your own main file, however it could cause weird conflicts in case the logic in STM32CubeMX changes in future versions.
supportKeymasterHi,
It looks like your technical support period has expired. We would be happy to help you, however we would kindly ask you to renew your technical support on the following page first: https://sysprogs.com/splm/mykey​
supportKeymasterThanks for the screenshot.
It looks like you are using ESP-ADF, not the regular ESP-IDF, and there was indeed a bug in VisualGDB preventing it from showing the device list for ADF projects.
Please try this build: VisualGDB-5.6.108.4753.msi
supportKeymasterHi,
You can change the device type via VisualGDB Project Properties -> ESP-IDF Project -> Configuration Settings -> Device.
-
AuthorPosts