program doesn't work without debugger

Sysprogs forums Forums VisualGDB program doesn't work without debugger

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #9417
    bondarenkod
    Participant

    <div>Hello!
    I have a problem with VisualGDB.</div>
    <div>Couple days ago any programs from VS stopped working on my two demo boards without connected debug.
    I tried to test it from 2 laptops – the same result (5.1 (or 5.0) and 5.2 VisualGDB).
    With connected debugger program working properly.
    Demo application from discovery 429i also working (via hex flashing)/
    Here is sample video: https://www.youtube.com/watch?v=SONL2pnnkUE</div&gt;

    #9418
    bondarenkod
    Participant

    demo application

    #9422
    support
    Keymaster

    Hi,

    Are you using semihosting in your programs? The way semihosting works would cause the program to stop if a debugger is not attached. Please try making the calls to printf() and other semihosting-related functions conditional so that they don’t trigger in the release configuration.

    #9433
    bondarenkod
    Participant

    >>Are you using semihosting in your programs?
    yes. But not in this sample and actual post not about problem with semihosting.
    Yes, I also have problems with semihosting – in projects with\without mbed. But currently projects with mbed just doesn’t work without connected debugger.

    >>the release configuration.
    This project just basic project, which created by VisualGDB and doesn’t contains any changes which made by me (only few lines to make leds blinking). I can record step-by-step the process to show you almost everything. Project without mbed is working OK.

    #9436
    bondarenkod
    Participant

    Ok, I found that in the project with MBED the VS window called ‘ARM semihosting console’ still empty, but COM Terminal window working perfectly.

    Problem #1 – Pending.
    Problem #2 – Sovled.

     

    #9441
    support
    Keymaster

    Hi,

    Please try updating to the latest gcc 6.3.0-r3 toolchain. We have fixed a problem that might have been causing this.

    #9443
    bondarenkod
    Participant

    Yep! Now it’s working as expected! Thank you 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.