support

Forum Replies Created

Viewing 15 posts - 4,696 through 4,710 (of 7,857 total)
  • Author
    Posts
  • in reply to: ESP8266_Thing: Failed to connect to the gdb stub #13375
    support
    Keymaster

    Hi,

    If the device shows the correct “Hello, World” page, but the gdb stub doesn’t work, the problem is likely related to UART settings. Please try replacing user_init() with this:

    int user_init()
    {
        gdbstub_init();
        
        for (;;)
        {
            os_printf("%c", 0x55);
        }
    }

    Then program the firmware, open the COM port in a terminal and restart your board. Normally you should see something similar to this:

    load 0x40100000, len 31360, room 4 
    tail 12
    chksum 0x41
    csum 0x41
    s?stem param error, use last saved param!
    rf cal sector: 120
    rf[112] : 03
    rf[113] : 00
    rf[114] : 01
    
    SDK ver: 2.0.0(656edbf) compiled @ Jul 19 2016 17:58:40
    phy ver: 1055, pp ver: 10.2
    
    $T05#b9

    The “$T05#b9” message is generated by the gdb stub (it’s actually a gdb packet reporting a stop). If you don’t see the message, please comment the call to gdbstub_init() and use a logic analyzer to check the output of the UART pins. 0x55 corresponds to 01010101 in binary form, so observing the output in a logic analyzer and measuring the signal period should help find the baud rate the board is using.

     

    in reply to: Multiple definition of _isatty #13374
    support
    Keymaster

    Hi,

    The conflicts between files would likely be caused by VisualGDB referencing its own frameworks (e.g. STM32 HAL). If you are using the latest VisualGDB 5.3 with the new automatic STM32CubeMX importer as described here, it should not happen. If it does, could you please upload the project generated by STM32CubeMX and the project imported by VisualGDB and post a link here so that we could see what is going on?

    You can also just remove the references to the VisualGDB version of the HAL via VisualGDB Project Properties -> Embedded Frameworks.

    in reply to: Multiple definition of _isatty #13370
    support
    Keymaster

    Hi,

    If you would like to use fast semihosting, you would need to remove other implementations of the low-level I/O functions from the project. The default implementations from the toolchain shipped with VisualGDB are marked as weak, so they will be automatically replaced by the fast semihosting ones (when enabled), however if your project provides different implementations (in syscalls.c?) please try excluding them from the project (if you are using the GNU ARM toolchain, please disable regular semihosting on the first page of VisualGDB Project Properties).

    in reply to: No executable file specified error #13369
    support
    Keymaster

    Hi,

    Yes, it could have been something caused by the project path. If you encounter this again, please try switching GDB Session to “All GDB interaction” and check the gdb messages about loading symbols.

    in reply to: No executable file specified error #13366
    support
    Keymaster

    Hi,

    Looks like the project has not been built. Please ensure you build it before starting debugging.

    • This reply was modified 7 years, 9 months ago by support.
    in reply to: Stepping over/through std::shared_ptr #13361
    support
    Keymaster

    Hi,

    No problem, we will explain how the “Step into specific” functionality works.

    First of all, VisualGDB doesn’t support “blacklisting” functions for automatic stepping through them yet (we will try to add this in one of the next releases), however it supports the “Step into specific” command as shown below:

    Normally it should work out-of-the-box, however if it doesn’t, you can fine-tune it by editing the StepIntoSpecific.xml file in the VisualGDB directory. The Step Into Specific feature works by disassembling the instructions corresponding to the active line in code and searching for the patterns defined in StepIntoSpecific.xml. Once a pattern is found, the corresponding label will be shown in the “Step into specific” menu and once you select it, VisualGDB will set a breakpoint at that instruction and then do a single “step in” step.

    If it doesn’t work as expected and you are not sure how to adjust it, please let us know the details (i.e. your code and the output from the GDB Session window showing VisualGDB disassembling the current line) and we will help you get it to work.

    Attachments:
    You must be logged in to view attached files.
    in reply to: ESP8266_Thing: Failed to connect to the gdb stub #13358
    support
    Keymaster

    Hi,

    This could be happening due to an invalid FLASH mode/frequency. Please try experimenting with different FLASH modes (DIO/QIO) and setting the frequency to the minimum value.

    in reply to: Stepping over/through std::shared_ptr #13352
    support
    Keymaster

    Hi,

    Sorry, this is a known issue (priority conflict between natvis engine and the C# visualizer API). We will try to address this is one of the next maintenance releases. As a workaround, please consider creating a basic visualizer using the C# API as described here: https://visualgdb.com/w/tutorials/visualizergettingstarted/

    in reply to: MBED SD Card File system not compiling on VisualGDB #13351
    support
    Keymaster

    Hi,

    You can check the mbed version used by VisualGDB via Tools->VisualGDB->Manage VisualGDB Packages. The latest version shipped with VisualGDB is 5.6.3, so the code in this example should normally work.

    If you are getting strange mbed-related errors, you could also try importing the project directly from mbed-cli as shown in this tutorial.

    in reply to: Autocomplete not working #13347
    support
    Keymaster

    Hi,

    This could be caused by several different issues. Please check if the project can be built successfully. If not, please try creating a new project via VisualGDB Project Wizard and it will automatically get all the dependencies. If the build succeeds, but IntelliSense doesn’t work, please attach a screenshot of the entire Visual Studio window here and we can check for common problems.

    support
    Keymaster

    Hi,

    Thanks, looks like VisualGDB was handling a certain type of hard links in tar archives incorrectly. We have fixed it in the following build: http://sysprogs.com/files/tmp/VisualGDB-5.3.18.1978.msi

    Please note that you would need to reload the IntelliSense directories via VisualGDB Project Properties.

     

    support
    Keymaster

    Hi,

    Different Linux distros may have slightly different include directory layouts, so please double-check that the files actually exist in the same directory on the other machine (please also double-check that you are looking at a correct folder on the Windows side – the dir.txt file should contain the remote directory name).

    If you can confirm this, please try reloading all include directories via VisualGDB Project Properties. If this doesn’t resolve the problem either, please check that you can access the header files from your current user account (incorrectly set permissions would prevent VisualGDB from synchronizing those files properly).

    in reply to: Highlighting: typedef vs. using #13336
    support
    Keymaster

    Hi,

    No problem, thanks for renewing. If you encounter any further problems, feel free to contact us again.

    in reply to: Highlighting: typedef vs. using #13333
    support
    Keymaster

    Hi,

    No problem, please try this build: http://sysprogs.com/files/tmp/VisualGDB-5.3.18.1977.msi

    in reply to: Different JTAG/SWD programmers in shared project #13332
    support
    Keymaster

    Hi,

    No problem, we have added this as an experimental feature to the following build: http://sysprogs.com/files/tmp/VisualGDB-5.3.18.1977.msi

    To enable it, please create a file called <name of .vgdbsettings file>.vgdbsettings.<user name>.user with the following contents:

    <?xml version="1.0"?>
    <VisualGDBUserPreferences xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <UserDefinedVariableValues />
      <DebugPreferences xsi:type="com.visualgdb.debug.embedded.preferences">
        <OverriddenSettings>
            <DebugMethod>
                <!-- Contents of the DebugMethod tag from the .vgdbsettings file -->
            </DebugMethod>
        </OverriddenSettings>
      </DebugPreferences>
    </VisualGDBUserPreferences>

    If you are not sure about the name of the file, try adding a live variable or a visual watch to your project and VisualGDB will automatically create the .user file.

    The <DebugMethod> value from the .user file will now override the settings from the .vgdbsettings file (although the GUI may not edit the settings properly).

Viewing 15 posts - 4,696 through 4,710 (of 7,857 total)