Forum Replies Created
-
AuthorPosts
-
March 19, 2018 at 19:01 in reply to: Warning: could not set a breakpoint on main. 'Step into new instance' #20472
support
KeymasterHi,
Sorry for the confusion. If the -ggdb flag is present, the debug symbols could be accidentally removed from the final executable by using the ‘strip’ command. We have published a detailed tutorial showing how to diagnose symbol-related problems here: https://visualgdb.com/tutorials/linux/symbols/
Please feel free to follow it and let us know if you have any questions. If you are using a cross-compiler, the equivalent of the objdump tool is arm-linux-gnueabihf-objdump.exe (you would need to search its output for “.debug_xxx” sections manually as grep is not available on Windows unless you have Cygwin installed).
support
KeymasterHi,
Please try reloading the remote directories on the “IntelliSense Directories” page (not IntelliSense Settings). If this doesn’t help, please locate a specific header file that is not found and check if its directory is listed under Clang IntelliSense Diagnostics Console -> Project View->Default CFLAGS (the corresponding command-line option should look like -I<directory>).
support
KeymasterHi,
Thanks for checking this. Soldering the wires to the board could be risky and might end up breaking the board (or even your PC), so we cannot advise doing it unless you are OK with the risk.
Another option would be to try using PyOCD instead of OpenOCD. PyOCD is a part of mbed and should be well-integrated with mbed boards and debug interfaces. We have published a detailed tutorial showing how to setup PyOCD with VisualGDB: https://visualgdb.com/tutorials/arm/pyocd/
support
KeymasterHi,
This looks like something specific to the OpenOCD FLASH erasing logic. Although this is normally not covered by our support (please consider using Segger J-Link if you are looking for a debug probe that just works out-of-the-box and comes with its own support), we have published a detailed tutorial showing how to build our OpenOCD fork from scratch and debug it with VisualGDB: https://visualgdb.com/tutorials/arm/openocd/build/
Please ensure you use the following VisualGDB build: http://sysprogs.com/files/tmp/VisualGDB-5.4.1.2094.msi
This should help understand why OpenOCD decides to merge the 2 erase regions and tweak it if necessary.
March 19, 2018 at 00:14 in reply to: Warning: could not set a breakpoint on main. 'Step into new instance' #20462support
KeymasterHi,
Looks like your project is built without debugging symbols. Please ensure you specify the “-ggdb” flag in the CFLAGS/CXXFLAGS.
support
KeymasterHi,
This looks like some sort of a wiring problem. Please double-check the power and reset connections and try using a different example (e.g. LEDBlink) to see the exact moment where the board starts/stops working.
support
KeymasterHi,
Actually Segger provides their firmware for some of the LPC boards that turns the on-board LPC-Link into a limited version of a J-Link that works with their software. We would advise trying that first before doing any changes to the board.
support
KeymasterHi,
Please ensure you are using the latest VisualGDB 5.3R8 and are creating an MSBuild-based project.
support
KeymasterHi,
Thanks, this looks like an OpenOCD bug. Unfortunately OpenOCD’s support for NXP LPC FLASH programming is a bit flaky. As a workaround please try using Segger J-Link with the Segger GDB stub – it’s much more reliable and faster.
March 17, 2018 at 02:14 in reply to: Visual Studio, Eclipse equivalent of FileIO open & read files #20446support
KeymasterHi,
Eclipse likely does is via the semihosting mechanism that allows reading files on the Windows machine via special syscalls that are handled by the debugger. VisualGDB doesn’t support it as this has a very limited use (it won’t work in production code that doesn’t run with the debugger attached) and introduces security risk (attaching to a board running malicious firmware could potentially let it compromise files on your computer).
If you would like to embed binary resources (such as graphics or sound files) into your program, please consider following our Embedded Resource Tutorial.
March 16, 2018 at 18:38 in reply to: Visual Studio, Eclipse equivalent of FileIO open & read files #20444support
KeymasterHi,
Yes, there are several libraries that can help you do that. Where do you envision storing the files on the device? FLASH memory, SD card, or some other location?
March 16, 2018 at 04:31 in reply to: Imported IAR project failed: startup_stm32f401xe.c errors #20440support
KeymasterHi,
Looks like you are using both our startup file and the original assembly startup file (.S). Please try excluding the original one from the project.
If the resulting project doesn’t work, please try setting a breakpoint on the Reset_Handler() function and step through it. It should help understand what is going on.
March 15, 2018 at 05:11 in reply to: Imported IAR project failed: startup_stm32f401xe.c errors #20424support
KeymasterHi,
The original problem is most likely caused by the unexpected error settings (normally conversion from a function pointer to a function should not cause any errors). The easiest workaround would be to simply patch the file manually by replacing “&” with “(void *)&” in that block of text.
By removing the startup file from the project you have likely removed the entry point, so the program indeed won’t start. Please try restoring the startup file.
March 15, 2018 at 05:08 in reply to: Authorization is not available after reinstalling the computer system #20423support
KeymasterHi,
Unfortunately we still got the “undeliverable message” error. Please try using a different email provider (e.g. gmail).
support
KeymasterHi,
No problem, please try this build: http://sysprogs.com/files/tmp/VisualGDB-5.4.1.2093.msi
It uses separate variables for gcc/g++ executables used for linking (see link.targets, e.g. GCCBinaryNameForLinking). You can now override them in your custom rule file to use xild instead.
Please note that updating VisualGDB will overwrite any changes you made to the MSBuild files; please ensure you make backups of them.
-
AuthorPosts