bflannery

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 28 total)
  • Author
    Posts
  • in reply to: Remove debug symbols #35852
    bflannery
    Participant

    I would probably just add a post build action for the release target to run “strip –strip-debug” on the produced executable.

    or

    You could pass “-Wl,–strip-debug” into the linker for your release target.

    in reply to: Program won't start after power cycle or reset #35716
    bflannery
    Participant

    I would examine the call stack first.

    Then you should also ensure that DEBUG_DEFAULT_INTERRUPT_HANDLERS is set to 1 if you are using the startup file that visualgdb generates. Likely there is an interrupt you are not handling. You can also write some code for your hard fault handler to dump the cpu registers to see what the source of the hard fault was.

    in reply to: Autocomplete only on Tab press #35685
    bflannery
    Participant

    I would like to second having this be a setting. I would like to disable:

    • If the string you typed exactly matches the beginning of a suggestion, (e.g. you typed “print” and it found “printf”), typing any non-identifier character (space, opening bracket, comma, etc) will trigger a completion and will insert the character you typed.

    Honestly this functionality gets in the way more than it speeds up my programming. I would much rather have autocomplete only complete what I am typing when I press tab.

    Here I am trying to create a local variable named, alarm. The sensible thing for me to do would be to type space to continue this line of code or end it with semicolon if it was simply a definition.

    However, that would autocomplete to a macro. Instead I need to hit escape and I don’t like reaching for that key because it interrupts my typing flow/train of thought.

     

    • This reply was modified 5 months, 4 weeks ago by bflannery.
    in reply to: Program won't start after power cycle or reset #35680
    bflannery
    Participant

    It is hard to say what your problem is without seeing some code.

    As for your question “Could I have done something in my main app to set some register that prevents my app from running outside of the debugger?”

    Possibly. There have been occasions where I’ve had hardfaults appear out what at the time seemed like thin air. After resetting your board you can connect a debugger to the target and examine the call stack.

    Debug >> Attach to Running Embedded Firmware (assuming it is running and is halted somewhere, your editor should jump to that spot, and pause the execution)

    Have you made any modifications to your linkerscript intentional or otherwise? You could be placing your program in SRAM.

    in reply to: Cmake error incorect git version #35676
    bflannery
    Participant

    You can override the variable by setting it in your CMakeLists.txt file.

    Otherwise, you should just be able to modify your CMakeCache.txt to point the variables at the correct git executable.

    This is located under {ProjectDir}/build/VisualGDB/{Configuration}/CMakeCache.txt

    Not sure why it is finding the wrong git.exe to begin with though. It may have something to do with where you added git.exe in your environment variables. If visual studio wasn’t running under your credentials it may not see a user variable.

     

    in reply to: Cmake error incorect git version #35658
    bflannery
    Participant

    This configures without error for me. I didn’t try with the manually cloning.

    Side note, I hate wordpress forums.

    • This reply was modified 6 months ago by bflannery.
    • This reply was modified 6 months ago by bflannery.
    in reply to: Cmake error incorect git version #35648
    bflannery
    Participant

    This post on stack overflow seems to describe a solution to your problem.

    https://stackoverflow.com/a/43995834

    And if clearing the cache doesn’t work perhaps you can try setting the variable manually.

    in reply to: Cmake error incorect git version #35642
    bflannery
    Participant

    If you want to use git within CMake on windows you need to make sure git is runnable from from your ps/cmd environment.

    You will probably find difficult to run the arm-linux-gnueabihf git executable on your windows machine.

    If you add git to your PATH and restart visual studio I believe this issue will go away. (also remove the find_git)

    Test by running “git version” from your command prompt.

    • This reply was modified 6 months ago by bflannery.
    in reply to: Suggestion: Reveal In Explorer #35550
    bflannery
    Participant

    Thanks! I had no idea that was there.

    in reply to: Memory Exhausted Error #35487
    bflannery
    Participant

    You could try building the toolchain yourself with the large address aware flag.

    I am curious how big your binary is when your build doesn’t fail. I ran into this issue when I had external memory sections set to load when they shouldn’t have been.

    in reply to: Large Heap Size Breaks Live Watch (FreeRTOS) #35344
    bflannery
    Participant

    Understood. I figured that would be the case. I just thought I would let you know that the way it fails is not a good experience and impacts the other aspects of debugging. I will avoid expanding that section myself moving forward, but I imagine I won’t be the last person to run into this.

    in reply to: False Clang Intellisense Error #35336
    bflannery
    Participant

    What happens if you wrap it in a __cplusplus guard? Looks like it is treating that source as a c file.

    in reply to: Program won't start after power cycle or reset #35303
    bflannery
    Participant

    Are your hardware boot pin(s) in the correct state to boot from 0x08000000?

    in reply to: Error When Building Bootloader+App [cmake] #35039
    bflannery
    Participant

    So you only get the binaries when you build at the cmake project level. If you right click and build the debug targets directly it does not generate the binary file or hex file. Only the elf.

    in reply to: Error When Building Bootloader+App [cmake] #34974
    bflannery
    Participant

    I mangled my first sentence in that last post. It should read:

    “Is there any reason that the application bin file would not be produced when built?”

Viewing 15 posts - 1 through 15 (of 28 total)