Daniel Beer
d59fb64ac2
Don't issue mass erase if BSL password is specified.
2019-03-12 12:16:35 +13:00
Daniel Beer
5c5fec9acd
rom_bsl: fix incorrect use of sizeof().
2019-03-10 15:19:41 +13:00
Daniel Beer
989038d3b3
Implement --bsl-entry-password option.
2019-03-08 08:46:16 +13:00
Daniel Beer
3bc5cb2686
simio: fix uninitialized memory use in IO reads.
2018-11-28 08:44:49 +13:00
William D. Jones
66dc9057e2
Improve compiling experience on MinGW platform (use pkg-config, *nix rm).
2018-11-18 14:49:08 -05:00
Daniel Beer
b975fd00a0
Merge pull request #76 from melak/tilib_path_facelift
...
Facelift MSPDEBUG_TILIB_PATH handling
2018-09-17 16:34:14 +12:00
Tamas TEVESZ
be0f7b4576
Facelift MSPDEBUG_TILIB_PATH handling
...
Yes, I primarily just want to get rid of strcat (which is checked and
appears to be OK, but still, it's 2018).
Also bring behaviour in line with manual and common expectations:
- In absence of MSPDEBUG_TILIB_PATH, the dynamic linker search
path is processed
- If MSPDEBUG_TILIB_PATH is specified, that directory is searched
- The original behaviour in case of an error is graceful fall-through
to letting the dynamic linker do its deed
- The behaviour is changed such that if MSPDEBUG_TILIB_PATH is specified,
only that path is being considered.
This is in line with both manual and common sense (otherwise one
could have just used LD_LIBRARY_PATH).
2018-09-16 10:36:23 +02:00
Daniel Beer
457c0c3f00
Merge pull request #73 from DanielO/msppath
...
Look for an env var to help find the MSP430 library
2018-08-25 11:57:43 +12:00
Daniel O'Connor
ea1b0ee7c9
Add manual page notes for MSPDEBUG_TILIB_PATH.
2018-08-24 14:08:04 +09:30
Daniel O'Connor
97e5cb63aa
Change name of variable to MSPDEBUG_TILIB_PATH to match existing style.
2018-08-24 14:04:52 +09:30
Daniel O'Connor
a2c48ed345
Don't use asprintf as it may not be available on all platforms.
2018-08-24 14:02:50 +09:30
Daniel Beer
44f31b27a5
Merge pull request #72 from DanielO/master
...
Detect macports to find hidapi and libusb.
2018-08-16 08:25:32 +12:00
Daniel O'Connor
65c0e5a440
Look for an env var to help find the MSP430 library
2018-08-15 13:42:21 +09:30
Daniel O'Connor
6c82bbf017
Detect macports to find hidapi and libusb.
2018-08-15 13:33:55 +09:30
Daniel Beer
f017df6781
Merge pull request #69 from tgtakaoka/simio-timer-b
...
[simio] support Timer_B
2018-07-23 13:20:09 +12:00
Tadashi G. Takaoka
8564f42b66
[simio] support Timer_B compare latch grouping
2018-07-22 21:39:29 +09:00
Tadashi G. Takaoka
c53f697b76
[simio] support Timer_B compare latch double-buffering
2018-07-21 16:55:12 +09:00
Tadashi G. Takaoka
f9f897e95e
[simio] support Timer_B
...
Timer_B is identical to Timer_A with the following exceptions.
1. The SCCI bit function is not implemented in Timer_B.
2. The interrupt vector word of TBIFG is different than TAIFG one.
3. The length of Timer_B is programable to be 8, 10, 12, or 16 bits.
4. Timer_B TBCCRx registers can be double-buffered.
5. Timer_B TBCCRx registers can be grouped.
This change implements 1, 2, and 3.
Double-buffering and grouping TBCCRx will be following.
2018-07-21 16:55:08 +09:00
Tadashi G. Takaoka
8db02ae3d4
[simio] Fix timer capturing by software
2018-07-21 16:48:45 +09:00
Tadashi G. Takaoka
d49dcefec6
[simio] Fix changing timer period
2018-07-21 16:42:59 +09:00
Tadashi G. Takaoka
b323849d8a
[simio] Add timer tests
2018-07-21 16:00:12 +09:00
Daniel Beer
844c322721
Merge pull request #71 from tgtakaoka/fix-disassemble
...
Fix repeated disassemble
2018-07-18 08:02:26 +12:00
Tadashi G. Takaoka
25959448ab
Fix repeated disassemble
...
- An odd disassemble length is rounded up to the next even length.
- A repeated disassemble starts from the next possible instrunction address.
2018-07-16 21:31:35 -07:00
Daniel Beer
1b13979594
Merge pull request #62 from tgtakaoka/fix-simio-timer
...
Fix sim driver and simio_timer
2018-07-01 08:46:09 +12:00
Tadashi G. Takaoka
00fde4a2f2
Fix sim driver and simio_timer
...
- Fix sim driver so that it can handle two bytes read/write.
- Add error message regarding odd size write to sim driver.
- Fix simio_timer constructor so that can accept size.
- Fix simio_timer so that we read/write channels' registers.
2018-06-29 14:11:41 +09:00
Daniel Beer
4d3a437196
Merge pull request #60 from hosewiejacke/master
...
simio: console can print to file
2018-06-28 09:08:10 +12:00
Hose wie Jacke
8ce536556a
simio: console can print to file
...
This is usefull for `tail -f`.
2018-06-27 15:10:37 +02:00
Daniel Beer
1cb2e5664b
Merge pull request #61 from tgtakaoka/fix-linux-build
...
Fix linux build caused by pull request #58
2018-06-27 15:19:22 +12:00
Tadashi G. Takaoka
c325b5e80a
Fix linux build caused by pull request #58
2018-06-27 10:40:27 +09:00
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