support

Forum Replies Created

Viewing 15 posts - 5,416 through 5,430 (of 7,856 total)
  • Author
    Posts
  • in reply to: VisualGdb-5.2r9 Intellisense problems #11052
    support
    Keymaster

    Hi,

    This could happen if you switched the language standard in the Makefile manually and did not let VisualGDB retest the settings so that it could query the correct __cplusplus version from your gcc. If you are not sure, please let us know if you are using MSBuild or Make and how exactly you changed the project to C++11.

    in reply to: Different output file name for Debug and Release #11051
    support
    Keymaster

    Hi,

    This depends whether you are using MSBuild, GNU Make or CMake. For MSBuild you can achieve this via VS Project Properties, for other build systems you would need to manually edit the configuration files (e.g. Makefile) and explicitly specify the debugged executable via VisualGDB Project Properties as automatic detection won’t work anymore.

    support
    Keymaster

    Hi,

    You can achieve the same effect by manually adding the source files and preprocessor macros listed in the framework definition. E.g. for the ‘fixed stack/heap’ they are defined in the BSP.XML file as follows:

          <AdditionalSourceFiles>
            <string>$$SYS:BSP_ROOT$$/StackAndHeap/StackAndHeap.c</string>
          </AdditionalSourceFiles>
          <AdditionalPreprocessorMacros>
            <string>FIXED_STACK_SIZE=$$com.sysprogs.bspoptions.stackheap.stacksize$$</string>
            <string>FIXED_HEAP_SIZE=$$com.sysprogs.bspoptions.stackheap.heapsize$$</string>
          </AdditionalPreprocessorMacros>

    If you are not sure, let us know and we will provide more detailed steps.

    • This reply was modified 8 years, 6 months ago by support.
    in reply to: cmd make VS 2017 blocks clean #11043
    support
    Keymaster

    Hi,

    Could be an antivirus bug or a corrupt filesystem. If you encounter this problem again, feel free to let us know and we will help you resolve it.

    in reply to: "Invisible" project properties #11042
    support
    Keymaster

    Hi,

    This could happen if the property used to store the location of the .vgdbsettings file was set incorrectly. Please try holding Shift while right-clicking on the project and VisualGDB will display the corresponding menu item even if it cannot confirm that it’s a valid VisualGDB Project. It may then display an error that will help locate the root cause for this.

    If it does not help, please let us know if it’s an MSBuild-based project or not and we will suggest further diagnostic steps.

    support
    Keymaster

    We are aware of this and are gradually switching our GUI to the newer WPF framework that handles high resolution better. We have also received feedback that the old WinForms-based GUI scales better after installing Windows 10 Creator Update.

    in reply to: Increased support for Language #11040
    support
    Keymaster

    Hi,

    Sorry, not fully sure we understood you correctly. Do you mean that some of the VisualGDB GUI does not display Chinese characters correctly or that VisualGDB is not translated to Chinese?

    in reply to: Code running slowly – STM32F746 #11030
    support
    Keymaster

    No worries. Let us know if you encounter further problems and we will be happy to help.

    in reply to: Code running slowly – STM32F746 #11027
    support
    Keymaster

    Hi,

    Unoptimized debug builds are expected to result in much slower execution time; this is by design. This is needed because the optimizer would try to place as many variables as possible into registers and will reuse the same register for a different variable once the old one is no longer needed, making it only possible to evaluate its value while it is still needed by other code. Other optimizations would make stepping less intuitive by combining reusable code fragments like the code for the ‘return’ statements. Our best advice would be to play around with the optimization setting, changing it between -O0, -Og-, -O1, -O2 and -O3. Increasing optimization will increase the speed, but make the debugging experience harder.

    Regarding unstable code, most likely your code either contains a bug that corrupts memory (but is not reproduced without optimization) or relies on some assumption that does not hold with full optimization. E.g. the following code may hang in the release build because the optimizer will try to move reading of ‘done’ outside of the loop:

    int done;
    
    void InterruptHandler()
    {
        done = 1;
    }
    
    int main()
    {
        //...
        while (!done)
        {
        }
        
        printf("done\n");    
    }

    Declaring the ‘done’ variable with the ‘volatile’ keyword will solve the problem.

    in reply to: VisualGDB License – Urgent!!! #11026
    support
    Keymaster

    Hi,

    Please contact our support with the details of your key and we will help you resolve this.

    support
    Keymaster

    ESP-IDF is for ESP32; if you are using ESP8266, it’s either RTOS SDK, or non-OS SDK. Both can be downloaded from here: https://espressif.com/en/support/download/sdks-demos

    You can also simply post your test program here and we could quickly check if the problem is reproduced with the original command-line build tools.

    in reply to: Compile error with CubeMX import #11022
    support
    Keymaster

    Hi,

    If you had to add a line manually, there could be a version mismatch between your system file and the HAL library and that could cause further cryptic errors. We would strongly encourage double-checking this and getting the correct version rather than just adding a missing line, as it would help avoid really tough-to-pinpoint problems.

    in reply to: VS 2015 Builds slow way down, Clang stops working #11021
    support
    Keymaster

    Hi,

    If both building and IntelliSense is slow, perhaps something is using the CPU? Could you please check the CPU usage via Task Manager? This could also happen if the RAM utilization was too high or too much background disk activity was slowing down the access to the source files.

    in reply to: Code running slowly – STM32F746 #11018
    support
    Keymaster

    Hi,

    Just to double-check, you are using the optimized ‘Release’ build, right?

    in reply to: VisualGDB Support for Particle Photon (STM32)? #11013
    support
    Keymaster

    Hi,

    We don’t support this board yet due to relatively low popularity. We will keep on monitoring its popularity and reconsider this once the board becomes more popular.

Viewing 15 posts - 5,416 through 5,430 (of 7,856 total)