Commit Graph

845 Commits

Author SHA1 Message Date
Tamas TEVESZ 16a25f206a Rework Unix delay_s()/delay_ms()
Make delay_ms() sleep through the entire specified interval unless
Ctrl-C is pressed;

Using this feature, simplify Ctrl-C checking in places.
2013-12-07 10:16:41 +13:00
Tamas TEVESZ 5909c6d60b Use sig_atomic_t for ctrlc_flag
Semantic change only.

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
2013-12-07 10:16:37 +13:00
Daniel Beer 74d01ff269 bsl: add missing address increment. 2013-12-05 11:13:52 +13:00
Daniel Beer 5c1805ff2b JTAG fuse blow: add "blow_jtag_fuse" command.
Support exists for this command on FET-like devices (including Olimex)
and the tilib driver.
2013-12-03 07:27:32 +13:00
Tamas TEVESZ fac574a447 Regenerate chipinfo.db from MSP430.DLLv03.03.01.04 (SLAC460g)
Adds support for MSP430F5258

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
2013-11-22 13:33:48 +13:00
Tamas TEVESZ 83f595d8d6 Force re-building of chipinfo.o if chipinfo.db changes
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
2013-11-22 13:33:08 +13:00
Tamas TEVESZ 68a5dfef7d Note regarding tilib and device discovery
Add a note to the man page stating that automatic device discovery
in tilib works only on Linux and Windows.

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
2013-11-22 08:48:32 +13:00
Daniel Beer b2185061b7 Supress debug chatter in quiet mode. 2013-10-26 09:59:48 +13:00
Tamas TEVESZ 35df9ed67a Add missing stdlib.h for malloc/free. 2013-10-10 12:02:45 +13:00
Tamas TEVESZ a4d456a1b9 Unify spelling of `tty' 2013-10-10 12:02:45 +13:00
Tamas TEVESZ 8be4d394ee mspdebug.man: note regarding TTY kernel driver.
Explicitly note that on the TTY kernel driver is detached from the
device if USB access to the driver is used, and the driver supports both
access methods.
2013-09-30 08:59:01 +13:00
Tamas TEVESZ d8ff487e20 Typo: it's SLAC460, not SLAC060. 2013-09-30 08:58:53 +13:00
Daniel Beer 04b09dbbd7 v3hil: don't configure ASSERT_BSL_VALID_BIT.
This option is not implemented by all firmware versions.
2013-09-28 11:44:35 +12:00
Tamas TEVESZ 349c96faa8 Add FET error codes from MSP430.dll v3.3.01.003
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
2013-09-26 08:03:08 +12:00
Daniel Beer 520b9cd071 flash_bsl: correct entry sequence.
Contributed by Micle Chebotarev <mcheb@yandex.ru>.
2013-09-16 16:28:29 +12:00
Daniel Beer fb3617e486 fet_olimex_db: fix support for MSP430FR5739.
Changes made and tested by Sanne Ausma <sanneausma@gmail.com>.
2013-09-10 12:17:34 +12:00
Daniel Beer 0e58358bb1 fet3: driver for eZ-FET debuggers.
This driver is experimental. It supports flash/memory access and basic
CPU control. It doesn't support breakpoints.
2013-09-08 13:41:55 +12:00
Daniel Beer 8ec807fe20 chipinfo: chip database extracted from MSP430.DLL. 2013-09-08 12:51:14 +12:00
Daniel Beer 83f0d66597 bytes.h: byte-order utilities. 2013-08-27 14:56:54 +12:00
Daniel Beer a64c940a20 loadbsl: trigger PUC on exit. 2013-07-23 10:28:52 +12:00
Daniel Beer 0c5751275d loadbsl: retry password if first attempt fails. 2013-07-22 11:04:19 +12:00
Tamas TEVESZ d11785c5d9 Add BSDmakefile, a wrapper to call gmake on some BSDs.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
2013-07-19 11:38:21 +12:00
Daniel Beer b4996ba0bd Add description of "load-bsl" driver to manual. 2013-07-18 14:22:56 +12:00
Daniel Beer d3b57a5cd7 New driver: load-bsl.
This driver supports the USB bootstrap loader. An initial version query
is performed on startup. If the running loader is not sufficiently
featureful, a software image for an upgraded BSL is loaded into the
chip's RAM and executed.
2013-07-18 14:03:29 +12:00
Daniel Beer b407fca15e transport: modify interface to support disappearing devices. 2013-07-18 13:56:26 +12:00
Daniel Beer d54cf16a13 util: add ADDRESS_NONE definition. 2013-07-18 13:56:04 +12:00
Daniel Beer 06f6613442 Version 0.22 2013-07-18 12:23:16 +12:00
David Carne 8bec81f576 Fix Intel hex ELAR record generation. 2013-07-08 08:38:31 +12:00
Daniel Beer 93faabd5e5 Fix exit code under Cygwin.
Based on patch from Hardy Griech <ntbox@mardys.de>.
2013-06-20 09:11:17 +12:00
Daniel Beer 9c913ee1f6 dis: fix source symbolic mode decoding. 2013-05-27 09:10:51 +12:00
Mario Werner 47c0349de2 Fixed DADD implementation.
Implemented DADD as addition of BCD numbers like it is supposed to be.
2013-05-27 09:05:36 +12:00
Mario Werner ef41b1cbab Fixed cycle counts in disassembly.
Fixed the cycle count for single op indirect and autoincrement
addressing.
2013-05-27 09:05:36 +12:00
Mario Werner c141f5e5e1 Fixed symbolic addressing mode
Due to a too early increment of the program counter all symbolic
addressed x(PC) memory accesses have offseted by 2.
2013-05-27 09:05:36 +12:00
Mario Werner 6fe57b02e4 Fixed error in carry calculation for MAC of the hwmult 2013-05-27 09:05:36 +12:00
Daniel Beer df6f0ec3bc Add --fet-skip-close option.
Supplying this option causes the JTAG close procedure to be skipped
when closing the FET driver.
2013-05-21 15:59:17 +12:00
Daniel Beer 250ce908a1 Print usage message on stdout, not stderr. 2013-05-21 07:54:07 +12:00
Daniel Beer 9226cbf566 Add support for MSP430FR5729. 2013-05-14 21:42:02 +12:00
Daniel Beer 947f72e5ea cp210x: handle 0 return from usb_bulk_read().
This fixes a problem with the Olimex MSP430-JTAG-TINY v1, reported by
Hardy Griech on mspgcc-users.
2013-05-07 08:08:33 +12:00
Daniel Beer cb4091f121 fet_core: fall-back on Olimex identification database. 2013-04-23 08:32:11 +12:00
Daniel Beer 1c0bdccc74 opdb: add option for setting default GDB port. 2013-04-22 10:29:30 +12:00
Paul Haddad a0499ab6f0 Add support for MSP430G2955. 2013-04-05 09:43:24 +13:00
Daniel Beer 09c2acbfd6 Search for .mspdebug in current directory first. 2013-04-04 15:53:38 +13:00
Daniel Beer 8bed72bb48 help command: add hint for option use. 2013-04-04 15:52:21 +13:00
Daniel Beer 7bb058c7ba Add "erase segrange" for erasing contiguous sets of segments. 2013-03-26 10:19:31 +13:00
Daniel Beer dc3b154ef9 Add -C option for specifying alternative config file. 2013-03-26 10:07:32 +13:00
Daniel Beer eacf4b8be4 sim: fix PC-relative operand fetch.
Index should be relative to the value of PC after fetching the index
word.
2013-03-26 09:25:33 +13:00
Daniel Beer da3b7e31a2 Partial revert of ce2e0a94f4.
Jump instruction offsets are relative to start of instruction.
2013-03-13 10:40:43 +13:00
Daniel Beer 9bbe525776 Add support for MSP430FR5728. 2013-03-10 16:25:58 +13:00
Daniel Beer 1217d244e6 Remove "locka" command.
This command is useless, because each programming tool configures the
flash control registers before flash operations.
2013-03-10 15:32:19 +13:00
Daniel Beer 5ccf2e35d2 fet_core: fix segment erase.
A non-zero length must be supplied to the firmware.
2013-03-10 15:28:36 +13:00