Rutger Hofman
03b5d454ee
In USB cable open(), parport set/get_data/get_status/set_control, return/handle URJ_STATUS_OK/FAIL more correctly
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1642 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
2d6c042179
use separate index variable for driver selection
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1641 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
be14802d6a
Fix bsdl bit order and safe bit (Jean-Christian de Rivaz)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1640 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
9310896954
add missing "length" word to bsdl output
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1639 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
065ab6d7ea
Apparently 'svn mv' doesn't always work. Add libftdx.h and libusb.h (again) by hand
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1638 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
419ce7bd36
Move include/urjtag/usbconn/*.h to src/tap/usbconn/; move urj_cmd_params() and urj_cmd_get_number() to src/cmd/cmd.h. These are in fact local includes.
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1637 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
ebb0861971
- rename src/global/urjtag.c to src/global/log-error.c
...
- introduce data structure for key/value pairs
- have an API call initbus() that uses key/value pairs to pass in options
- have API calls urj_tap_cable_parport_connect(), urj_tap_cable_usb_connect(),
urj_tap_cable_other_connect(); have a tagged union in the cable driver
that offers driver-specific connect() calls.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1636 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
24224efa33
allow people to retrieve current log level by running `debug`
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1635 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
761aa8e99d
make sure the user is clearly notified when the datafiles could not be read
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1634 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
09e4be3761
improve the svn rev lookup process
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1633 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
7b9c9550e3
add a .gitignore file
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1632 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
35fd7ffbf8
Patch by Florian Fainelli: fix 'uninitialized' warnings in src/bus/avr32.c
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1631 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
85e8aec92e
fix by Florian Fainelli:
...
I finally tracked down the issue being in the xpc_ext_done, which calls
xpcu_output_enable while we could not claim the device, this simply fails
since the usb_handler is not valid. The xpc_ext_done callback is there to
reset the status of the JTAG cable on exit, but we should actually reset the
state on initialization no matter what was the status before calling urjtag.
Since we are performing the reset in the initilization callback, we can now
remove xpc_ext_done and call urj_tap_cable_generic_usbconn_done().
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1630 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
4e9a94cd7e
keywords for bus drivers
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1629 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
3e4e712c6e
[ 2793104 ]
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1628 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
cb215b6ba3
[ 2793104 ] hidden bug? in bf533-stamp.c (MURANAKA Masaki)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1627 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
71328b1824
readmem() and writemem() return a status. Patch their error handling
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1626 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
a53f454f64
fix whitespace in bf538f_ezkit bus line
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1625 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
01838a708a
change some errors to fatals
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1624 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
5ef5c39b9a
port BSDL message system to urj_log/urj_err_set functionality
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1623 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
324c76a696
Add an option to skip building the main programs (--disable-apps)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1622 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
915126d9dd
fix obsolete reference to bsdl2jtag script in src/Makefile.am
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1621 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
c38a0135b1
replace wrapper shell script with application that links to liburjtag
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1620 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
5475adaba1
replace remaining printf invocations with urj_log
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1619 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
64b645b989
verify speed-up: use URJ_BUS_READ_START, _NEXT,
...
and _END instead of monolithic URJ_BUS_READ
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1618 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
6e813203d3
rework autoselect probing
...
better support of x8/x16 capable flash chips
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1617 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
22e4e6daa6
Building under Cygwin w/ gcc-3.4.4 yielded more uint32_t \!= long unsigned printf warnings
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1616 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
19ea1ee344
use URJ_STATUS_ return codes except on toplevel interface, this needs to
...
be revisited
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1615 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
994fb1b818
decode the bit stream displayed by idcode into hex values automatically for the user
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1614 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
1eef94ea87
convert the local bits_to_uint64() to a proper exported urj_tap_register_get_value() like the urj_tap_register_get_string() function
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1613 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
0ca7bfc9f5
fix the idcode usage to describe what it actually does
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1612 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
1613092819
update svn ignores
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1611 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
7dc9b20200
fix confusing output when bit 0 of the idcode is not 1 as required by jtag spec
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1610 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
d64f2ddca1
allow for explicit control over -Werror flag similar to how most GNU toolchain packages work
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1609 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Mike Frysinger
f4a3188ed1
2009-05-21 Mike Frysinger <vapier@gentoo.org>
...
* data/xilinx/PARTS: added xc3s1200e_fg320 and xc2vp30-ffg896 (Florian
Fainelli)
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1608 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
27b98ebaf9
added bcm6348 (Julien Aube)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1607 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
dec5f8f6dc
make urj_log into a macro. Principal reason: if urj_log won't print, it also
...
won't evaluate the arguments so there is no performance penalty in having
gazillion disabled low-level prints;
src/bus to use urj_log() i.s.o. printf; set urj_error wherever appropriate;
return FAIL/OK state where appropriate. read_start() now returns status.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1606 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
64ae992278
Replace urj_debug_mode in cmd_debug with setting urj_log_state.level
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1605 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
4d0c186493
Wha, some gcc versions are much more pickier than others in their int promotion rules
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1604 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
a837a66041
Accidentally, put in nanosleep calls. Restore to usleep
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1603 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
4a1a29aa74
Forgot to add usleep.c
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1602 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
7384c11cab
Make it compile for my eCos BlackFin checkout.
...
- numerous casts because "%zd" ever requires a size_t, even for a manifest
constant; and because a uint32_t should be cast to a long unsigned to be
printed with "%lu" (long unsigned is at least 32-bit)
- move include/urjtag/urjtag.h to include/urjtag/urjtag.h.in and only
export .h files for modules actually configured: USB, SVF, BSDL are
only conditionally exported
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1601 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
d7adb29de7
added Winbond W19B320AT/B flash chip
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1600 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
e68bf276bd
[ 2770421 ] Patch: Support for IXP43x (Florian Boor)
...
without jtag description files
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1599 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
e66ca022bd
[ 2782584 ] PPWDATA and PPWCONTROL ioclts take unsigned char not uint8_t (Yen Rui)
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1598 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
b4ec05ed41
document return value
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1597 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Arnim Läuger
8b1b595474
implement pass/fail return values with URJ_STATUS_*
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1596 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
951498a8df
Move sysdep.h from include/urjtag/ to the root dir, pending a private include dir
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1595 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
603611e442
* src/tap/cable/*.c: convert return values, error handling, printfs
...
* src/**: globally remove \n or !\n from error detail msgs; sanitize
error prints a tiny bit
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1594 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago
Rutger Hofman
f7b75f7289
Silly omission of != URJ_STATUS_OK in src/cmd/cmd_peekpoke.c
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1593 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
16 years ago