Commit Graph

415 Commits

Author SHA1 Message Date
Daniel Beer 0dade4228e Modified erase command to allow mass and segment erase. 2010-09-23 16:11:32 +12:00
Daniel Beer b9e5db63d5 device: altered erase interface to allow different erase types. 2010-09-23 15:45:06 +12:00
Daniel Beer 984b1a3b57 Modified AUTHORS entry to record flash-bsl changes. 2010-09-23 13:40:53 +12:00
Andrew Armenia 367b945263 update man page to reflect new driver and option 2010-09-23 13:35:33 +12:00
Andrew Armenia aedd5f7691 switched off debugging output in flash_bsl 2010-09-23 13:35:33 +12:00
Andrew Armenia 80aafafeeb add usage information to main.c 2010-09-23 13:35:33 +12:00
Andrew Armenia 14404af688 cast CRC test vectors to uint16_t to eliminate warning 2010-09-23 13:35:33 +12:00
Andrew Armenia 89520c052e initial version of flash_bsl driver
This driver allows mspdebug to talk to the bootloader on a flash MSP430
via a serial port. DTR and RTS lines are used to control the TEST and
RST# pins on the MSP430, respectively. Currently, read and program are
supported. However, read is fairly useless because the driver currently
does not support any password other than the default. Thus it must
mass-erase the chip to gain access.

Read that again. USING THIS DRIVER WILL MASS ERASE YOUR CHIP IMMEDIATELY,
WITHOUT YOU ASKING FOR IT.
2010-09-23 13:35:33 +12:00
Sören Höckner ecccfb5a64 fet: change block size to 64 bytes.
Have observed crashes of the FET when programming some devices using
128-byte blocks.
2010-09-14 14:56:10 +12:00
Sören Höckner 218ead5fe5 fet: fix packet size alignment when reading/writing buffers. 2010-09-14 14:54:25 +12:00
Daniel Beer abc7b61737 Added "load" command for programming without erase/symbol import. 2010-09-13 11:27:11 +12:00
Daniel Beer 4a9b89a1ee gdb: remove prog buffering. 2010-09-13 10:43:40 +12:00
Daniel Beer 93087e534d prog: removed word-alignment buffering. 2010-09-13 10:40:29 +12:00
Daniel Beer 46fd2956cd fet: workaround for unaligned reads/writes. 2010-09-13 10:27:50 +12:00
Daniel Beer 6582876404 Added support for MSP430F5437. 2010-09-13 09:21:16 +12:00
Daniel Beer de402ea9a6 ihex: ignore 03 records without a warning. 2010-09-10 13:29:17 +12:00
Daniel Beer 479b0b2a9f Align flash writes to word boundaries.
The FET silently drops flash memory write requests which are not
address or length aligned to a word boundary.

Based on a patch by Sören Höckner <soeren.hoeckner@gmx.de>.
2010-09-10 12:52:47 +12:00
Daniel Beer 40fa5de592 Move code_start field into base device class. 2010-09-10 11:40:59 +12:00
Robert Spanton 5a13bc1f27 Allow CC to be modified for build
This means that, when cross-compiling mspdebug, one doesn't have to
hack up the Makefile.  Just set CC in the environment.
2010-09-10 09:18:53 +12:00
Daniel Beer 96c5e92093 Version 0.11 2010-09-09 12:29:49 +12:00
Daniel Beer e080f32cb5 Updated AUTHORS file. 2010-09-09 12:28:34 +12:00
Daniel Beer 5dae1e9b0d Update manual to include "aword" search term for isearch command. 2010-09-09 12:24:36 +12:00
Daniel Beer c0d49ae372 Added support for MSP430F2370. 2010-09-09 12:05:28 +12:00
Daniel Beer 98e7d272e7 Remove reference in manual to 64k limitation.
This has been fixed already, but the manual wasn't updated.
2010-09-09 09:04:53 +12:00
Daniel Beer 7e04f8b776 Removed unnecessary programming boundary. 2010-09-06 15:55:53 +12:00
Daniel Beer 08e13f7093 fet_db: some msg28 bytes matter more than others. 2010-09-06 15:31:52 +12:00
Daniel Beer 28923bf997 Changed command-line option "-r" to "--no-reset". 2010-09-06 14:42:08 +12:00
Piotr Wiszowaty a563b6f2ea Added support for MSP430F1232 and MSP430F413. 2010-09-06 12:51:17 +12:00
Daniel Beer 2ef8f7574b fet: by default, reset chip on startup. 2010-09-02 11:55:12 +12:00
Daniel Beer d3f50bef75 Remove range check on SREC file format. 2010-09-01 10:22:27 +12:00
Stephen Kench f6971c1daf Added support for MSP430F49197. 2010-09-01 10:20:54 +12:00
Eric Decker 1a3f9a9ff3 fet: always show chip name. 2010-09-01 09:34:50 +12:00
Daniel Beer 9c2ed8c5fc Introduced quiet mode option and command-line switch.
Based on a patch by Eric Decker <cire831@gmail.com>
2010-08-31 15:50:00 +12:00
Daniel Beer 764e5c04a9 Allow Ctrl+C to interrupt during initialization. 2010-08-31 09:32:07 +12:00
Daniel Beer 0a3d1c9e11 Show difference between UIF and Olimex when opening serial. 2010-08-31 09:31:50 +12:00
Daniel Beer 7e0d229fc2 elf32: increased limit on section headers. 2010-08-29 18:47:05 +12:00
Daniel Beer 15494c1cf7 Added support for MSP430F1612. 2010-08-21 00:01:04 +12:00
Till Maas d240fe0994 Move stripping from install to LDFLAGS.
This allows to easily build and install an unstripped binary, e.g. for Fedora
where stripping is performed by the build system to store the removed
information in a debuginfo subpackage.
2010-08-20 10:44:13 +12:00
Daniel Beer a58a8d2f58 Added support for MSP430F2618. 2010-08-18 20:58:14 +12:00
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