support

Forum Replies Created

Viewing 15 posts - 2,686 through 2,700 (of 7,879 total)
  • Author
    Posts
  • in reply to: VisualGDB Not Showing Up in VS 2010 #26313
    support
    Keymaster

    Sorry, that would be a tricky one to diagnose. Visual Studio uses an opaque cache object to store the menu commands from various extensions, and if it gets corrupt, there is no known way to deterministically repair it.

    We could recommend a few workarounds, but none of them is guaranteed to work 100%:

    1. Try running devenv.exe /Log and checking the ActivityLog.xml file. If it shows a specific reason why VisualGDB is not loading, it might give some troubleshooting clues.
    2. If VisualGDB is just not mentioned in the log file, try creating another temporary user account on that machine and see if VisualGDB menus appear there. If they do, try moving out the Visual Studio’s per-user registry keys and folders (under %LOCALAPPDATA% and %APPDATA%) and restarting it. This will reset all per-user settings and should get VisualGDB to show again.
    3. Also reinstalling or repairing VS via Add/Remove programs might help.
    support
    Keymaster

    Hi,

    Complex projects like Qemu usually handle dependencies different from each other, so VisualGDB doesn’t provide any special interface for managing them. Hence, the easiest way to debug a tool like Qemu would be to use the Quick Debug feature.

    Another option would be to run the configure step manually, ensure that the “Make” command succeeds from the command line and then import the project as an external project built with command-line tools. When VisualGDB asks for the build command-line, you can specify the following to trigger an msys-based build with the correct environment:

    • Command: <path to mingw>\usr\bin\bash.exe
    • Arguments: –login -c “cd <directory> && make”

    Debugging normally does not require the special environment, hence using the regular settings to specify the debugged executable should work.

    in reply to: VisualGDB Not Showing Up in VS 2010 #26309
    support
    Keymaster

    Hi,

    Please try installing any other extension via Tools->Extensions and Updates. This should force Visual Studio to rebuild the menu cache.

    If it doesn’t help, please double-check whether VisualGDB commands appear under Tools->Customize.

    support
    Keymaster

    Thanks for finding this out. We would normally want to avoid modifying the hidapi source code (as it would involve forking it just for that change), so we have instead updated our OpenOCD to replace the serial number received from the command line with a correctly-cased version once a case-insensitive match is found. Please try this build and let us know if it works: https://sysprogs.com/files/tmp/openocd.exe

    in reply to: XMC4500 linker script is missing RAM regions #26300
    support
    Keymaster

    Hi,

    The VisualGDB’s linker scripts indeed follow a very basic structure. If you would like to make use of the additional memory definitions, please try downloading the XMC Peripheral Library from Infineon and importing the linker scripts from it.

    in reply to: XMC4500 Used FLASH always 0 #26294
    support
    Keymaster

    Hi,

    No problem, we have released an update to the Infineon BSP resolving this issue. Please update it via Tools->Manage VisualGDB Packages.

    in reply to: VisualGDB Preview 5.5 IAR Support #26293
    support
    Keymaster

    BTW, we have just updated our IAR tutorial showing the new out-of-the-box integration. Feel free to use it as a reference while troubleshooting IAR-related issues.

    support
    Keymaster

    OK, we have updated our OpenOCD fork to do case-insensitive comparison for CMSIS-DAP serial numbers.

    Please feel free to update your copy via Tools->VisualGDB->Manage VisualGDB Packages->Updates and let us know if it resolves the problem.

    support
    Keymaster

    Yes, here’s the relevant command line:

    cd E:/NCA/Webservice/branches/stability/Services/VisualGDB/Debug/src/comms && c:/SysGCC/raspberry/bin/arm-linux-gnueabihf-g++.exe --sysroot=c:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot -IE:/NCA/Webservice/branches/stability/Services/spdlog -IE:/NCA/Webservice/branches/stability/Services/src/comms/include -IE:/NCA/Webservice/branches/stability/Services/plc/include -IE:/NCA/Webservice/branches/stability/Services/src/plc/include -g -Werror -std=c++14 -o CMakeFiles/NFC-PLC-Comms.dir/src/NFC_comms.cpp.o -c E:/NCA/Webservice/branches/stability/Services/src/comms/src/NFC_comms.cpp

    However, it doesn’t seem to mention /usr/local/include at all, so most likely your project somehow overrides or resets the include directory list for the target. As the CMakeLists.txt structure was not created by VisualGDB, it’s hard to suggest a specific spot where it could be happening.

    That said, if you have trouble navigating the CMakeLists files of this project, please consider re-creating it from scratch using the VisualGDB GUI for adding targets and setting their properties. This will ensure that all target properties will be stored consistently and won’t conflict with each other.

    in reply to: VisualGDB Preview 5.5 IAR Support #26287
    support
    Keymaster

    Hi,

    Normally, the IAR should work out-of-the-box and modifying the Makefile should not be necessary.

    Please double-check whether the IAR toolchain appears on the Toolchain Selection page of the VisualGDB Embedded Project wizard:

    • When creating a new project from scratch
    • When trying to import a project

    If the toolchain appears while creating a new project and doesn’t appear while importing it, would you be able to send us the .ewp file so that we could check what is going on?

    in reply to: 'touch' command #26282
    support
    Keymaster

    Thanks for clarifying this. Indeed, depending on the way the toolchain was built, the touch.exe command might depend on some other DLLs.

    That said, if your Makefile track file dependencies properly, you can simply use the “cmd /c echo “//This file was updated” > trigger.h” command and include trigger.h from your main file. This will override the contents  of trigger.h with the “//This file was updated” string, but will be otherwise equivalent to using the touch command. Also please consider setting up a custom VisualGDB shortcut for this operation, so you can conveniently trigger it via the VisualGDB menus when needed.

    in reply to: 'touch' command #26278
    support
    Keymaster

    Thanks for confirming your support status. Please find the answer to your inquiry below.

    The ‘touch’ command is part of the coreutils package and is typically used to reset the last modification time of a certain file without actually changing its contents. Normally, if you are moving away from an older toolchain, we would advise converting the Make-based projects to MSBuild, as it abstracts out many low-level commands and is better integrated into VS (e.g. it will automatically rebuild the files affected by a change in compiler flags, eliminating the need to manually manipulate timestamps).

    Feel free to let us know why you need to use the touch command in your Makefiles and we will try to suggest a better way to do it with VisualGDB and MSBuild.

    If you absolutely need to use the ‘touch’ command, it should be OK to simply copy it from the original toolchain and check it into your source control system. It should not have any dependencies on the other toolchain components, so you don’t need to copy the entire toolchain. Also the “cmd /c copy /b filename.ext +,,” should work as long as you prefix it with “cmd /c” and run it in the correct directory.

    in reply to: Preparing for build counter #26271
    support
    Keymaster

    No problem, we have pinpointed and fixed the issue in the following build: http://sysprogs.com/files/tmp/VisualGDB-5.5.1.3328.msi

     

    support
    Keymaster

    The Toolchain.xml file should be in the location where you have extracted the toolchain during step 1 of this tutorial. If you believe the file is not there, please try downloading/extracting it again and if it’s still missing, please send us a screenshot of the directory with the unpacked toolchain archive.

    The OpenOCD installed into %LOCALAPPDATA% is automatically managed by VisualGDB. You can use the Tools->VisualGDB->Manage VisualGDB Packages to automatically update it (VisualGDB normally checks for updates every week). That said, updating OpenOCD would indeed not solve the original problem, as we have not had a chance to reproduce it. If you could step through the OpenOCD source code as it tries to start a debug session with the explicit serial number specified via command line and let us know why it is not handling the serial number argument as expected, we should be able to integrate the fix for it in our OpenOCD fork.

     

    in reply to: Starting debugging on STM32 is slow #26268
    support
    Keymaster

    Hi,

    It looks like most of the delay happens before gdb sends a reply to the first command. This could be caused by the antivirus interfering with its load, or by extremely slow disk performance. Please try starting the gdb executable manually and observe whether it also takes 16 seconds before it produces any output. If yes, please try disabling any 3rd-party software that could be interfering with this, or try experimenting to see if any other tools (e.g. gcc) get affected.

Viewing 15 posts - 2,686 through 2,700 (of 7,879 total)