Forum Replies Created
-
AuthorPosts
-
support
KeymasterThanks for sharing the patches. We have integrated them into our OpenOCD fork (20190828-0.10.0 available via VisualGDB Package Manager).
support
KeymasterHi,
This is by design. Most microcontrollers expect the interrupt vector table pointing to the entry point to be at a specific address (typically, beginning of FLASH) and placing arbitrary data there will prevent the program from starting.
The Embedded Memory Explorer shows the memory layout as defined in the BSP and ignores any manual changes to the linker script. Normally, we advise using the Additional Memories page of VisualGDB Project Properties (Custom edition and higher) to add extra memories to your project and have VisualGDB automatically update the linker script, generate macros for placing variables into those memories and also update the Embedded Memory Explorer.
support
KeymasterHi,
Normally F10 and F11 should work as usual. Perhaps the debug session doesn’t start properly, or the initial breakpoint doesn’t hit (i.e. the program is still running in the background)? If you are not sure, please try attaching a screenshot of the VS window with the step commands disabled and we will help you understand what is going on.
The printf() output should be redirected to Visual Studio as long as you reference the Advanced Semihosting and Profiling framework via VisualGDB Project Properties -> Embedded Frameworks, or enable the regular semihosting via the first page of VisualGDB Project Properties. Let us know if you need more details on this.
support
KeymasterHi,
From the VisualGDB side, there are no limitations regarding the C++17 support. As long as you are satisfied with the level of support provided by the GCC version you are using, it should be totally OK.
The ‘experimental’ label was added to VisualGDB settings when the C++17 support was still incomplete in most of GCC releases and should not apply to the latest GCC anymore. We have updated VisualGDB internally to remove the ‘experimental’ label.
support
KeymasterNo problem, we have fixed the duplicate window issue in this build: VisualGDB-5.4.112.3249.msi
support
KeymasterPlease try adding “pthread” to the “library names” field on the Build Settings page of VisualGDB Project Properties. You can read more about various linker-related settings here: http://visualgdb.com/support/linkerinputs/
support
KeymasterHi,
Sorry, the Advanced Mbed project subsystem relies on mbed itself to orchestrate the build and hence VisualGDB only allows changing the settings supported by the mbed-cli itself.
Based on a quick research, it looks like supporting floating point printf/scanf with mbed-cli requires a minor modification to the build scripts (see this Github issue). Please try applying it to the mbed copy used by your project and mbed-cli launched by VisualGDB should automatically pick up the updated build rules next time you build the project.
support
KeymasterHi,
No problem, we will help you understand how VisualGDB handles the K210 build and how to get the setup you described.
When you create a VisualGDB project for the K210 device, it automatically downloads a copy of the K210 SDK into %LOCALAPPDATA%\VisualGDB and references it from the project. The SDK copy contains an XML list of the sources and build settings required for K210 projects, so VisualGDB can automatically generate a VS project that would replicate the build result from the original K210 SDK.
Based on your description, you have likely imported another copy of the SDK as a generic project (importing the list of source files, but not the build settings that were captured from the original K210 SDK) and hence the build produces an invalid binary.
If you would like to have a separate copy of the K210 SDK and be able to modify it yourself, please instead try creating a regular VisualGDB project and then converting it to a stand-alone one as shown in this tutorial. This will copy the SDK files into the BSP subdirectory in your project folder and will also copy all the necessary build settings, so that the build result will be equal to the regular project. while letting you tweak that specific copy of the SDK according to your needs.
If you encounter any further issues, please feel free to let us know. The K210 support is very new and all feedback will be highly appreciated.
August 21, 2019 at 20:34 in reply to: VGDB Cannot read MDK device list when use Keil toolchain #25692support
KeymasterPlease let us know your license key so that we could check your support status.
support
KeymasterGood to know it works. Just in case anyone else is looking for the same functionality, our bootloader tutorial describes the steps necessary to merge the bootloader with the main application.
support
KeymasterHi,
Yes, please use the following setting:
VisualGDB Project Properties -> Debug Settings -> Program Output -> Keep Remote Console window after debugging ends
Regarding F5, normally unless you explicitly activate the console window by clicking on it, F5 should be handled by the Visual Studio itself and should result in continuing from the breakpoint.
August 20, 2019 at 16:03 in reply to: Whats the latest version if ESP32IDF suppored in visualgdb please #25681support
KeymasterVisualGDB will officially support ESP-IDF 3.3 and 4.0 once they are released as stable releases. Until then, you can try using VisualGDB with those ESP-IDF versions, however some functionality may not work as expected, as Espressif often changes the internal structure of ESP-IDF during the pre-release stage.
support
KeymasterHi,
VisualGDB supports Segger J-Link and any programming interface supported by OpenOCD (that includes FT2232-based devices such as Olimex ARM-USB-OCD-H and almost every other popular debug probe). The only exceptions are U-Link (as it’s based on proprietary protocols not supported by OpenOCD) and generic CMSIS-DAP (it’s technically supported, although is very slow due to the USB HID poll rate limitations).
You can read more about the supported devices and debug interfaces here: http://visualgdb.com/hwsupport/
support
KeymasterStrange, now it looks like the {upload.verbose} got expanded to an empty string. Please try removing the “{upload.verbose}” part completely from the programming command line (also remove the quotes).
support
KeymasterThe easiest way to achieve that would be to embed the simulated data into your program as an embedded resource and then reference the Fast Semihosting framework via VisualGDB Project Properties -> Embedded Frameworks and output the results via the regular printf() calls. The output will be shown in the Semihosting Output window inside Visual Studio and can be saved to a file at the end of the debug session (see VisualGDB Project Properties -> Embedded Debug Tweaking).
-
AuthorPosts