Forum Replies Created
-
AuthorPosts
-
support
KeymasterHi,
The new r6 build fixes the FLASH memory type/size settings. Perhaps your device has a smaller FLASH memory than your settings specify?
If not, please try changing any settings on the Debug Settings page of VisualGDB Project Properties and then manually set the ‘PatchBootloader’ field in the .vgdbsettings file to ‘false’. If this solves the problem, please try switching the FLASH mode to DIO and reducing the FLASH size.
support
KeymasterHi,
ESP32 is generally much less reliable than ARM-based devices, especially if using pre-release version of the IDF, so strange bugs are to be expected and unless you are OK with resolving them, we would recommend staying with a stable ESP-IDF release until v3.0 is officially released as well.
With debugging stops, it could be a known VS limitation. Pressing Shift-F5 before VisualGDB reports that the session has started, would send Visual Studio into a 30-second wait. If this is the case, please try stopping the session by pressing “cancel” in the GDB Session window instead, then VisualGDB will immediately report session termination to VS.
If this does not help, please let us know if stopping the target (Debug->Break All) and then terminating the session works.
support
KeymasterHi,
No problem, here’s the link: http://sysprogs.com/files/tmp/VisualGDB-5.3.11.1847.msi
support
KeymasterHi,
Thank you for your input. We do investigate all bug reports submitted to us, however some of them correspond to very specific cases (or simply cannot be reproduced on our side), so we are unable to pinpoint and fix them without further details and follow-ups.
W.r.t. the 10-line bug, according to our records, the support ticket describing it was submitted on 10/09/2017 9:41 am and we sent you a hotfix on 10/10/2017 5:30 pm. We understand that you might have been experiencing the problem for a long time prior to submitting a ticket, however we are not able to resolve rare issues unless they are actually reported via the forum or support form.
Regarding the deletion issue, we have tried reproducing it and measured roughly the same performance using the regular VS IntelliSense and VisualGDB Clang IntelliSense. We have requested further clarifications in this thread and have not heard from you since. Please feel free to post your findings there so that we could continue the investigation.
support
KeymasterHi,
VisualGDB includes a separate IntelliSense engine optimized for GCC-specific code (like most embedded libraries), so its settings generally differ from the regular C++ settings. That said, VisualGDB detects and imports most common C/C++ language settings from the regular C/C++ pages, so you don’t need to set the same settings twice. If you believe this is not the case for some settings, please let us know and we will investigate.
You can easily combine VisualGDB projects and regular Win32 projects in one solution. If the same file is shared between VisualGDB and a non-VisualGDB project, VisualGDB will rely on Visual Studio to determine the project corresponding to the file. Depending on the VS version and settings, it may treat it as a part of the VisualGDB project or as a part of the regular VC++ project.
If this causes confusion, we would advise temporarily unloading irrelevant project during development so that Visual Studio could uniquely identify the projects for all source files.
support
KeymasterHi,
IntelliSense should not be related to the fix we added for debug visualizers. Please try double-checking if you can get the same behavior with a minimal “hello, world” project. If yes, please post the code here so that we could check it (we quickly tried it with “std::make_unique<std::string>()->” and it worked as expected).
October 10, 2017 at 23:31 in reply to: What is this? Why does it always take so long? (20+ seconds) #12632support
KeymasterHi,
Thanks for confirming this. The only other advice would be to ask in the clang/llvm mailing lists. This might be a known issue and someone from the clang community might be able to suggest a better workaround.
October 8, 2017 at 18:21 in reply to: How to make VisualGDB copy a resource file to remote machine cache #12620support
KeymasterHi,
If you are using a Custom edition or higher, you can create a custom pre-debug action (or a custom shortcut) to transfer the necessary files. Both can be configured via VisualGDB Project Properties; pre-debug actions are always launched before debugging, while custom shortcuts can be launched manually via Project->VisualGDB Custom Shortcuts menu.
Another option would be to simply add “*.xml” to the list of transferred file masks on the first page of VisualGDB Project Properties.
support
KeymasterHi,
Thanks, looks like the UART baud rate might be set incorrectly. Normally the initial gdb stub message should look like this:
$T05#b9
Please try setting the UART speed explicitly by calling the following function before gdbstub_init():
UART_SetBaudrate(UART0, 74880);
If this does not help, please check the schematics of your board to see the crystal oscillator frequency. The default UART baud rate would be 115200 * (frequency / 40 MHz). E.g. for 26 MHz it would be 74880 .
support
KeymasterHi,
The mainstream OpenOCD usually starts supporting STM32 devices a few months after they are released (we rebuild our package from the latest sources regularly).
If you don’t want to wait, please try replacing the OpenOCD binary in %LOCALAPPDATA%\VisualGDB\EmbeddedDebugPackages\com.sysprogs.arm.openocd\bin with the version from the AC6. Normally no script modification should be necessary, however if it doesn’t help, please try using the script from the AC6 distro as well.
If this does not work, please let us know and we will be happy to help.
October 8, 2017 at 03:31 in reply to: What is this? Why does it always take so long? (20+ seconds) #12614support
KeymasterHi,
This could be the case. We would advise trying lldb-mi instead of gdb (LLDB is the debugger from the clang/llvm suite) that might work with clang-generated code better. VisualGDB supports it, although it is generally less feature-complete and less stable than gdb.
support
KeymasterHi,
No problem. Let us know if you run into any issues again and we will be happy to help.
support
KeymasterHi,
Please ensure the GDB stub is enabled on the first page of VisualGDB Project Properties and you call the initialization function from your entry function.
If this is the case, please try using the “test connection” button on the Debug Settings page and try experimenting with different UART speeds.
October 7, 2017 at 06:48 in reply to: Your edition of VisualGDB does not support embedded projects #12609support
KeymasterHi,
With VisualGDB 5.3, the toolchain directory is always computed dynamically, so the workaround with creating environment variables is no longer needed.
With the missing pages, it looks like you are referring to the custom features that are not available in the Embedded edition. We have a detailed page listing all Custom-only features here. Let us know if you have any questions about it.
support
KeymasterHi,
VisualGDB uses randomized ports for J-Link and OpenOCD in order to support multiple debugging sessions at once. Normally it should choose a port randomly and configure both gdb stub and gdb to use it. Perhaps your firewall is interfering with it? If this is the case, please try adding JLinkGDBServerCL.exe to the list of exceptions.
If not, please check the command line used by VisualGDB to run segger gdb server (shown in the corresponding window in VS) and the ‘target’ command in the gdb session window. If the port numbers there don’t match, please let us know. If they do, please try running the same commands manually and see if it works and if there could be any other components (e.g. antivirus) blocking the connection.
-
AuthorPosts