Commit Graph

826 Commits

Author SHA1 Message Date
Daniel Beer 194d12d9ea Update manual page (GDB monitor command). 2010-08-17 13:05:22 +12:00
Daniel Beer d2c91feeb0 fet: reduce polling interval to 50 ms (was 500 ms). 2010-08-17 11:54:50 +12:00
Daniel Beer d512949d81 MSPDebug commands can now be issued from GDB.
The argument to the "monitor" command is now passed straight to the
reader, and the output is captured and fed back to GDB.
2010-08-17 11:47:47 +12:00
Daniel Beer c29b82dfe9 Added output capture callback. 2010-08-17 11:11:48 +12:00
Daniel Beer 87f89adc44 All output now goes through buffering/filtering.
The following substitutions have been made:

    printf -> printc
    fprintf(stderr, ...) -> printc_err(...)
    perror -> pr_error
2010-08-17 11:07:03 +12:00
Daniel Beer b6eda4e225 Added printc_err function. 2010-08-17 10:52:00 +12:00
Daniel Beer 93c3cb342b Remove redundant textlen() function. 2010-08-17 10:22:16 +12:00
Robert Spanton 30c3d8e6f1 Inform gdb of the maximum packet size.
Reply to gdb's 'qSupported' query. Tell it that we can receive packets
up to MAX_MEM_XFER * 2 bytes long. This significantly speeds up
programming a device from gdb.
2010-08-16 11:13:39 +12:00
Robert Spanton 1b5c1098f5 Add support for writing the FET430's firmware in uif-bsl.
This patch adds support to the uif-bsl driver for erasing the FET430's
memory, and writing to it. It also adds graceful ignoring of halt and
reset requests, which the "prog" command tries to get it to do.

I've tried this with my UIF and it appears to work fine.  It no longer
complains when I present it with an MSP430F247 after updating its
firmware :)

Be very careful!  I do *not* provide any guarantee that this won't
brick your UIF (which would require a second MSP430 programmer to
program the first...).
2010-08-16 11:11:14 +12:00
Daniel Beer e728bb75d4 Altered credits for MSP430F5529 support. 2010-08-13 19:14:37 +12:00
Daniel Beer a59d1dc73b Bug fix: check file descriptor after opening serial device. 2010-08-13 19:08:37 +12:00
Daniel Beer 9a4ef8a909 Simplified command reader. 2010-08-13 16:40:58 +12:00
Daniel Beer 071769f88c Separated standard commands. 2010-08-13 16:14:52 +12:00
Daniel Beer 6dd1ab25c3 Separated command database. 2010-08-13 16:06:23 +12:00
Daniel Beer e834241e90 Separated and simplified output processing. 2010-08-13 15:45:08 +12:00
Daniel Beer 984ffe6e88 Separate option database. 2010-08-13 15:14:15 +12:00
Daniel Beer 0120b146ae Create default device to avoid carrying around device_t. 2010-08-13 12:25:49 +12:00
Daniel Beer 4cc81497af Create default stab to avoid carrying around stab_t. 2010-08-13 12:12:50 +12:00
Daniel Beer 74e928b318 Added CC430F5137 database record (copied from 6137). 2010-08-11 13:28:52 +12:00
Daniel Beer 336da5d7ea Fix RF2500 support on OS/X. 2010-08-11 13:01:18 +12:00
Daniel Beer b32567d41e Added support for MSP430F2234.
Based on testing by Andres Vahter.
2010-08-10 19:44:27 +12:00
Daniel Beer 4f45cf6063 Bug fix: fix formatting for 8 byte instructions. 2010-08-10 16:30:13 +12:00
Daniel Beer fa38e28587 Bug fix: allow search for address-word instructions. 2010-08-10 16:29:57 +12:00
Daniel Beer ccc5854854 dis: decode MSP430X emulated instructions. 2010-08-10 16:26:45 +12:00
Daniel Beer daee870b44 Disassembly bug fixes, show repetitions in disassembly. 2010-08-10 16:04:29 +12:00
Daniel Beer c4ce4c7325 dis: tidy up main decode function, bug fixes. 2010-08-10 15:57:25 +12:00
Daniel Beer 5fe3be27d2 dis: decode address instructions. 2010-08-10 15:47:36 +12:00
Daniel Beer 3bec9b02cf dis: decode CALLA instruction. 2010-08-10 15:06:12 +12:00
Daniel Beer ab0d02b2b3 dis: handle RETI specially. 2010-08-10 14:41:47 +12:00
Daniel Beer bdeadb5192 dis: decode MSP430X group 14xx non-address instructions (RxxM). 2010-08-10 14:33:04 +12:00
Daniel Beer 940e5f172d dis: decode MSP430X group 14xx instructions (PUSHM/POPM). 2010-08-10 14:20:44 +12:00
Daniel Beer f1ee757ab0 dis: decode MSP430X single-operand instructions with extension word. 2010-08-10 14:04:10 +12:00
Daniel Beer bc992661cf Fixed buffer overflow bug in "dis". 2010-08-10 14:03:56 +12:00
Daniel Beer 5994804181 dis: decode extended double-operand instructions. 2010-08-10 13:27:35 +12:00
Daniel Beer 8846186979 dis: alter interface to allow for MSP430X instruction set. 2010-08-10 12:21:16 +12:00
Daniel Beer 636e11b626 Miscellaneous 32-bit fix-ups. 2010-08-05 16:48:13 +12:00
Daniel Beer c5d723e5d9 gdb: use address_t, drop high bytes from register values. 2010-08-05 16:44:41 +12:00
Daniel Beer b9356d2cad Commands now support 20-bit memory range. 2010-08-05 16:38:05 +12:00
Daniel Beer 9ecf177655 Binary file interface is now 32-bit clean. 2010-08-05 16:12:35 +12:00
Daniel Beer 5b2c75563d Device interface and drivers are now 32-bit clean. 2010-08-05 14:43:07 +12:00
Daniel Beer 137329cc13 Symbol table and address expressions are now 32-bit clean. 2010-08-05 13:59:33 +12:00
Daniel Beer 622396a1c1 Version 0.10 2010-08-04 14:08:43 +12:00
Daniel Beer 0755f25d86 Added support for MSP430F5529. 2010-08-03 09:34:36 +12:00
Daniel Beer dae8f2dc61 Added support for COFF file format. 2010-07-29 16:27:54 +12:00
Daniel Beer 31cfaf213b Report halts to gdb as being caused by SIGTRAP.
Reporting a signal number of 0 causes strange behaviour from gdb when
restarting from a breakpoint.
2010-07-27 16:54:08 +12:00
Daniel Beer 383013b37e Step over the current breakpoint when restarting with "run". 2010-07-27 16:53:44 +12:00
Daniel Beer 3f6d8f91ad Moved breakpoint table into device base structure.
Breakpoints only ever change by debugger control, so there's no point
having a device-dependent "getbrk" method. Breakpoint update need only
be done before starting the device running.
2010-07-27 13:08:21 +12:00
Daniel Beer 444b09da79 elf32: only import useful symbols 2010-07-12 16:43:48 +12:00
Daniel Beer db0406d75d Added support for S19 file format. 2010-07-12 16:36:01 +12:00
Will Ross 6863609a13 Automatically include MacPorts flags when compiling on OS/X. 2010-07-12 15:55:03 +12:00