Commit Graph

827 Commits

Author SHA1 Message Date
Daniel Beer b30bf6ac30
Merge pull request #58 from tgtakaoka/rf2500-fallback
Fallback to libusb backend when rf2500hidapi fails
2018-06-27 11:58:41 +12:00
Tadashi G. Takaoka 915ee94e02 Fallback to libusb backend when rf2500hidapi fails
In some macOS configurations, macOS 10.13.5 on Macmini4,1 in my case,
rf2500hidapi transport fails to open RF2500 device with unknown
reason. This CL enables mspdebug to fallback to libusb backend in such
situation.
2018-06-25 23:55:52 +09:00
Daniel Beer 9032544df1
Merge pull request #56 from tgtakaoka/update-chipinfo-slac460y
Update chipinfo.db with slac460y
2018-05-18 17:07:50 +12:00
Tadashi G. Takaoka 246a7c48e0 Update chipinfo.db with slac460y
The updated chipinfo.db has been extracted from slac460y.
  http://www.ti.com/lit/sw/slac460y/slac460y.zip
You can find the release note at version 3.13.0.1 of
  http://www.ti.com/tool/mspds

To extract chipinfo.db, the following patches are necessary to make
msp-ds-dumpdb command from slac460y, and corresponding Homebrew
formula, msp-ds.rb may help.
  https://raw.githubusercontent.com/tgtakaoka/homebrew-tinyos-msp430/master/patches/msp-ds-slac460y-1-patches.tar.xz
  https://github.com/tgtakaoka/homebrew-tinyos-msp430/blob/master/msp-ds.rb

The msp-ds-dumpdb command also can dump device database with XML
format as MSP430_DumpDeviceDb() do.
2018-05-18 07:16:02 +09:00
Daniel Beer 0b10647c5d
Merge pull request #55 from tgtakaoka/dis-byte-data
Print immediate byte data in 2-digits hex
2018-04-07 21:51:10 +12:00
Tadashi G. Takaoka e5e3dd13eb Print immediate byte data in 2-digits hex 2018-04-06 00:17:56 +09:00
Daniel Beer b294df8cc0
Merge pull request #50 from tgtakaoka/opt-lowercase-dis
Add lowercase_dis option
2018-04-04 12:28:27 +12:00
Daniel Beer d2421cae9d
Merge pull request #51 from tgtakaoka/update-chipinfo-slac460x
FYI: Update chipinfo.db with slac460x
2018-04-04 12:27:03 +12:00
Daniel Beer 061c7ac7da
Merge pull request #52 from tgtakaoka/macos-dylib-name
Fix MSP Debug Stack dynamic library name on macOS
2018-04-04 12:26:22 +12:00
Daniel Beer 312d69eb50
Merge pull request #54 from tgtakaoka/macos-brew-libusb
Fix compiler flag on macOS to include libusb
2018-04-04 12:25:57 +12:00
Tadashi G. Takaoka 377f1d772f Fix comiler flag on macOS to include libusb
This fixes the compilation error on utils/usbutil.c:22, 'usb.h' file
not found.
2018-04-03 23:18:18 +09:00
Tadashi G. Takaoka c9af50666d Fix MSP Debug Stack dynamic library name on macOS
On macOS, a dynamic loadable library has .dylib suffix.
2018-04-03 23:00:32 +09:00
Tadashi G. Takaoka c9c7cf546b FYI: Update chipinfo.db with slac460x
This also modifies struct chipinfo.mclk_control to uint32_t, since it
contains 32 timers' information.

The updated chipinfo.db has been extracted from slac460x.
  http://www.ti.com/lit/sw/slac460x/slac460x.zip

To extract chipinfo.db, the following patches are necessary to make
msp-ds-dumpdb command from slac460x, and corresponding Homebrew
formula, msp-ds.rb may help.
  https://raw.githubusercontent.com/tgtakaoka/homebrew-tinyos-msp430/master/patches/msp-ds-slac460x-2-patches.tar.xz
  https://github.com/tgtakaoka/homebrew-tinyos-msp430/blob/master/msp-ds.rb

The msp-ds-dumpdb command also can dump device database with XML
format as MSP430_DumpDeviceDb() do.
2018-04-03 22:22:10 +09:00
Tadashi G. Takaoka 5549f35977 Move lowercase conversion to output_util.c 2018-04-03 22:07:07 +09:00
Tadashi G. Takaoka 5b9bdbc2aa Add lowercase_dis option
The lowercase_dis option, if set to true, changes instruction and
register names of disassembler command to lower case. This can be
matched with hexadecimal dump of raw instruction and address.  It also
matches with GNU debugger and assembler.
2018-04-02 23:28:11 +09:00
Daniel Beer 7c41acd418
Merge pull request #49 from brunompena/master
Fix MinGW compilation under Windows.
2018-03-02 07:28:03 +13:00
Bruno Pena 3c19304af3 Fix MinGW compilation under Windows.
Added missing header.

Signed-off-by: Bruno Pena <brunompena@gmail.com>
2018-03-01 18:31:17 +01:00
Daniel Beer d54d6ec6c0
Merge pull request #47 from brunompena/get_arg-single_quote
Add logic for single quote arguments (verbatim)
2018-02-28 13:47:52 +13:00
Bruno Pena 4401f60d91 Escape single quotes inside double quote.
Signed-off-by: Bruno Pena <brunompena@gmail.com>
2018-02-27 23:18:57 +01:00
Bruno Pena ad8063166e Added logic for single quote arguments (verbatim).
This can then be used to quote Windows paths that are passed to mspdebug
by Energia:

> mspdebug ... "prog 'C:\Users\Path with Spaces\...\file.hex'"

Signed-off-by: Bruno Pena <brunompena@gmail.com>
2018-02-27 22:55:05 +01:00
Daniel Beer e88302e356
Merge pull request #46 from bradfa/trivial-spelling-fixes
Trivial spelling fixes found by lintian
2018-02-28 09:09:04 +13:00
Andrew Bradford 622ea72431 Trivial spelling fixes found by lintian
Signed-off-by: Andrew Bradford <andrew@bradfordembedded.com>
2018-02-27 11:50:41 -05:00
Daniel Beer d49fad945e
Merge pull request #45 from bradfa/bus-pirate-misleading-indent
drivers/jtdev_bus_pirate: Fix GCC 7 misleading indent warning
2018-02-10 11:46:00 +13:00
Andrew Bradford 1ca3919a1c drivers/jtdev_bus_pirate: Fix GCC 7 misleading indent warning
Indent the jtbp_close() function consistently with tabs in order to fix
for GCC 7's flagging of this warning:

drivers/jtdev_bus_pirate.c: In function ‘jtbp_close’:
drivers/jtdev_bus_pirate.c:189:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if(write(p->port, &out_buff, 1));
     ^~
drivers/jtdev_bus_pirate.c:191:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  close(p->port);
  ^~~~~

Signed-off-by: Andrew Bradford <andrew@bradfordembedded.com>
2018-02-09 13:42:46 -05:00
Daniel Beer 973f0df956 chipinfo.db: update to add MSP430FR5969.
Changes contributed by Yuriy Vlasenko <drvlas@gmail.com>.
2017-12-05 11:52:35 +13:00
Daniel Beer 2b4b40938c fet_db: support for more FRAM chips.
Patch contributed by Yuriy Vlasenko <drvlas@gmail.com>.
2017-10-24 11:01:46 +13:00
Daniel Beer b9da911eae Version 0.25. 2017-07-24 18:58:05 +12:00
Daniel Beer 21c0e7863c Merge pull request #37 from CrazyCasta/config_fuses
Add a function to the device struct to handle config fuses.
2017-06-16 00:49:25 +12:00
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
Alex Orange 8a1afe6c91 Add a function to the device struct to handle config fuses.
Also provide a getconfigfuses implementation for the pif based drivers (pif
and gpio).
2017-06-14 13:28:07 -06:00
Daniel Beer 33cd9ba4cd Merge pull request #35 from eblot/rf2500_hidapi
HIDAPI implementation for Rf2500 (TI Launchpad) for macOS
2017-04-27 11:05:19 +12:00
Emmanuel Blot 2d5bafe3fc Code cleanup 2017-04-26 16:24:28 +02:00
Emmanuel Blot 2bedf39532 Proper serial number management to select USB device 2017-04-26 13:04:34 +02: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
Emmanuel Blot 587dbf1516 Duplicate RF2500 transport for HIDAPI backend 2017-04-25 19:06:38 +02:00
Daniel Beer 0666a32517 Merge pull request #31 from xhpohanka/slac460s
Support for slac460s (loadDeviceDb)
2017-02-21 12:08:05 +13:00
Jan Pohanka 721a012e81 Support for slac460s (loadDeviceDb) 2017-02-17 08:44:19 +01:00
Daniel Beer abced5d1b4 Merge pull request #30 from xhpohanka/rom_bsl
MSP430 BSL needs even counts and addresses
2017-02-17 09:55:39 +13:00
Jan Pohanka bc57871a2e MSP430 BSL needs even counts and addresses
According to (not very good) documentation and empiric testing
BSL expects sizes of buffers sends to both sides to be even.
The same applies to memory addresses.
2017-02-15 10:29:59 +01:00
Daniel Beer a16ef760ab Merge pull request #29 from melak/fet_errcode_460s
Add FET error codes from MSP430DLL v3.9.1.002 (SLAC460s)
2017-01-29 13:53:45 +13:00
Tamas TEVESZ 87af948114 Update last error number (comment only) 2017-01-28 13:26:41 +01:00
Tamas TEVESZ ee08f5ee94 Add FET error codes from MSP430DLL v3.9.1.002 (SLAC460s) 2017-01-28 13:23:46 +01:00
Daniel Beer fcfc8e0452 Merge pull request #26 from glynhudson/master
add note to install libreadline-dev
2016-12-28 09:54:33 +13:00
Glyn Hudson ff1ccf2b1f add note to install libreadline-dev 2016-12-27 20:14:08 +00:00
Daniel Beer 1f77d74803 Windows compatibility fixes.
Supplied and tested by Patrick Dussud <phdussud@hotmail.com>.
2016-12-21 09:57:23 +13:00
Daniel Beer 9114125216 Merge pull request #23 from yamori813/master
Add Mac OS X native HID transport support.
2016-11-27 11:07:25 +13:00
Hiroki Mori 68df54a813 add copyright 2016-11-26 19:15:48 +09:00
Hiroki Mori 8ed70680f9 cleanup 2016-11-26 19:06:28 +09:00
Hiroki Mori f96b0cb73d Use Mac OS X HID Interface at BSL 2016-11-26 19:03:41 +09:00
Daniel Beer 7c9887f9bf Merge pull request #22 from johnp789/gpiojtag
Toggle test and reset pins to make gpio 4-wire JTAG work on SBW-enabled targets
2016-11-24 10:14:22 +13:00