Commit Graph

297 Commits

Author SHA1 Message Date
Daniel Beer b8d461b8ba gdb: fixed faulty response to "read registers" command.
Due to incorrect trimming of register values, we sometimes sent a
reply packet which contained extra digits.
2010-12-02 20:09:44 +13:00
Andrew Armenia 1f7808a78f update flash_bsl for increased erase functionality
"erase all" seems to be unsupported by the BSL. Only DEVICE_ERASE_MAIN
and DEVICE_ERASE_SEGMENT are therefore implemented. DEVICE_ERASE_ALL
could be implemented, if the addresses of information memory were known.
2010-12-01 14:29:17 +13:00
Daniel Beer a08d11b25b Fixed build on OS/X. 2010-11-13 13:18:33 +13:00
Daniel Beer 591feb3545 Support for MSP430F2272. 2010-11-11 09:31:54 +13:00
Daniel Beer 602b1c642f Corrected Stefan Mahr's email address. 2010-11-10 09:50:09 +13:00
Daniel Beer de138c4573 Version 0.13 2010-11-09 10:40:57 +13:00
Daniel Beer 1570f3cbdd Support for Olimex MSP430-JTAG-ISO. 2010-11-09 09:16:31 +13:00
James Laird 2e89e0b45d Support for CC430F5133. 2010-11-08 20:26:54 +13:00
Daniel Beer 3b4989b179 Fixed warning emitted by some gcc versions for dis.c.
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
dis.c:41: warning: ‘arg’ may be used uninitialized in this function
2010-10-28 14:12:52 +13:00
Daniel Beer 50f589b05c Print version text by default if not started in quiet mode. 2010-10-28 14:08:22 +13:00
Daniel Beer 3620996f75 Added support for MSP430G2231. 2010-10-28 14:03:53 +13:00
Daniel Beer 5c50a430ee Added support for MSP430F4270. 2010-10-28 14:02:28 +13:00
Daniel Beer f25ad8fc43 Added support for MSP430F247. 2010-10-26 09:50:01 +13:00
Daniel Beer 6084d44619 Fixed incorrect handling of HEX segment offsets.
Segment offsets were being parsed, but not added to record addresses.
2010-10-21 09:39:27 +13:00
Daniel Beer 43e35f5e14 Notify user when programming in quiet mode.
If you use the "prog" command in quiet mode, you don't see the messages
telling you what's being written. Instead, the only message you get is
"Erasing...", which leads to some confusion.
2010-10-20 14:25:21 +13:00
Daniel Beer 9956ecadb5 fet: retry with reset on connect if the first attempt fails. 2010-10-16 17:26:58 +13:00
Daniel Beer 6223ede40b Added support for MSP430F1121/2131/2617. 2010-10-14 09:21:20 +13:00
Daniel Beer 9121b5028d Version 0.12 2010-10-12 13:01:45 +13:00
Daniel Beer b2d2da6cb6 Implemented repeat execution for reader.
Repeat execution is supported by the commands "step", "md" and "dis".
2010-10-12 12:48:25 +13:00
Daniel Beer 5e39d82784 Device list is printed in multiple columns. 2010-10-12 12:02:17 +13:00
Daniel Beer 6d888fff25 Print commands as they're read from a file.
When using the "read" command, all commands executed are printed first,
so you can see what goes wrong, if anything.
2010-10-12 11:53:46 +13:00
Daniel Beer 4f1502d198 Allow partial command matches if unambiguous. 2010-10-12 11:50:20 +13:00
Daniel Beer 99c478d37f Implemented "exit" command. 2010-10-12 11:44:46 +13:00
Daniel Beer fc808485c2 Allow the default input radix to be specified (iradix). 2010-10-12 11:26:36 +13:00
Daniel Beer fd98116298 Merge branch 'erase' 2010-10-12 11:00:28 +13:00
Daniel Beer 32f45d72de fet: reset on close, rather than init. 2010-10-12 11:00:09 +13:00
Daniel Beer 09813e3129 Fixed BSL memory range checking. 2010-09-25 20:29:38 +12:00
Daniel Beer f72feebb06 Added support for MSP430FG4618. 2010-09-24 11:28:31 +12:00
Daniel Beer f396fc6e90 Fixed support for MSP430F5438.
New data is from USB sniffer capture from CCS.
2010-09-24 09:36:14 +12:00
Daniel Beer 4c7538143c Erase bug fixes. 2010-09-23 19:34:12 +12:00
Daniel Beer db110b48df Implemented "locka" command. 2010-09-23 19:05:39 +12:00
Daniel Beer 1ae163572c fet: implemented mass and segment erase. 2010-09-23 16:14:21 +12:00
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