Commit Graph

124 Commits

Author SHA1 Message Date
Alex Orange 682d7ecc9c Add a bus pirate driver.
This is extremely slow at programming things, but is very useful for
unbricking an MSP-FET430UIF if you have a bus pirate and no other
programmers around.
2017-06-14 13:53:03 -06:00
Emmanuel Blot 95dd38b52a Replace libusb with hidapi on macOS
macOS won't let libusb access the RF2500 HID device, but hidapi does.
2017-04-25 19:30:17 +02:00
Hiroki Mori f96b0cb73d Use Mac OS X HID Interface at BSL 2016-11-26 19:03:41 +09:00
Derald D. Woods 86b3090338 Makefile: Fix Cygwin build
This commit moves the definitions of UNAME_* above the initial check
of the OS environment variable. Previously, UNAME_O would not be set
in the case where OS is Windows_NT. Builds would incorrectly use Windows
OS_LIBS and OS_CFLAGS in a Cygwin build environment. The tree now builds
cleanly with Cygwin's libusb-1.0 and libreadline development packages
installed.

Using Cygwin's serial port mappings for MSP-FET430UIF:

$ mspdebug -d /dev/ttyS1 uif

MSPDebug version 0.24 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2016 Daniel Beer <dlbeer@gmail.com>
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Chip info database from MSP430.dll v3.3.1.4 Copyright (C) 2013 TI, Inc.

Trying to open /dev/ttyS1 at 460800 bps...
Initializing FET...
FET protocol version is 20408002
Set Vcc: 3000 mV
Configured for Spy-Bi-Wire
Device ID: 0x0580
  Code start address: 0x5c00
  Code size         : 262144 byte = 256 kb
  RAM  start address: 0x1c00
  RAM  end   address: 0x5bff
  RAM  size         : 16384 byte = 16 kb
Device: MSP430F5438A
Number of breakpoints: 8
fet: FET returned NAK
warning: device does not support power profiling
Chip ID data:
  ver_id:         8005
  ver_sub_id:     0000
  revision:       13
  fab:            55
  self:           5555
  config:         13
Device: MSP430F5438A

[...]
2016-08-29 13:28:44 -05:00
Daniel Beer ffbb3eaadc Windows build fix-ups. 2016-05-14 11:47:28 +12:00
Ingo van Lil 811567a7bf Separate input drivers for GNU readline and plain console input. 2016-01-25 01:15:37 +01:00
Daniel Beer 4ea3856202 tilib_api: indirection layer for TI library dynamic loading. 2015-06-08 11:37:25 +12:00
Daniel Beer 74665132bb Use pkg-config on OS/X when Fink is available. 2015-03-16 08:18:39 +13:00
Daniel Beer 7ec3bc6175 Makefile: rework for TDM-GCC compatibility. 2015-03-02 09:39:21 +13:00
Jan Willeke 1be4ed0679 gpio driver Add gpio driver interface.
Signed-off-by: Jan Willeke <willeke@smartmote.de>
2015-02-04 12:48:30 +13:00
Paolo Zebelloni c0d3fbe21a BSL entry via GPIO toggling. 2014-12-15 09:06:30 +13:00
Daniel Beer 9472dd46a9 Add support for OpenIndiana.
Based on changes suggested by Reginald Beardsley <pulaskite@yahoo.com>.
2014-07-05 10:35:07 +12:00
Daniel Beer d2f8592124 rom_bsl: ROM bootstrap loader driver. 2014-04-17 15:58:16 +12:00
Daniel Beer 651d18e121 bsllib: separate modem control line sequencing. 2014-04-02 14:48:42 +13:00
Tamas TEVESZ 91289a24a7 Fixes for DragonFly BSD
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
2013-12-13 06:36:31 +13:00
Tamas TEVESZ f7b858ad89 Support building on NetBSD.
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
2013-12-12 15:54:15 +13:00
Tamas TEVESZ 47065b685b New command: ! (drop to shell)
Adds a new command, !, that drops to an interactive OS shell, or
(optionally) executes specified commands using the OS shell.

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
2013-12-11 11:47:36 +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
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 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
Tamas TEVESZ b91614b0d1 Fix compilation on FreeBSD. 2012-10-25 08:51:34 +13:00
Unai Uribarri Rodriguez 0bb6f901d5 Adds console simio device class
The console simio device class shows in the logs and or console
any byte written to its base address.
2012-10-17 08:36:34 +13:00
Daniel Beer e14a578555 Parallel JTAG driver (Linux only for now).
Based on a patch submitted by Peter Bägel <peter@baegel.de>.
2012-10-12 11:33:20 +13:00
Daniel Beer 4db2f9f499 Build fixes for OpenBSD. 2012-10-09 16:52:12 +13:00
Daniel Beer 11446eb0ae Add embedded-mode input module. 2012-10-09 15:42:54 +13:00
Daniel Beer 5714335614 Separate input subsystem and make it a swappable module. 2012-10-09 15:26:25 +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 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 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 1e36394136 Implemented basic GoodFET support. 2012-07-18 12:26:55 +12:00
Ingo van Lil 3cc5f47304 Support for demangling of C++ symbol names. 2012-07-16 10:02:06 +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 902c2903c3 Add raw USB driver for Olimex MSP430-JTAG-ISO. 2012-03-02 12:13:11 +13:00
Tamas TEVESZ 591a7eba9b Tweak Makefile for readability. 2011-11-01 08:29:56 +13:00
Tamas TEVESZ aa81a59538 FreeBSD doesn't need -ldl. 2011-10-31 11:02:46 +13:00
Daniel Beer d451c384e7 Fix linking on OpenBSD (-ldl is not required). 2011-10-25 10:43:17 +13:00
Daniel Beer 83048f233f Link with -ldl on non-Windows systems. 2011-10-22 10:03:06 +13:00
Jasper Lievisse Adriaanse 87b1e66c27 OpenBSD needs -pthread for correct pthread linking. 2011-10-19 11:52:39 +13:00
Daniel Beer f18b0c188b Added TI library driver (experimental).
Memory/register read, single-step, run and halt are working.
Breakpoints aren't working, and programming hasn't been tested.
2011-10-14 12:49:04 +13:00
Daniel Beer 69a5593fe4 Added portable dynamic loader interface.
Not yet tested on Win32.
2011-10-14 12:12:14 +13:00
Jasper Lievisse Adriaanse e595ec24df Use variables for storing certain directories instead of hardcoding them. 2011-10-04 10:31:56 +13:00