Commit Graph

69 Commits

Author SHA1 Message Date
Tamas TEVESZ 89b5d2d3da sys/select.h for select(2)
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
2013-12-13 06:36:29 +13:00
Tamas TEVESZ a8922dcc0e Add MSP430.dll version as macros to chipinfo.db
Report the version of MSP430.dll that was used to generate
chipinfo.db in info texts.

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
2013-12-12 13:10:44 +13:00
Tamas TEVESZ 6501828e2d DragonFly BSD bits in serial port and pif stuff
These bits should work the same as on FreeBSD.

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
2013-12-12 09:05:02 +13:00
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 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
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 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 d54cf16a13 util: add ADDRESS_NONE definition. 2013-07-18 13:56:04 +12:00
Daniel Beer 9c913ee1f6 dis: fix source symbolic mode decoding. 2013-05-27 09:10:51 +12:00
Daniel Beer 1c0bdccc74 opdb: add option for setting default GDB port. 2013-04-22 10:29:30 +12: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 ce2e0a94f4 dis: correct offset for symbolic single-operand and jumps. 2013-02-25 15:40:03 +13:00
Daniel Beer fa75aa0854 Fix Win32 event use.
Incorrect use of the Ctrl+C event can lead to busy-waiting in socket and
serial port IO.
2013-02-11 12:49:56 +13:00
Daniel Beer e9b6a77414 dis/sim: fix handling of opcodes with two indexed operands.
If the source operand is indexed, and the destination is symbolic (PC +
index), then the base for the destination index is the program counter
*after* having fetched the source index.

Also, the addition of the index is done modulo 2^16 if the base points
within the lower 64 kB of memory.
2013-02-11 11:08:43 +13:00
Daniel Beer 7113fd2e50 disassemble: look only for exact symbol matches for operands. 2013-01-31 15:31:42 +13:00
Daniel Beer fd0199901c tilib: support for Info A/BSL flash access.
Two new boolean options have been added: "enable_locked_flash_access"
and "enable_bsl_access".
2013-01-31 13:54:19 +13:00
Daniel Beer 65b2e94a2e dis: fix constant generation for single-operand.
Indexed mode with R3 shouldn't consume an index word, because this is
the combination used for generating the constant #1.
2013-01-15 11:47:50 +13:00
Daniel Beer 611574cc86 sport: fix build on Windows. 2012-12-18 13:59:26 +12:00
Rob Spanton f94383d839 Add two missing includes to util.c
util.c was missing sys/select.h and sys/time.h.  On some platforms,
this lead to warnings.
2012-11-30 08:50:04 +13:00
Priit Laes c118a684b4 util: Fix memleaks in error paths 2012-10-27 13:00:31 +13:00
Daniel Beer 277a795f01 Add power sample output. 2012-10-24 09:37:46 +13:00
Daniel Beer 8334f55418 Win32 fix-ups.
Fixed missing includes in low-level IO functions. Changed
implementation of condition variables to use kernel event objects, in
order to preserve compatibility with NT 5.1.
2012-10-09 16:34:33 +12:00
Daniel Beer e4a189f177 Add --embedded option and embedded output mode. 2012-10-09 15:41:06 +13:00
Daniel Beer 61fdfd22ff Better threading functions.
Change prefix to "thread_" and add functions for thread creation and
condition variables.
2012-10-09 15:28:49 +13:00
Daniel Beer c7e05fd9fc Rewrite output filtering.
The old code was messy and difficult to understand. This implementation
better separates ANSI parsing from output and is easier to modify.
2012-10-09 12:01:00 +13:00
Daniel Beer 41cf65d880 Move namelist function to output_util. 2012-10-09 10:03:10 +13:00
Daniel Beer 18cf2a561f Separate and clean up break handling.
Ctrl+C handling is done in ctrlc.c, and a break condition now persists
until the interactive reader begins to process the next command. The
condition is cleared by calling ctrlc_clear().
2012-10-09 09:55:48 +13:00
Daniel Beer 6455164138 MinGW: treat Ctrl+Break as Ctrl+C. 2012-10-04 14:50:25 +12:00
Daniel Beer e4f582b0d7 Fix Ctrl+C handling under Cygwin. 2012-10-04 14:45:57 +12:00
Daniel Beer 8a70a931bb Fixed bug in power buffer allocation. 2012-10-04 14:39:21 +12:00
Daniel Beer 56ffd537b6 Fixed long long formatting for MinGW.
MinGW uses %I64d instead of %lld.
2012-10-04 14:33:05 +12:00
Daniel Beer ca6a30b2e7 dis: power consumption annotations. 2012-10-04 12:47:25 +13:00
Daniel Beer cc5aed4c6d Power history support.
This adds a "power" command which can be used to dump power history
samples gathered by the device driver.
2012-10-03 16:29:55 +13:00
Daniel Beer 1de9e43187 Better Olimex compatibility.
Timeouts have been increased to 30 seconds. Reset is not sent until
after enabling power.
2012-09-28 06:37:32 +12:00
Daniel Beer 498ee0ff83 Miscellaneous documentation updates.
Clarify behaviour of -d for tilib driver, correct names of Olimex
products.
2012-09-18 11:27:35 +12:00
Daniel Beer f9d271cd64 tilib: fix calling convention for Cygwin.
WINAPI wasn't getting defined with gcc-3.
2012-08-23 14:27:27 +12:00
Daniel Beer ff42788071 printc: add printf attribute. 2012-08-17 07:37:56 +12:00
Daniel Beer 29dfb4da84 Stop using usleep().
Use nanosleep() on Unix-like systems, and Sleep() on Windows.
2012-08-14 15:51:22 +12:00
Daniel Beer 65d15ef680 Added "verify" command. 2012-07-18 14:03:55 +12:00
Ingo van Lil 3cc5f47304 Support for demangling of C++ symbol names. 2012-07-16 10:02:06 +12:00
Peter A. Bigot fc336e78d0 Correct source bits shift offset for non-register extension word 2012-06-28 09:49:42 +12:00
Peter A. Bigot 19dfb6b64c Correct pushm.a count/register adjustment
The adjustment was applied to the register instead of the count, causing
0x144b to decode as "PUSHM.A #4, R12".
2012-06-28 09:49:42 +12:00
Peter A. Bigot 25f6df0d0f fix disassembly of 20-bit calla operands 2012-06-05 12:01:53 +12:00
Peter A. Bigot 8fe14ca1da Correct counts in disassembled rxxm/pushm/popm 2012-06-05 12:01:50 +12:00
Daniel Beer 31e8dabd09 Fix delay_s for Windows. 2012-05-10 11:41:00 +12:00
Daniel Beer 6fd161faa7 Add delay_s() for portable sleep() substitute. 2012-05-10 10:00:12 +12:00
Daniel Beer a914bc732d Add support for building on Cygwin.
The symbol __Windows__ is defined when building a native (non-Cygwin)
binary.
2012-04-25 11:02:22 +12:00
Daniel Beer 94abe88bb1 Non-standard baud rates for FreeBSD, NetBSD.
This appears to work the same as it does for OpenBSD.
2012-03-03 09:57:48 +13:00