Daniel Beer
3feecd30b6
Added -s option to distinguish between devices by serial number.
...
Based on patch by Tamas Tevesz <ice@extreme.hu>.
2011-07-18 14:56:29 +12:00
Daniel Beer
1e21d9da8f
Added support for MSP430FR5739.
...
Use "load" instead of "prog" for programming.
2011-07-06 09:32:36 +12:00
Ionut Nicu
d5ecb69633
Add --force-reset option
...
Without this option MSP430F5526 fails to reset its
registers properly. When the SP register points to
a random address and we try to set a breakpoint with
gdb, it will try to read all memory locations from
SP up to the top of the RAM searching for the return
address in the current stack frame.
On MSP430F47173 initialization fails when not using
reset (command C_IDENT1 failed) and we also need
to fall back to using try_open with send_reset = 1.
Signed-off-by: Ionut Nicu <ionut.nicu@mindbit.ro>
2011-03-27 13:01:00 +13:00
Daniel Beer
21dab55de1
Fixed incorrect driver names.
2011-03-15 16:08:46 +13:00
Daniel Beer
41375ba084
Separated FET protocol quirks into flags.
2011-03-15 15:36:50 +13:00
Daniel Beer
ed2c841da9
Separated device vtables/class information.
2011-03-15 14:56:07 +13:00
Daniel Beer
b6e241a9e3
Implemented uniform device constructor functions.
2011-03-15 14:20:06 +13:00
Daniel Beer
e182be2204
Added fet_block_size option.
...
This option controls the buffer size used for transfers to and from the
FET. Increasing it will improve transfer times, but may cause problems
with some chips.
Also, the default request size used for several commands has been
increased to take advantage of this.
2011-02-21 11:30:32 +13:00
Daniel Beer
9956ecadb5
fet: retry with reset on connect if the first attempt fails.
2010-10-16 17:26:58 +13:00
Daniel Beer
fd98116298
Merge branch 'erase'
2010-10-12 11:00:28 +13:00
Daniel Beer
32f45d72de
fet: reset on close, rather than init.
2010-10-12 11:00:09 +13:00
Daniel Beer
4c7538143c
Erase bug fixes.
2010-09-23 19:34:12 +12:00
Daniel Beer
1ae163572c
fet: implemented mass and segment erase.
2010-09-23 16:14:21 +12:00
Daniel Beer
b9e5db63d5
device: altered erase interface to allow different erase types.
2010-09-23 15:45:06 +12:00
Sören Höckner
ecccfb5a64
fet: change block size to 64 bytes.
...
Have observed crashes of the FET when programming some devices using
128-byte blocks.
2010-09-14 14:56:10 +12:00
Sören Höckner
218ead5fe5
fet: fix packet size alignment when reading/writing buffers.
2010-09-14 14:54:25 +12:00
Daniel Beer
93087e534d
prog: removed word-alignment buffering.
2010-09-13 10:40:29 +12:00
Daniel Beer
46fd2956cd
fet: workaround for unaligned reads/writes.
2010-09-13 10:27:50 +12:00
Daniel Beer
40fa5de592
Move code_start field into base device class.
2010-09-10 11:40:59 +12:00
Daniel Beer
2ef8f7574b
fet: by default, reset chip on startup.
2010-09-02 11:55:12 +12:00
Eric Decker
1a3f9a9ff3
fet: always show chip name.
2010-09-01 09:34:50 +12:00
Daniel Beer
9c2ed8c5fc
Introduced quiet mode option and command-line switch.
...
Based on a patch by Eric Decker <cire831@gmail.com>
2010-08-31 15:50:00 +12:00
Daniel Beer
d2c91feeb0
fet: reduce polling interval to 50 ms (was 500 ms).
2010-08-17 11:54:50 +12:00
Daniel Beer
87f89adc44
All output now goes through buffering/filtering.
...
The following substitutions have been made:
printf -> printc
fprintf(stderr, ...) -> printc_err(...)
perror -> pr_error
2010-08-17 11:07:03 +12:00
Daniel Beer
5b2c75563d
Device interface and drivers are now 32-bit clean.
2010-08-05 14:43:07 +12:00
Daniel Beer
3f6d8f91ad
Moved breakpoint table into device base structure.
...
Breakpoints only ever change by debugger control, so there's no point
having a device-dependent "getbrk" method. Breakpoint update need only
be done before starting the device running.
2010-07-27 13:08:21 +12:00
Daniel Beer
74a11c1ae0
Implemented support for multiple breakpoints.
2010-07-02 14:22:52 +12:00
Daniel Beer
eab488da92
fet: continue even if set VCC fails.
...
This is not a fatal error under all circumstances, for example when
debugging a board with external power applied.
2010-07-01 12:25:34 +12:00
Daniel Beer
cf4ec417ff
Added support for Olimex MSP430-JTAG-TINY.
2010-06-15 14:53:38 +12:00
Daniel Beer
efabaf5161
Consistent spelling of "Spy-Bi-Wire".
2010-06-15 13:13:51 +12:00
Peter Jansen
465147cdd4
Added support for MSP430F169
2010-06-15 13:07:06 +12:00
Daniel Beer
c1bb903b99
Try to use JTAG mode 2 with UIF devices.
2010-06-15 12:56:20 +12:00
Daniel Beer
9672e24b65
Fixed bug preventing chip identification.
2010-05-21 14:19:15 +12:00
Daniel Beer
626b0085a0
Added constants for C_CONFIGURE in fet.c.
2010-05-20 13:14:36 +12:00
Daniel Beer
15b6148cd4
Fixed erase command on chips with code start > 0x8000.
2010-05-20 12:47:03 +12:00
Daniel Beer
de80453268
Extract useful macros (LE_BYTE, LE_WORD, LE_LONG).
2010-05-19 14:53:43 +12:00
Daniel Beer
e3e33f2c0d
Corrected MSP430F2013 ID text.
2010-05-19 12:18:31 +12:00
Daniel Beer
6d0d32c8a0
FET database bug fixes.
2010-05-19 12:02:33 +12:00
Daniel Beer
a87ad8b834
Added --fet-force-id command-line option.
2010-05-19 11:54:15 +12:00
Daniel Beer
d69b48bd89
Use fet_db to find magic messages.
2010-05-19 11:31:40 +12:00
Daniel Beer
fab96c725d
BSL now shows descriptive errors returned by FET.
2010-05-15 13:44:46 +12:00
Daniel Beer
c96ce58a8f
Took checksum function from uif430.
2010-05-15 13:42:02 +12:00
Daniel Beer
b8a3ef41c7
Use stdint.h instead of sys/types.h.
2010-05-13 12:57:21 +12:00
Daniel Beer
c981893254
Transports are now objects.
2010-04-30 16:57:57 +12:00
Daniel Beer
204aa31291
Device drivers are now objects.
2010-04-30 16:01:03 +12:00
Daniel Beer
6fa975277b
fet: implemented magic table for FW ver. 20404000
2010-04-28 18:55:37 +12:00
Daniel Beer
006585e0f7
Modified FET driver for testing with TI Chronos.
2010-04-10 15:44:49 +12:00
Daniel Beer
7e309acdc5
Separated device commands.
2010-04-10 14:35:36 +12:00
Daniel Beer
f8f530f24e
Convert FET command constants to hex.
2010-04-09 15:57:41 +12:00
Daniel Beer
1f8b65870c
Removed per-command checks for fet_is_rf2500.
2010-04-08 15:01:09 +12:00