support

Forum Replies Created

Viewing 15 posts - 5,911 through 5,925 (of 7,849 total)
  • Author
    Posts
  • in reply to: TM4C1294XL LaunchPad OpenOCD Code 1 Error #9595
    support
    Keymaster

    Hi,

    This looks like a driver problem. Please try pressing the ‘Test OpenOCD Settings’ button so that VisualGDB can check for known driver issues.

    in reply to: Formatting with Ctrl+K-D #9590
    support
    Keymaster

    Hi,

    VisualGDB usually preserves the comment indentation when reformatting the code. If it actually breaks them in your case, please let us know the exact repro steps (i.e. how the code looks before/after formatting what would you expect) and we will fix this.

    Most of the settings can be controlled via Tools->Options->Text Editor->C/C++ (e.g. Indentation -> Indent namespace contents). Formatting settings that are specific to VisualGDB can be controlled via Tools->Options->Text Editor->C/C++ (VisualGDB).

    Regarding Resharper, the problem is that Resharper does not know how to import VisualGDB-specific settings from VisualGDB projects and hence does not work correctly. The only solution we could offer is add features you miss to our Clang IntelliSense engine so that you can still have them for VisualGDB projects.

    in reply to: Multiple user problem #9589
    support
    Keymaster

    Hi,

    Please open the VisualGDB Project Properties and either click “regenerate BSP-specific files” or change the MCU to a different one and back. This should regenerate the file references in a multiuser-safe way. If this still does not help, please let us know what exact error you are getting so that we could advise you further.

    in reply to: Calling convention ? #9588
    support
    Keymaster

    Hi,

    VisualGDB does not change the way gcc handles the calling convention, so this problem may be caused by different optimization settings or inaccurate debug information generation. We would advise adding some clearly traceable lines to your code like this:

    static volatile int var;
    var = arg_1;

    Then try switching to the Disassembly view to understand where exactly does the compiler take the value that is stored into ‘var’.

    in reply to: Hang/crash when using >3 breakpoints #9587
    support
    Keymaster

    Hi,

    Sorry about that. Based on your description this looks like a potential problem with the board or the USB driver, so trying a different board or a different machine might easily solve this.

    If this is not possible, please do the following to diagnose this:

    • Start debugging as usual
    • Press “break all” to cause the “Command aborted” error
    • Switch the GDB Session window to “All GDB Interaction”
    • Copy all contents of the GDB Session window and the OpenOCD window and post it here

    This should help us understand what could be causing this and give you further advice.

    in reply to: using another framework #9586
    support
    Keymaster

    Hi,

    VisualGDB does not use the VC_IncludePath and other directories when compiling the Android code. Which version of VisualGDB are you using?

    in reply to: STM32 Detailed ADC tutorial issue #9585
    support
    Keymaster

    Hi,

    Please try the Debug->Break All command and see what code is running. Perhaps you have missed one of the interrupt handlers and the program is stuck in DefaultHandler()?

    If no other interrupt occurs, please try stepping through the ADC interrupt handler provided by HAL and check that it clears the ‘conversion complete’ flag in the ADC peripheral so that the interrupt is not raised immediately after.

    Another reason for this could be that the ADC is configured to fire the interrupts too fast and the main loop never gets a chance to run. In this case lowering the ADC frequency or raising the CPU clock frequency should help.

    in reply to: Debugging impossible when timer interrupts are enabled #9575
    support
    Keymaster

    Hi,

    You could run the “mon cortex_m maskisr on” command in the GDB Session window to automatically disable interrupts during stepping.

    However this would only work for low-level JTAG adapters (i.e. won’t work with ST-Link). If you are using ST-Link, we would recommend setting the PRIMASK register to disable the interrupts manually while you are stepping through the critical parts of code.

    in reply to: NRF51 DFU OTA #9574
    support
    Keymaster

    Hi,

    Sorry, we do not directly support this yet. It is on our radar, so feel free to follow us on twitter to get notified once we release a tutorial.

    in reply to: Cannot compile Raspicam #9573
    support
    Keymaster

    Hi,

    Looks like your toolchain sysroot may have the incorrect linker configuration file. Please try updating to VisualGDB 5.2 and then resynchronize the sysroot. This should repair the config file automatically.

    in reply to: Compiler Optimize Option per File #9572
    support
    Keymaster

    Hi,

    Please update to VisualGDB 5.2 and convert your project to the MSBuild subsystem. This will allow specifying various build settings for each file independently via the regular Visual Studio file properties.

    in reply to: Debugging Child Process #9564
    support
    Keymaster

    Hi,

    OK, this looks like gdb 7.12 was either not compatible with your board, or built incorrectly. Hence the easiest way to get this to work would be using gdb directly on the board.

    If you are not using the Custom edition, this would involve cloning the current configuration and changing the new configuration properties as follows:

    1. Computer used for building and debugging: (your Wandboard)
    2. Debugged executable: (full path to the deployed executable on Wandboard)
    3. Additional startup commands: set follow-fork-mode child

    Then you could build the project using the regular configuration and debug it using the second configuration.

    If you were using the Custom edition, you could override the machine where gdb is launched (by default it is the same machine that compiles the code) and not need the second configuration.

    in reply to: Merging bootloader & application binaries #9563
    support
    Keymaster

    Hi,

    If you just want to combine 2 .bin files into one, it should be as easy as padding the first one with 0xFFs and appending the second one to it.

    If you want to get an ELF file that contains data from 2 binary files at given addresses, you would need to convert .bin files to .o files and link them with a special linker script that will place each file contents at a given address.

    Let us know if you need more details.

    support
    Keymaster

    Hi,

    OK, we did a quick research and it looks like the proprietary ARM compiler indeed uses the clang as a front-end.

    However, it does not look like anyone has released official binaries for the regular clang/llvm for ARM. If we have overlooked anything, please let us know.

    in reply to: android kernel #9548
    support
    Keymaster

    Hi,

    First of all, we have to apologize that due to many customizations of the Android kernel compared to the regular Linux kernel, VisualKernel we do not officially support it. That said, if you encounter any problems, please let us know and we will do our best to suggest a workaround, but we cannot guarantee that it will work.

    Regarding the differences between VisualGDB and VisualKernel: VisualGDB allows developing user-mode applications, Android tools and C/C++ libraries used in Android apps; the kernel-mode development is the case for VisualKernel.

    Our arm cross-compiler only works for barebone embedded devices and does not support ARM64.

    IntelliSense is designed to run in a separate background process and automatically restart in case of crashes. If you get the “IntelliSense crashed” message with the dump file, we encourage you to share the dump file with us via the support form. As our IntelliSense is using the 3rd-party Clang compiler, it does sometimes crash due to Clang bugs, but we normally fix those issues very quickly.

    As the normal Linux kernel cannot be reliably build on Windows, VisualKernel does not support it. You can try configure VisualGDB to build it via the “Import Linux Project” option in the Linux wizard, but it will not recognize it as a Linux Kernel and won’t do any automatic setup steps.

    The problem with building the Linux kernel on Windows is that the Makefiles actually rely on building various auxiliary tools that rely on Linux-specific API and won’t work on Windows. Hence VisualKernel always requires a Linux machine to build the kernel.

Viewing 15 posts - 5,911 through 5,925 (of 7,849 total)