sergev / ejtagproxy

GDB interface utility for MIPS processors, including PIC32
24 stars 6 forks source link

EJTAGproxy is a utility for debugging PIC32 microcontrollers with GDB via JTAG or ICSP adapter. Supported adapters:

Usage: ejtagproxy [options]

Options: -d, --daemon run as daemon -p, --port=PORT use the specified TCP port (default 2000) -D, --debug output debug messages

To start a debug session: 1) Run ejtagproxy. 2) Attach a USB adapter to target board. 3) Run gdb and connect to the PIC32 target: set remote hardware-breakpoint-limit 6 set remote hardware-watchpoint-limit 2 set endian little target remote localhost:2000

When gdb session is closed, ejtagproxy disconnects from the target board. You can use other tools, like pic32prog, to update the target software and then start a new gdb session. No need to restart ejtagproxy between sessions. You can safely run it as a daemon.

To build on Linux or Mac OS X, run: cmake . make make install

In case you don't have cmake installed, you can use plain Unix makefile. It might still need some modifications to adapt to your system: make -f make-unix

To build on Windows using MINGW compiler, run: gmake -f make-mingw

Based on sources of:

List of supported processors: