How to use the GDB (Gnu Debugger) and OpenOCD for microcontroller debugging - from the terminal?

前端 未结 5 1510
栀梦
栀梦 2020-12-12 11:29

The standard (low-cost) way to program ARM microcontrollers is using Eclipse with a complex toolchain plugged into it. Eclipse has definitely its merits, but I\'d like to fe

5条回答
  •  臣服心动
    2020-12-12 11:54

    You now just invoke "gdb" and connect it to the "remote server" (localhost if the server and gdb are running on the same machine). Configure GDB such that it knows the location of the source code and the location of the ELF file. There are a ton of websites that go through the basic usage of GDB..

    There seems to be a GDB for Windows (http://www.equation.com/servlet/equation.cmd?fa=gdb)

    The following commands in GDB should get you started:

    target remote localhost:3333

    directory /path/to/project

    symbol-file /path/to/project.elf

提交回复
热议问题