Forum Replies Created
-
AuthorPosts
-
support
KeymasterHi,
No problem. Turns out the Espressif’s OpenOCD port was inadvertently resuming the target when starting the semihosting client, preventing gdb from handling the breakpoints properly. We have patched it and released an updated toolchain. Please update to R15.
support
KeymasterHi,
No problem. We have fixed the issues you described in this build: http://sysprogs.com/files/tmp/VisualGDB-5.4.7.2482.msi.
We should be able to support showing the contents of <p> with a monospace font after we switch our tooltip mechanism to a newer API, once we drop support for VS2008, however unfortunately we cannot give any time estimates on that.
support
KeymasterHi,
No problem, we can help you.
It looks like you might be using the old-style VisualGDB projects (e.g. GNU Make-based) that have to store various cached information (e.g. cached include paths) in the VC++ project files (hence, causing inconvenience with sharing the settings). If this is the case, would it be an option for you to upgrade to CMake?
The VisualGDB’s advanced CMake Project Subsystem provides much better experience – it will dynamically compute the cached file paths (and refresh when if needed) and won’t store any non-portable settings in the project file. It will automatically edit CMakeLists.txt files for you, so you won’t need to spend time getting used to the CMake syntax. You can get a quick overview of this subsystem here. If also lets you to debug the CMake scripts themselves, so you can diagnose settings-related problems faster than with GNU Make.
If this is not an option, please let us know which VisualGDB version you are using. v5.3 and later should automatically use the $(LOCALAPPDATA) syntax instead of relative paths.
support
KeymasterHi,
Strange. Just to recheck, could you please confirm that the following observations are correct:
- When creating a new project with the VisualGDB Linux Project Wizard and using Clang IntelliSense, you still get the “missing <vector>” error.
- The vector file is physically present in %LOCALAPPDATA%\VisualGDB\RemoteSourceCache\192.168.0.138\0000\include\c++\8\vector.
- The %LOCALAPPDATA%\VisualGDB\RemoteSourceCache\192.168.0.138\0000\include\c++\8 directory is mentioned on the IntelliSense Directories page of VisualGDB Project Properties.
If yes, please open View->Clang IntelliSense Diagnostics Console and switch it to Project view. Click on your project and copy the CFLAGS/CXXFLAGS for it to clipboard. Please then post:
- The screenshot of the entire VS window showing the “missing <vector>” error for the created “Hello, World” project.
- The screenshot of the IntelliSense Directories page for the created “Hello, World” project
- The CFLAGS captured from Clang IntelliSense Diagnostics Console
- Any error messages shown in the log view of Clang IntelliSense Diagnostics Console
support
KeymasterHi,
Just wanted to share an update that we have released a new R14 build of the ESP32 toolchain based on the latest MSYS2 environment from Espressif and it looks like the Master checkout of the ESP-IDF now works out-of-the-box. Please feel free to install the updated toolchain via VisualGDB Package Manager.
support
KeymasterHi,
Good to know it works. Don’t hesitate to get back to us if you run into any further problems.
support
KeymasterHi,
Sorry, our regular license only includes email/forum support, but we should be able to help you narrow this down.
Please try closing VS, renaming the %LOCALAPPDATA%\VisualGDB\RemoteSourceCache directory and creating a new project using the VisualGDB Project Wizard.
This should re-download all the necessary files and get IntelliSense to work again.
support
KeymasterHi,
No problem, we will try to clarify. VisualGDB relies on many different 3rd-party tools to handle low-level device access, FLASH programming, etc. The most popular tools for ARM devices are:
- OpenOCD. It’s completely free and actively maintained (e.g. support for ST devices is contributed by ST itself), but may be sometimes buggy or require complex setup.
- Segger J-Link. It is normally designed to be used with the Segger J-Link Pro and other Segger debug probes. The J-Link hardware is more expensive than ST-Link, as Segger maintains a fully supported replacement to OpenOCD that works out-of-the-box with many devices, supports FLASH breakpoints, etc. They also provide functionally limited versions of it that could be FLASHed into ST-Link, but they are normally not covered by their support.
VisualGDB works with both underlying tools, so you can choose one depending on your preferences.
The issue you encountered with Segger software is likely caused by a missing driver, but it’s hard to say for sure. Generally, if you prefer something that works 100% of the time and is fully supported, please consider getting a J-Link Pro.
Alternatively, please try making a copy of your linker script (via VisualGDB Project Properties) and adding the following line before the end of each section:
. = ALIGN(64);
This will align each section to the 64-byte boundary and might solve the problem with the FLASH programming.
support
KeymasterHi,
Thanks for reporting this. Looks like a bug of the preview build. Please try this build: http://sysprogs.com/files/tmp/VisualGDB-5.4.7.2478.msi
support
KeymasterHi,
Yes, we have tested our CMake fork on Cygwin. We used the following steps to build it:
- Install the regular old CMake via the Cygwin package manager. It makes configuration easier as CMake doesn’t need to build a simplified version of itself in order to process its own CMakeLists.txt files.
- Attempt the regular configuration (mkdir build && cd build && cmake ..). This will report a few missing libraries that can easily be installed via the Cygwin installer. In our tests, the libraries were libncurses-devel and libuuid-devel. You may want to try out the apt-cyg tool to install Cygwin packages from command line.
- Run “make -j <CPU count> && make install”. That should be it. Ensure that VisualGDB uses the /usr/local/bin/cmake, not /bin/cmake and you are good to go.
support
KeymasterHi,
Yes, please try installing VisualGDB 5.4 Preview 7 and get the latest version of the GoogleTest framework via the VisualGDB Package Manager. It does include GoogleMock.
support
KeymasterHi,
It looks like you have upgraded to CMake that does not support the server mode. Are you using the CMake that is shipped with Cygwin?
If yes, please try building it from sources as described here: http://visualgdb.com/documentation/cmake/annotations/
Additionally to enabling the advanced CMake mode, using our CMake fork will let you step through the CMakeLists.txt files, so you will be able to diagnose CMake-related issues faster.
October 10, 2018 at 05:40 in reply to: Building CMAKE ESP32 open source project nanoFramework #22258support
KeymasterJust wanted to share an update: we have added a CMake script debugger to VisualGDB 5.4 Preview 7, so you can easily step through ESP-IDF’s CMakeLists to quickly understand what is going on (see the announcement). In our experiments, the project() command is actually redefined by the IDF itself, in a way that does not use the VERSION argument. If it worked under the regular Visual Studio, you might have used a different ESP-IDF build that did not redefine it, or have patched it yourself.
support
KeymasterHi,
Sorry, this isn’t supported. VisualGDB projects refer to toolchains by unique IDs that are automatically resolved by VisualGDB when you open the project.
The path (neither relative nor absolute) is never hardcoded in the project itself. This allows opening the same project on multiple machines with different toolchain installation directories without modifying anything.
If you want to avoid installing the toolchain on each machine manually, you can simply create a .reg file that will register the toolchain location from your repository on each machine (see HKEY_CURRENT_USER\Software\Sysprogs\GNUToolchains) or rely on the VisualGDB Team Settings mechanism to deploy the toolchain automatically.
support
KeymasterHi,
If you are using MSBuild, you can override the object file directory for each file using the regular VS properties. Alternatively, please consider switching your project to CMake with the Advanced CMake Project Subsystem. It automatically handles such cases and also builds the projects much faster.
-
AuthorPosts