support

Forum Replies Created

Viewing 15 posts - 2,716 through 2,730 (of 7,828 total)
  • Author
    Posts
  • in reply to: Hard fault on STM32L053 #26055
    support
    Keymaster

    Hi,

    It’s hard to say for sure what is causing it, but we can suggest a few possible causes:

    • Please double-check whether the code and stack location (evaluate $pc and $sp in the watch window) make sense (i.e. fit into FLASH and RAM of the device respectively). Please try locating the exact device name printed on the chip and double-check its datasheet. Accidentally selecting a different device while creating the project would lead to this type of error.
    • Please try creating a “Blinking LED” project with the correct port settings (of an actual on-board LED), program it, verify the FLASH memory contents and try plugging the board into another power source to see whether the LED starts blinking. Sometimes unreliable JTAG/SWD connection, or unreliable power cause weird behavior similar to what you have described.
    in reply to: Unable to create a blink Arduino project #26049
    support
    Keymaster

    Please check the part of the build log before the “Command exited with code 1” line. It should show the actual error message coming from the arduino-builder tool.

    in reply to: Unable to create a blink Arduino project #26047
    support
    Keymaster

    Hi,

    Please try this build: VisualGDB-5.5.1.3289.msi

    Then open the main source file and check if VisualGDB suggests cleaning up redundant Arduino packages. If yes, please proceed with the cleanup.

    If not, please try building the project and share the output from the View->Output->Build view (the screenshot you attached shows the output from VisualGDB Advanced Project Subsystem that is different).

    in reply to: ESP-IDF files displayed wrong after renaming main #26046
    support
    Keymaster

    Thanks for confirming your support status.

    Normally, VisualGDB would display the sources of each component under a corresponding entry in the “Components” view except for the component called “main”. The contents of “main” is shown directly under the project item for convenience.

    Based on the screenshots it looks like VisualGDB could not find the main component anymore, so picked up the first component reported by ESP-IDF and merged its contents directly underneath the project view instead.

    Normally, we would advise keeping the “main” component name if you decide to move it into a different folder, as it clearly indicates which of the component contains the startup code and makes the project structure easy to read. We could also add an setting that would allow overriding the main component name by editing the XML contents of the .vgdbcmake file, although we would generally advise keeping the main name for readability.

    support
    Keymaster

    Good to know the USB device display works. The “unable to find CMSIS-DAP device” issue is a bit trickier. Generally, when VisualGDB detects multiple instances of the same debugging interface, it issues a special command to OpenOCD (cmsis_dap_serial for CMSIS-DAP devices) in order to pick a specific one.

    If this doesn’t work, either VisualGDB determined the serial number incorrectly, or OpenOCD fails to handle it.

    In order to fully track this down, you would need to build OpenOCD from source (see this tutorial), configure it to run the “cmsis_dap_serial” command and step into the logic responsible for handling it and filtering devices by serial numbers. If it turns out VisualGDB is passing the serial number incorrectly, please let us know more details and we should be able to fix it.

    If the problem is on the OpenOCD side (e.g. it tries to query the serial number from the HID-level device instead of the USB-level device), feel free to submit a merge request with the fix to our OpenOCD repository and we will include it in the version we ship with VisualGDB.

    We can also do all the investigation and OpenOCD fixing for you, however as it involves troubleshooting external tools and hardware, this would be a subject to a customization fee. Please feel free to contact our sales to get a quote if you would like us to handle this for you.

    in reply to: ESP32 IDF 4.1dev Missing Configs #26035
    support
    Keymaster

    Thank you for your inquiry. Unfortunately, the description you provided does not sufficient details for us to reproduce the problem or pinpoint its location. Please describe the issue using the 3-step format shown here.

    Please use accurate and precise descriptions for all the settings you change in the wizards and property pages, and also make sure describe the exact modifications you do to any configuration files.

    Once we have a clear sequence of steps that allows reproducing the problem on our side, we are usually able to release a hotfix or advise a workaround promptly.

    support
    Keymaster

    No worries. The logic we added for elimination of the duplicate entries does compare the serial numbers, so normally having 2 different physical devices should show them correctly.

    Please try this build: VisualGDB-5.5.1.3287.msi

    Please try enabling View->Other Windows->VisualGDB Diagnostics Console, then open the device list, confirm that there is just 1 device instance, while 2 physical devices are plugged in  and click on the “copy to clipboard” link on the device entry. This will produce a detailed log of enumerating the USB devices and eliminating the duplicates to the VisualGDB Diagnostics Console. Please share the output from that window and we should be able to understand what is going on and fix it further.

    in reply to: ST-Link firmware upgrade notification #26025
    support
    Keymaster

    Hi,

    This is normally something managed by the OpenOCD tool. As its support for ST-Link is maintained by ST’s engineers, they may eventually merge this into the mainline OpenOCD repository and then VisualGDB will display this warning as well once it picks it up from OpenOCD.

    support
    Keymaster

    Strange. Please try installing an older version of the package, locate the directory where VisualGDB installs it (it will appear in the “installed” list) and remove the entire parent directory (that contains both package versions). Then delete the %LOCALAPPDATA%\VisualGDB\ArduinoPackageCache directory and reinstall the latest package. This should clear any incorrectly cached data and get the package to appear again.

    in reply to: Problems with M5Stack as ESP-IDF project #26019
    support
    Keymaster

    Hi,

    This looks like a generic ESP-IDF issue and not something specific to VisualGDB. Please feel free to ask on the Espressif forum.

    If you get specific low-level instructions and need help translating them to VisualGDB-level settings, please let us know and we will help.

    in reply to: STM32F429ZI Register View #26010
    support
    Keymaster

    Hi,

    Sorry, unfortunately the ST’s SVD files (files with register definitions) do not include much details, so our BSP building logic uses some heuristics to extract this information from ST’s header files. This process is not perfect and it may skip some definitions, but unfortunately there is no better source for subregister information.

    Our best advice would be to locate and patch the corresponding definition file in %LOCALAPPDATA%\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.stm32\<family>\DeviceDefinitions (you can keep the unzipped file in place and it will override the .xml.gz file automatically).

    support
    Keymaster

    Hi,

    The different device IDs happen due to the specifics of Windows driver matching (the HID\<..> is a high-level device node created on top of the USB\<…> device node, letting the USB controller, USB HID and HID class-specific drivers work together in a layered fashion). It should not affect any functionality on the VisualGDB level.

    Either way, we have updated VisualGDB to automatically eliminate redundant USB device entries that correspond to the same physical device. It should completely resolve the problem.

    Please try this build: VisualGDB-5.5.1.3285.msi

    If it still doesn’t work, please share an updated screenshot of the VisualGDB device list with the instance ID display turned on.

    support
    Keymaster

    Sorry about that. We have fixed the package cleanup GUI in the following build: VisualGDB-5.5.1.3285.msi

    Unfortunately, we could not reproduce the problem with the AVR boards missing. Please check if it is resolved in the latest build. If not, please share a screenshot of the “Installed -> Arduino Platforms” view so that we could see what is going on.

    in reply to: Creating ESP32 MSBuild project failed #26007
    support
    Keymaster

    If we completely hide it from the regular wizard, it may cause more confusion, making it look like the ESP32 toolchain is not installed.

    So currently VisualGDB shows the ESP32 toolchain in the regular embedded wizard, but displays a tip suggesting to use the advanced ESP-IDF project wizard.

     

    in reply to: Created c++ project #25991
    support
    Keymaster

    Hi,

    Most likely you are cloning a project sample that was not tested in C++ mode and can be only created as a C project.
    Please consider changing the main file extension to .cpp, although you may need to adjust the sample code accordingly.

Viewing 15 posts - 2,716 through 2,730 (of 7,828 total)