No executable file specified in Embedded project

Sysprogs forums Forums VisualGDB No executable file specified in Embedded project

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #11667
    Artemdmitriev
    Participant

    Hello!

    I created a project using of Embedded Project Wizard. For project i use my own Makefile. Project compiled successsfuly but when i try to debug(use OpenOCD) i get the following error:

    No executable file specified.
    Use the “file” or “exec-file” command.
    Cannot resolve the address of _estack. Skipping stack pointer validity check.

    How to tell OpenOCD where  executable file is  located ?

    #11670
    Artemdmitriev
    Participant

    The problem is solved

    #11674
    support
    Keymaster

    Hi,

    Good to know it works now. In case anyone else runs into the same problem, this usually happens when the build actually does not succeed and the main executable is not created.

    #20104
    Luna
    Participant

    Hi, I know it is an old thread, but I am facing the same issue, unable to flash or debug my device, but I am able to build my project

    Device: nR52

    my logs:

    c:\SysGCC\arm-eabi\bin\arm-eabi-gdb.exe –interpreter mi C:\Users\DevTest – Test Dev\VisualGDB\Debug\Project
    c:\SysGCC\arm-eabi\bin\arm-eabi-gdb.exe –interpreter mi C:\Users\DevTest – Test Dev\VisualGDB\Debug\Project
    -gdb-version
    -gdb-version
    Excess command line arguments ignored. (Test …)
    Excess command line arguments ignored. (Test …)
    Excess command line arguments ignored. (Test …)
    =thread-group-added,id=”i1″
    =thread-group-added,id=”i1″
    =thread-group-added,id=”i1″
    ~”GNU gdb (GDB) 8.0.1\n”
    ~”GNU gdb (GDB) 8.0.1\n”
    ~”GNU gdb (GDB) 8.0.1\n”
    ~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
    ~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
    ~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
    ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
    ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
    ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
    ~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
    ~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
    ~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
    ~”\nFor bug reporting instructions, please see:\n”
    ~”\nFor bug reporting instructions, please see:\n”
    ~”\nFor bug reporting instructions, please see:\n”
    ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”
    ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”
    ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”
    ~”For help, type \”help\”.\n”
    ~”For help, type \”help\”.\n”
    ~”For help, type \”help\”.\n”
    ~”Type \”apropos word\” to search for commands related to \”word\”…\n”
    ~”Type \”apropos word\” to search for commands related to \”word\”…\n”
    ~”Type \”apropos word\” to search for commands related to \”word\”…\n”
    &”C:\\Users\\DevTest: No such file or directory.\n”
    &”C:\\Users\\DevTest: No such file or directory.\n”
    &”C:\\Users\\DevTest: No such file or directory.\n”
    &”C:\\Users\\DevTest – Test Dev\\Project/-: No such file or directory.\n”
    &”C:\\Users\\DevTest – Test Dev\\Project/-: No such file or directory.\n”
    &”C:\\Users\\DevTest – Test Dev\\Project/-: No such file or directory.\n”
    (gdb)
    ~”GNU gdb (GDB) 8.0.1\n”
    ~”GNU gdb (GDB) 8.0.1\n”
    ~”GNU gdb (GDB) 8.0.1\n”
    ~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
    ~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
    ~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
    ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
    ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
    ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
    ~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
    ~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
    ~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
    ~”\nFor bug reporting instructions, please see:\n”
    ~”\nFor bug reporting instructions, please see:\n”
    ~”\nFor bug reporting instructions, please see:\n”
    ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”
    ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”
    ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”
    ~”For help, type \”help\”.\n”
    ~”For help, type \”help\”.\n”
    ~”For help, type \”help\”.\n”
    ~”Type \”apropos word\” to search for commands related to \”word\”.\n”
    ~”Type \”apropos word\” to search for commands related to \”word\”.\n”
    ~”Type \”apropos word\” to search for commands related to \”word\”.\n”
    ^done
    ^done
    ^done
    (gdb)
    -list-features
    -list-features
    ^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”,”language-option”,”info-gdb-mi-command”,”undefined-command-error-code”,”exec-run-start-option”]
    ^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”,”language-option”,”info-gdb-mi-command”,”undefined-command-error-code”,”exec-run-start-option”]
    ^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”,”language-option”,”info-gdb-mi-command”,”undefined-command-error-code”,”exec-run-start-option”]
    (gdb)
    -gdb-set disassembly-flavor intel
    -gdb-set disassembly-flavor intel
    ^error,msg=”No symbol table is loaded. Use the \”file\” command.”
    ^error,msg=”No symbol table is loaded. Use the \”file\” command.”
    ^error,msg=”No symbol table is loaded. Use the \”file\” command.”
    (gdb)
    -gdb-set print demangle off
    -gdb-set print demangle off
    ^done
    ^done
    ^done
    (gdb)
    -break-insert -f main
    -break-insert -f main
    &”No symbol table is loaded. Use the \”file\” command.\n”
    &”No symbol table is loaded. Use the \”file\” command.\n”
    &”No symbol table is loaded. Use the \”file\” command.\n”
    ^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”<PENDING>”,pending=”main”,times=”0″,original-location=”main”}
    ^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”<PENDING>”,pending=”main”,times=”0″,original-location=”main”}
    ^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”<PENDING>”,pending=”main”,times=”0″,original-location=”main”}
    (gdb)
    Warning: could not set a breakpoint on main. ‘Step into new instance’ will not work.
    Warning: could not set a breakpoint on main. ‘Step into new instance’ will not work.
    -break-delete 1
    -break-delete 1
    ^done
    ^done
    ^done
    (gdb)
    target remote :50963
    target remote :50963
    &”target remote :50963\n”
    &”target remote :50963\n”
    &”target remote :50963\n”
    ~”Remote debugging using :50963\n”
    ~”Remote debugging using :50963\n”
    ~”Remote debugging using :50963\n”
    =thread-group-started,id=”i1″,pid=”42000″
    =thread-group-started,id=”i1″,pid=”42000″
    =thread-group-started,id=”i1″,pid=”42000″
    &”warning: No executable has been specified and target does not support\ndetermining executable automatically. Try using the \”file\” command.”
    &”warning: No executable has been specified and target does not support\ndetermining executable automatically. Try using the \”file\” command.”
    &”warning: No executable has been specified and target does not support\ndetermining executable automatically. Try using the \”file\” command.”
    &”\n”
    &”\n”
    &”\n”
    =thread-created,id=”1″,group-id=”i1″
    =thread-created,id=”1″,group-id=”i1″
    =thread-created,id=”1″,group-id=”i1″
    ~”0x0002d324 in ?? ()\n”
    ~”0x0002d324 in ?? ()\n”
    ~”0x0002d324 in ?? ()\n”
    *stopped,frame={addr=”0x0002d324″,func=”??”,args=[]},thread-id=”1″,stopped-threads=”all”
    *stopped,frame={addr=”0x0002d324″,func=”??”,args=[]},thread-id=”1″,stopped-threads=”all”
    *stopped,frame={addr=”0x0002d324″,func=”??”,args=[]},thread-id=”1″,stopped-threads=”all”
    ^done
    ^done
    ^done
    (gdb)
    mon reset
    mon reset
    &”mon reset\n”
    &”mon reset\n”
    &”mon reset\n”
    @”Resetting target\r\n”
    @”Resetting target\r\n”
    @”Resetting target\r\n”
    ^done
    ^done
    ^done
    (gdb)
    info shared
    info shared
    &”info shared\n”
    &”info shared\n”
    &”info shared\n”
    ~”No shared libraries loaded at this time.\n”
    ~”No shared libraries loaded at this time.\n”
    ~”No shared libraries loaded at this time.\n”
    ^done
    ^done
    ^done
    (gdb)
    load
    load
    &”load\n”
    &”load\n”
    &”load\n”
    &”No executable file specified.\n”
    &”No executable file specified.\n”
    &”No executable file specified.\n”
    &”Use the \”file\” or \”exec-file\” command.\n”
    &”Use the \”file\” or \”exec-file\” command.\n”
    &”Use the \”file\” or \”exec-file\” command.\n”
    ^error,msg=”No executable file specified.\nUse the \”file\” or \”exec-file\” command.”
    ^error,msg=”No executable file specified.\nUse the \”file\” or \”exec-file\” command.”
    ^error,msg=”No executable file specified.\nUse the \”file\” or \”exec-file\” command.”
    (gdb)
    mon reset
    mon reset
    &”mon reset\n”
    &”mon reset\n”
    &”mon reset\n”
    @”Resetting target\r\n”
    @”Resetting target\r\n”
    @”Resetting target\r\n”
    ^done
    ^done
    ^done
    (gdb)
    compare-sections
    compare-sections
    &”compare-sections\n”
    &”compare-sections\n”
    &”compare-sections\n”
    &”command cannot be used without an exec file\n”
    &”command cannot be used without an exec file\n”
    &”command cannot be used without an exec file\n”
    ^error,msg=”command cannot be used without an exec file”
    ^error,msg=”command cannot be used without an exec file”
    ^error,msg=”command cannot be used without an exec file”
    (gdb)

    • This reply was modified 6 years, 9 months ago by Luna.
    #20107
    support
    Keymaster

    Hi,

    Please don’t use paths with spaces for your projects, as this confuses many GNU tools. Simply moving the project to a different path and reopening it should fully solve this.

    #20109
    Luna
    Participant

    omg! it is solved! it is like some black magic lol

    Thanks a lot it was a true headache for me

    #20110
    support
    Keymaster

    Hi,

    Good to know it works. VisualGDB actually warns about this when you create a project. If you are not familiar with the GNU tools internals, please do follow the VisualGDB suggestions – they are designed to save your time.

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