Commit Graph

856 Commits

Author SHA1 Message Date
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 0fcd0ae124 Fix stray printf(). 2012-10-09 09:30:16 +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 3da52fe100 fet: fix unused variable warning. 2012-10-04 14:24:44 +12:00
Daniel Beer bec49846fb Document "power" command. 2012-10-04 12:59:52 +13:00
Daniel Beer 7cc1a063be Add "power profile" command to show code hotspots. 2012-10-04 12:52:55 +13:00
Daniel Beer ca6a30b2e7 dis: power consumption annotations. 2012-10-04 12:47:25 +13:00
Daniel Beer 1959b8b895 power: implement CSV export. 2012-10-03 16:44:31 +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 1973746d33 New chip identification database for Olimex debuggers.
The devicelist table maps chip ID bytes to an enum of devicetype_t. A
separate table provides configuration data for each value of
devicetype_t.

Original patch submitted by Stanimir Bonev <bonev_st@abv.bg>.
2012-10-03 13:41:59 +13:00
Daniel Beer c5e93345a0 fet_proto: capture FET error code. 2012-10-03 13:36:09 +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 ce64ff10b5 bsl: add support for raw USB access. 2012-09-19 09:02:35 +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 15bfda5b6d Split FET constructors from core methods.
Constructors and device class definitions are now contained in fet.c.
The methods which implement the device interface are in fet_core.c, and
these are independent of how the device object is constructed.
2012-09-18 11:17:55 +12:00
Daniel Beer 1ac9f30024 Separate FET packet parser from driver. 2012-09-13 15:49:19 +12:00
Daniel Beer 837e1d8e00 Replace "olimex_iso" transport with generic "ftdi".
Constructor now takes arguments for vendor/product IDs and baud rate.
2012-09-13 14:53:30 +12:00
Daniel Beer 1392cea7e1 Replace "uif" transport with generic "comport".
The new transport accepts an arbitrary baud rate instead of a
device-type enum.
2012-09-13 14:33:04 +12:00
Daniel Beer 162d1bc951 Separate Olimex transports and drivers.
The "olimex" transport has been divided into "cp210x" and "cdc_acm",
each of which take a specific vendor/product combination in their
constructor. Support for the MSP430-JTAG-ISO-MK2 has been moved into its
own driver instance.
2012-09-13 14:14:59 +12:00
Daniel Beer 6037c12291 Add support for Olimex firmware updates. 2012-09-11 14:35:31 +12:00
Daniel Beer d844adf828 Separate transports from drivers.
The transport/ subdirectory now contains implementations of the
transport_t interface, which has been expanded to include flush and
set_modem operations.
2012-09-10 14:22:00 +12:00
Ingo van Lil c66e885899 Support for flashing or verifying raw binary files. 2012-08-30 09:16:24 +12:00
Daniel Beer 239fbb7f94 fet: don't send code memory start address with erase request.
Instead, use 0xfffe. This address is always within the range of main
memory, and should allow the request to work even if the chip has been
misidentified.
2012-08-23 16:14:07 +12:00
Daniel Beer 9f4bb5f303 tilib: fix breakpoint refresh.
If a breakpoint is set and then removed, with no refresh in between,
then no handle is ever assigned and so a request to remove the
breakpoint will fail.
2012-08-23 15:00:44 +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 53dd7f8188 Add support for MSP430F5521. 2012-08-16 08:55:13 +12:00
Tamas TEVESZ 84866b78cc fet: Error messages from MSP430DLLv3 version 3.2.4.5. 2012-08-15 11:34:28 +12:00
Daniel Beer c717eed96d device_probe_id: all output should be debug output. 2012-08-15 08:59:45 +12:00
Daniel Beer 213c892a00 Version 0.20 2012-08-14 17:24:17 +12:00
Daniel Beer b9b2c7135f Add documentation for "fill" command. 2012-08-14 16:48:38 +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 4ab905751c fet: different exit procedure for FRAM devices.
This is a partial revert to 0e5c38231b.
We detect whether the chip is an FRAM device at exit, and use a
different reset type if it is. The referenced commit broke the RST pin
on older chips.
2012-08-10 08:34:35 +12:00
Daniel Beer 907ef86156 Added "fill" command. 2012-08-09 16:07:05 +12:00
Daniel Beer ae9c212f37 Make device_erase a no-op for FRAM chips. 2012-08-09 15:34:06 +12:00
Daniel Beer 886fbd59c9 Probe chip ID bytes on startup. 2012-08-09 15:33:56 +12:00
Daniel Beer 377e30ea03 coff: skip over bad symbol table entries. 2012-08-01 12:20:17 +12:00
Daniel Beer 0e5c38231b rf2500: separate reset and run on exit.
This was causing a problem with the MSP430FR5739. Exiting and restarting
mspdebug would cause the reset vector (0xfffe) to be overwritten with
0xff 0xff. This didn't happen if you repowered the board between the
exit and restart.
2012-08-01 11:32:19 +12:00
Tamas TEVESZ e02567a712 Merge F2012 and G2231 2012-07-23 09:33:44 +12:00
Sean Burford ad6c39a0aa simio_timer: implement TAIV register. 2012-07-20 09:20:37 +12:00
Daniel Beer 65d15ef680 Added "verify" command. 2012-07-18 14:03:55 +12:00
Daniel Beer 5584136b69 elf32: stop section extraction after the first error. 2012-07-18 14:00:16 +12:00
Daniel Beer 1e36394136 Implemented basic GoodFET support. 2012-07-18 12:26:55 +12:00
Daniel Beer eae3026f5a flash_bsl: fix error with large block sizes. 2012-07-16 10:05:46 +12:00
Ingo van Lil 3cc5f47304 Support for demangling of C++ symbol names. 2012-07-16 10:02:06 +12:00
Daniel Beer 69f3a15187 fet_db: updated MSP430G2452.
New data contributed by Marc de Hoop <marc@springuin.nl>.
2012-07-06 08:56:34 +12:00
Daniel Beer 08cd326e66 Fix support for MSP430F2618.
Breakpoint count is stored as a byte, not a 16-bit word.
2012-07-06 08:50:44 +12:00