Forum Replies Created
-
AuthorPosts
-
April 4, 2019 at 17:29 in reply to: Custom Arduino board package missing JLink and openOCD options? #24578
support
KeymasterNo problem. BTW, the “bin” prefix should normally be discarded automatically. Feel free to share your CodeModel.json file and we will update VisualGDB to compute the target ID fully automatically.
support
KeymasterHi,
No problem, we will clarify. This update simply adds a list of pre-defined keywords like static_cast to the suggestion lists shown by VisualGDB. Pressing ctrl-space inside static_cast<> will still show preprocessor macros, typedefs, classes and many other object types. You can limit the display to a specific type using the filter buttons at the bottom of the suggestion list.
support
KeymasterNo problem, we have fixed it in this build: VisualGDB-5.4.104.3059.msi
support
KeymasterHi,
Please try setting the PYTHONPATH variable to point to the directory on the board where the Python scripts are uploaded. You can set it via VisualGDB Project Properties ->Debug Settings -> Common Settings -> Debug Mode -> Additional Environment. This should ensure Python can find import all the necessary modules.
April 3, 2019 at 20:59 in reply to: VisualGDB Python module remote debug problems / JETSON TX2 #24565support
KeymasterThanks for the log file. It looks like the Python debugging is not working because the variables used by VisualGDB to analyze the Python context got optimized away.
Please follow the instructions in this tutorial to build a modified Python executable that will have the necessary variables available.
April 3, 2019 at 20:55 in reply to: Custom Arduino board package missing JLink and openOCD options? #24564support
KeymasterNo problem, we can help you get it to work.
First of all, please ensure you have the OpenOCD package installed (you can use Tools->VisualGDB->Manage VisualGDB Packages to double-check).
Then check the %LOCALAPPDATA%\VisualGDB\EmbeddedDebugPackages\com.sysprogs.arm.openocd\edp.xml file.
The GNUTargetFilter element defines the toolchains that are considered compatible with this package:<GNUTargetFilter>^arm-.*</GNUTargetFilter>
For Arduino projects, the GNU target is automatically derived from the name of the gcc executable reported by the Arduino build logic. E.g. for arm-none-eabi-gcc.exe it would be arm-none-eabi. You can find out the GCC path by checking the CodeModel.json file inside the build directory of your project. Simply updating the GNUTargetFilter in edp.xml to match it and re-opening the VisualGDB Package Manager to have VisualGDB reload the package definitions should get it to work. If not, please let us know the gcc executable name reported via CodeModel.json and we will investigate this further.
support
KeymasterOK, we have added a setting for this: Tools->Options->Text Editor->C/C++ (VisualGDB)->Advanced->Code Completion->Additional suggested C++ keywords.
Please try this build: VisualGDB-5.4.104.3057.msi
support
KeymasterSorry, there is no other place other than the .mak files in the project’s directory where ADDITIONAL_MAKE_FILES would be set.
If you are still getting strange errors, please try creating another project from scratch – it should rule out any accidental Makefile modifications that could be causing this.
support
KeymasterNo problem, please try this build: VisualGDB-5.4.104.3057.msi
We have added an option under VisualGDB Project Properties -> Arduino to ignore the default library paths.
support
KeymasterThanks for sending us the repro project. We have fixed the issue in this build: VisualGDB-5.4.104.3057.msi
support
KeymasterGood to know it works. As OpenOCD is a separate open-source tool that is independent from the regular ST-Link tool, this makes sense. That said, aside from occasional issues with the STM32L4 FLASH driver, OpenOCD is pretty reliable and usable.
support
KeymasterThe TestFramework.mak file would normally only be referenced when creating unit test projects, or referencing unit test frameworks. Either way, please try searching the Makefile and *.mak files for the “TestFramework” text and remove any references you find. If nothing helps, simply re-creating the project from scratch should solve the problem.
support
KeymasterHi,
Please use VisualGDB Project Properties -> Unit Tests page to remove the dependency to the test framework.
support
KeymasterHi,
We should be able to add it. Please allow 2-3 business days for us to look into this.
support
KeymasterNo problem. BTW, feel free to let us know if you pinpoint a specific file (e.g. a linker script) that is causing the issue. As long as it doesn’t break backward compatibility with existing projects, we can easily update our BSP so that you won’t need to replace any files manually.
-
AuthorPosts