Forum Replies Created
-
AuthorPosts
-
August 25, 2015 at 22:05 in reply to: nrf51 Proximity Sample – Error modifying project settings #6857
support
KeymasterHi,
Please try relocating the BSP to a directory with a shorter path (e.g. c:\nrf51) as described in this tutorial: http://visualgdb.com/tutorials/arm/multiuser/
support
KeymasterAre you using OpenOCD or Segger software? Segger software should have their own implementation of semihosting (activated by “monitor semihosting enable” command).
August 20, 2015 at 18:10 in reply to: Cannot context-open header files included in the project, clang engine #6851support
KeymasterHi,
We tried reproducing your example, but could not get anything to fail. Hence I would assume that the problem is caused by some detail omitted in your message (e.g. relative paths, some extra spaces or tabs, file name lengths). If you could send us an archive with the exact files that fail for you, we should be able to fix it fairly fast.
Clang IntelliSense parses the entire project when:
- You search for a definition (not declaration with Ctrl-F12) of a function that is not defined in the current translation unit.
- The function is not static.
If this happens in some other case, please give us an example file and we should be able to fix it quickly.
We know that our IntelliSense engine has some bugs that are not present in Eclipse and that’s why we always ask for detailed repro steps that help us nailing down those bugs and fixing them. As long as we can reproduce the bug on our side, we typically release a hotfix within 24 hours. Hence if you could provide us with the exact file that causes the bugs on your side, most likely we will resolve it very fast.
support
KeymasterWe do not allow switching toolchains for existing projects because different toolchains have different settings formats and switching them may introduce serious bugs. We would recommend creating a new project and then importing the existing files into it. If you absolutely want to override the toolchain, you can edit the <mcu>.xml and <mcu>.mak files in your project directory replacing the references manually.
support
KeymasterHi,
Not sure why the double dash did not work for you, but it should be double. Here is a screenshot:
Together with unchecking the “provide default implementations” field (that sets –specs=nosys.specs), this results in the following build command line:
F:\SysGCC\arm-eabi/bin/arm-eabi-g++.exe -o Debug/stm32f4test.elf -Wl,-gc-sections --specs=rdimon.specs ... -lcompactcpp -Wl,--end-group
If the GUI does not work, you can try manually modifying LDFLAGS in debug.mak.
Regarding live variables. As a quick fix, if you are using OpenOCD, you can try connecting to port 4444 and sending OpenOCD commands (e.g. mdw <address> to read a DWORD), however you cannot do this if you are using live variables, as VisualGDB uses the same interface.
As a long-term solution, we are actually planning to add support for running tests with VisualGDB, so we could make a much higher-level interface. We would rather provide a framework for defining test functions with test asserts in your code (that will be normally ignored) and then add a special mode where VisualGDB will build a binary with the tests enabled and run the given subset of tests. Would that be more useful than just live variables API?
support
KeymasterHi,
Looks like the forum engine converted the dash incorrectly. Here is the correct option:
--specs=rdimon.specs
Please also ensure that the “provide default implementations for syscalls” checkbox is not checked.
Not 100% sure what you meant about fixed-length buffer API. Could you perhaps provide an example of a task you want to accomplish with it?
support
KeymasterHi,
Looks like the fix was incomplete. We have updated the R3 distro to include a hotfix resolving this. Let us know if it works.
support
KeymasterHi,
Could you please share the contents of the Makefile generated by Qmake?
support
KeymasterHi,
Normally the standard C library only flushes the printf() output when a newline is encountered, i.e. printf(“test”) will not print anything, but printf(“test\n”) will.
You can override this by either calling fflush(stdout) after printf() or adding the following call before printf():
setvbuf(stdout, NULL, _IONBF, 0);
If you are using newlib-nano, please add “–specs=rdimon.specs” to LDFLAGS to enable newlib-nano semihosting implementation.
If you want to do the formatting on the computer instead of the device, you would need to make a custom semihosting call handler plugin for VisualGDB. If you believe it is worth the effort, please let us know so that we could extend our SDK with API for implementing such plugins.
support
KeymasterHi,
We have fixed this in VisualGDB 5.0r3.
support
KeymasterGood to know. Let us know if it breaks again.
support
KeymasterCould you attach a screenshot of the directory list? What exactly happens when you press the “remove” button?
August 13, 2015 at 06:08 in reply to: Cannot context-open header files included in the project, clang engine #6826support
KeymasterHi,
Not fully sure what you meant. Could you provide a simple example showing file contents and expected/observed IntelliSense suggestions?
support
KeymasterHi,
Normally “continue” should work. If it does not, please try clicking the “signals” tool button in the GDB Session window. This will open a GDB-specific dialog with GDB signals allowing you to change their handling. If this does not help, please let us know a specific signal that is not working and send us a full GDB log (obtained by enabling debug logging on the GDB Settings page of VisualGDB Project Properties).
support
KeymasterHi,
You can find the linker workaround option on the Debug Settings page as shown on the screenshot below:
If the test always keeps on failing, could you please run the extended tests via Android->Device Compatibility Center and send us the logs? Perhaps we could find a different workaround.
Based on what you have described, most likely normal debugging will work for you, but if you load libraries dynamically, GDB won’t be able to see them until you run “sharedlibrary” manually.
-
AuthorPosts