- added Axiom AXM-0432 to texi
- updated missing jtag dongle url's in texi - reformat and remove whitespace from last commit git-svn-id: svn://svn.berlios.de/openocd/trunk@1227 b42882b7-edfa-0310-969c-e2dbd0fdcd60__archive__
parent
9e67c0e423
commit
d6ed10a002
|
@ -286,7 +286,7 @@ As of 28/Nov/2008, the following are supported:
|
||||||
|
|
||||||
@itemize @bullet
|
@itemize @bullet
|
||||||
@item @b{usbjtag}
|
@item @b{usbjtag}
|
||||||
@* Link Unknown [not easily verified]
|
@* Link @url{www.ixo.de/info/usb_jtag}
|
||||||
@item @b{jtagkey}
|
@item @b{jtagkey}
|
||||||
@* See: @url{http://www.amontec.com/jtagkey.shtml}
|
@* See: @url{http://www.amontec.com/jtagkey.shtml}
|
||||||
@item @b{oocdlink}
|
@item @b{oocdlink}
|
||||||
|
@ -304,7 +304,9 @@ As of 28/Nov/2008, the following are supported:
|
||||||
@item @b{comstick}
|
@item @b{comstick}
|
||||||
@* Link: @url{http://www.hitex.com/index.php?id=383}
|
@* Link: @url{http://www.hitex.com/index.php?id=383}
|
||||||
@item @b{stm32stick}
|
@item @b{stm32stick}
|
||||||
@* Link Unknown [not easily verified]
|
@* Link @url{http://www.hitex.com/stm32-stick}
|
||||||
|
@item @b{axm0432_jtag}
|
||||||
|
@* Axiom AXM-0432 Link @url{http://www.axman.com}
|
||||||
@end itemize
|
@end itemize
|
||||||
|
|
||||||
@section USB JLINK based
|
@section USB JLINK based
|
||||||
|
@ -370,7 +372,7 @@ produced, PDF schematics are easily found and it is easy to make.
|
||||||
@* Unknown.
|
@* Unknown.
|
||||||
|
|
||||||
@item @b{Lattice}
|
@item @b{Lattice}
|
||||||
@* From Lattice Semiconductor [link unknown]
|
@* ispDownload from Lattice Semiconductor @url{http://www.latticesemi.com/lit/docs/devtools/dlcable.pdf}
|
||||||
|
|
||||||
@item @b{flashlink}
|
@item @b{flashlink}
|
||||||
@* From ST Microsystems, link:
|
@* From ST Microsystems, link:
|
||||||
|
|
|
@ -114,7 +114,6 @@ void comstick_reset(int trst, int srst);
|
||||||
void stm32stick_reset(int trst, int srst);
|
void stm32stick_reset(int trst, int srst);
|
||||||
void axm0432_jtag_reset(int trst, int srst);
|
void axm0432_jtag_reset(int trst, int srst);
|
||||||
|
|
||||||
|
|
||||||
/* blink procedures for layouts that support a blinking led */
|
/* blink procedures for layouts that support a blinking led */
|
||||||
void olimex_jtag_blink(void);
|
void olimex_jtag_blink(void);
|
||||||
void turtle_jtag_blink(void);
|
void turtle_jtag_blink(void);
|
||||||
|
@ -1049,7 +1048,6 @@ void olimex_jtag_reset(int trst, int srst)
|
||||||
LOG_DEBUG("trst: %i, srst: %i, high_output: 0x%2.2x, high_direction: 0x%2.2x", trst, srst, high_output, high_direction);
|
LOG_DEBUG("trst: %i, srst: %i, high_output: 0x%2.2x, high_direction: 0x%2.2x", trst, srst, high_output, high_direction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void axm0432_jtag_reset(int trst, int srst)
|
void axm0432_jtag_reset(int trst, int srst)
|
||||||
{
|
{
|
||||||
if (trst == 1)
|
if (trst == 1)
|
||||||
|
@ -1062,25 +1060,22 @@ void axm0432_jtag_reset(int trst, int srst)
|
||||||
high_output |= nTRST;
|
high_output |= nTRST;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (srst == 1)
|
if (srst == 1)
|
||||||
{
|
{
|
||||||
high_output &= ~nSRST;
|
high_output &= ~nSRST;
|
||||||
}
|
}
|
||||||
else if (srst == 0)
|
else if (srst == 0)
|
||||||
{
|
{
|
||||||
high_output |= nSRST;
|
high_output |= nSRST;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* command "set data bits low byte" */
|
/* command "set data bits low byte" */
|
||||||
BUFFER_ADD = 0x82;
|
BUFFER_ADD = 0x82;
|
||||||
BUFFER_ADD = high_output;
|
BUFFER_ADD = high_output;
|
||||||
BUFFER_ADD = high_direction;
|
BUFFER_ADD = high_direction;
|
||||||
LOG_DEBUG("trst: %i, srst: %i, high_output: 0x%2.2x, high_direction: 0x%2.2x", trst, srst, high_output, high_direction);
|
LOG_DEBUG("trst: %i, srst: %i, high_output: 0x%2.2x, high_direction: 0x%2.2x", trst, srst, high_output, high_direction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void flyswatter_reset(int trst, int srst)
|
void flyswatter_reset(int trst, int srst)
|
||||||
{
|
{
|
||||||
if (trst == 1)
|
if (trst == 1)
|
||||||
|
@ -1414,15 +1409,13 @@ static int ft2232_init_ftd2xx(u16 vid, u16 pid, int more, int *try_more)
|
||||||
char *openex_string = NULL;
|
char *openex_string = NULL;
|
||||||
u8 latency_timer;
|
u8 latency_timer;
|
||||||
|
|
||||||
LOG_DEBUG("'ft2232' interface using FTD2XX with '%s' layout (%4.4x:%4.4x)",
|
LOG_DEBUG("'ft2232' interface using FTD2XX with '%s' layout (%4.4x:%4.4x)",ft2232_layout, vid, pid);
|
||||||
ft2232_layout, vid, pid);
|
|
||||||
|
|
||||||
#if IS_WIN32 == 0
|
#if IS_WIN32 == 0
|
||||||
/* Add non-standard Vid/Pid to the linux driver */
|
/* Add non-standard Vid/Pid to the linux driver */
|
||||||
if ((status = FT_SetVIDPID(vid, pid)) != FT_OK)
|
if ((status = FT_SetVIDPID(vid, pid)) != FT_OK)
|
||||||
{
|
{
|
||||||
LOG_WARNING("couldn't add %4.4x:%4.4x",
|
LOG_WARNING("couldn't add %4.4x:%4.4x", vid, pid);
|
||||||
vid, pid);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1455,8 +1448,7 @@ static int ft2232_init_ftd2xx(u16 vid, u16 pid, int more, int *try_more)
|
||||||
DWORD num_devices;
|
DWORD num_devices;
|
||||||
|
|
||||||
if (more) {
|
if (more) {
|
||||||
LOG_WARNING("unable to open ftdi device (trying more): %lu",
|
LOG_WARNING("unable to open ftdi device (trying more): %lu", status);
|
||||||
status);
|
|
||||||
*try_more = 1;
|
*try_more = 1;
|
||||||
return ERROR_JTAG_INIT_FAILED;
|
return ERROR_JTAG_INIT_FAILED;
|
||||||
}
|
}
|
||||||
|
@ -1758,13 +1750,10 @@ int usbjtag_init(void)
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int axm0432_jtag_init(void)
|
int axm0432_jtag_init(void)
|
||||||
{
|
{
|
||||||
u8 buf[3];
|
u8 buf[3];
|
||||||
u8 buf_read[1];
|
|
||||||
u32 bytes_written;
|
u32 bytes_written;
|
||||||
u32 bytes_read;
|
|
||||||
|
|
||||||
low_output = 0x08;
|
low_output = 0x08;
|
||||||
low_direction = 0x2b;
|
low_direction = 0x2b;
|
||||||
|
@ -1781,7 +1770,6 @@ int axm0432_jtag_init(void)
|
||||||
return ERROR_JTAG_INIT_FAILED;
|
return ERROR_JTAG_INIT_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (strcmp(layout->name, "axm0432_jtag") == 0)
|
if (strcmp(layout->name, "axm0432_jtag") == 0)
|
||||||
{
|
{
|
||||||
nTRST = 0x08;
|
nTRST = 0x08;
|
||||||
|
@ -1798,16 +1786,16 @@ int axm0432_jtag_init(void)
|
||||||
high_output = 0x0;
|
high_output = 0x0;
|
||||||
high_direction = 0x0c;
|
high_direction = 0x0c;
|
||||||
|
|
||||||
if (jtag_reset_config & RESET_TRST_OPEN_DRAIN)
|
if (jtag_reset_config & RESET_TRST_OPEN_DRAIN)
|
||||||
{
|
{
|
||||||
LOG_ERROR("can't set nTRSTOE to push-pull on the Dicarlo jtag");
|
LOG_ERROR("can't set nTRSTOE to push-pull on the Dicarlo jtag");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
high_output |= nTRST;
|
high_output |= nTRST;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jtag_reset_config & RESET_SRST_PUSH_PULL)
|
if (jtag_reset_config & RESET_SRST_PUSH_PULL)
|
||||||
{
|
{
|
||||||
LOG_ERROR("can't set nSRST to push-pull on the Dicarlo jtag");
|
LOG_ERROR("can't set nSRST to push-pull on the Dicarlo jtag");
|
||||||
}
|
}
|
||||||
|
@ -1831,9 +1819,6 @@ int axm0432_jtag_init(void)
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int jtagkey_init(void)
|
int jtagkey_init(void)
|
||||||
{
|
{
|
||||||
u8 buf[3];
|
u8 buf[3];
|
||||||
|
@ -2048,7 +2033,7 @@ int turtle_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
nSRST = 0x40;
|
nSRST = 0x40;
|
||||||
|
|
||||||
high_output = 0x00;
|
high_output = 0x00;
|
||||||
high_direction = 0x0C;
|
high_direction = 0x0C;
|
||||||
|
|
||||||
|
@ -2091,7 +2076,7 @@ int comstick_init(void)
|
||||||
nTRSTnOE = 0x00; /* no output enable for nTRST */
|
nTRSTnOE = 0x00; /* no output enable for nTRST */
|
||||||
nSRST = 0x02;
|
nSRST = 0x02;
|
||||||
nSRSTnOE = 0x00; /* no output enable for nSRST */
|
nSRSTnOE = 0x00; /* no output enable for nSRST */
|
||||||
|
|
||||||
high_output = 0x03;
|
high_output = 0x03;
|
||||||
high_direction = 0x03;
|
high_direction = 0x03;
|
||||||
|
|
||||||
|
@ -2134,7 +2119,7 @@ int stm32stick_init(void)
|
||||||
nTRSTnOE = 0x00; /* no output enable for nTRST */
|
nTRSTnOE = 0x00; /* no output enable for nTRST */
|
||||||
nSRST = 0x80;
|
nSRST = 0x80;
|
||||||
nSRSTnOE = 0x00; /* no output enable for nSRST */
|
nSRSTnOE = 0x00; /* no output enable for nSRST */
|
||||||
|
|
||||||
high_output = 0x01;
|
high_output = 0x01;
|
||||||
high_direction = 0x03;
|
high_direction = 0x03;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue