EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

CrossStudio and OpenOCD JTAG

Started by tomi August 14, 2008
I'm trying to use OpenOCD JTAG under CrossStudio but without efects.

This is OpenOCD JTAG project:
http://www.joernonline.de/dw/doku.php?id=projects:oocdlink:2_oocdlinks

Schematic: http://tinyurl.com/68qkag

ADBUS0 -> TCK;
ADBUS1 -> TDI;
ADBUS2 -> TDO;
ADBUS3 -> TMS;
ADBUS6 -> 1 if target present
ADBUS7 -> SRST in;

ACBUS0 -> TRST buffer enable;
ACBUS1 -> TRST;
ACBUS2 -> SRST buffer enable;
ACBUS3 -> SRST;

BCBUS2 -> LED
BCBUS3 -> LED

In CrossStudio "Generic FT2232 Device" I have

nSRST Inversion Mask 0x0200
nSRST Mask = 0x0200
nTRST Inversion Mask = 0x0000
nTRST Mask - 0x0400
Output Pins = 0x0F1B
Output Value = 0x0408
PID: 0xBAF8
VID: 0x15BA

Is this correct values ?

An Engineer's Guide to the LPC2100 Series

----- Original Message -----
From: "tomi"
To:
Sent: Thursday, August 14, 2008 2:45 PM
Subject: [lpc2000] CrossStudio and OpenOCD JTAG
> I'm trying to use OpenOCD JTAG under CrossStudio but without efects.

Is it actually supported by CrossWorks? It isn't in the list of targets.

Leon
> I'm trying to use OpenOCD JTAG under CrossStudio but without efects.

Is it actually supported by CrossWorks? It isn't in the list of targets.
>

It should work, you can add "Generic FTD2232" target interface in
CrossStudio, but I can't configure it.

----- Original Message -----
From: "tomi"
To:
Sent: Thursday, August 14, 2008 4:17 PM
Subject: Re: [lpc2000] CrossStudio and OpenOCD JTAG
> Is it actually supported by CrossWorks? It isn't in the list of targets.
> It should work, you can add "Generic FTD2232" target interface in
> CrossStudio, but I can't configure it.

Does it work with OpenOCD?

Leon
2008/8/14 Leon

> ----- Original Message -----
> From: "tomi" >
> To: >
> Sent: Thursday, August 14, 2008 4:17 PM
> Subject: Re: [lpc2000] CrossStudio and OpenOCD JTAG
>
> > Is it actually supported by CrossWorks? It isn't in the list of targets.
> > It should work, you can add "Generic FTD2232" target interface in
> > CrossStudio, but I can't configure it.
>
> Does it work with OpenOCD?
>
> .
>
"The Generic FT2232 device target interface provides access to ARM targets
via target interfaces based on the FTDI Chip FT2232 dual USB UART/FIFO IC"

http://www.rowley.co.uk/documentation/arm_1_7/arm_ft2232_target_interface.htm" target="_blank" rel="nofollow">http://www.rowley.co.uk/documentation/arm_1_7/index.htm?http://www.rowley.co.uk/documentation/arm_1_7/arm_ft2232_target_interface.htm

----- Original Message -----
From: "tomi"
To:
Sent: Thursday, August 14, 2008 5:02 PM
Subject: Re: [lpc2000] CrossStudio and OpenOCD JTAG
> 2008/8/14 Leon > ----- Original Message -----
>> From: "tomi" >
>> To: >
>> Sent: Thursday, August 14, 2008 4:17 PM
>> Subject: Re: [lpc2000] CrossStudio and OpenOCD JTAG
>>
>> > Is it actually supported by CrossWorks? It isn't in the list of
>> > targets.
>> > It should work, you can add "Generic FTD2232" target interface in
>> > CrossStudio, but I can't configure it.
>>
>> Does it work with OpenOCD?
>>
>> .
>>
> "The Generic FT2232 device target interface provides access to ARM targets
> via target interfaces based on the FTDI Chip FT2232 dual USB UART/FIFO IC"
>
> http://www.rowley.co.uk/documentation/arm_1_7/arm_ft2232_target_interface.htm" target="_blank" rel="nofollow">http://www.rowley.co.uk/documentation/arm_1_7/index.htm?http://www.rowley.co.uk/documentation/arm_1_7/arm_ft2232_target_interface.htm

Do you know that the interface actually works? That's why I asked if it
works with OpenOCD.

Leon
>> Subject: Re: [lpc2000] CrossStudio and OpenOCD JTAG
>>
>> > Is it actually supported by CrossWorks? It isn't in the list of
>> > targets.
>> > It should work, you can add "Generic FTD2232" target interface in
>> > CrossStudio, but I can't configure it.
>>
>> Does it work with OpenOCD?
>>
>> .
>>
> "The Generic FT2232 device target interface provides access to ARM targets
> via target interfaces based on the FTDI Chip FT2232 dual USB UART/FIFO IC"
http://www.rowley.co.uk/documentation/arm_1_7/index.htm?http://www.rowley.co.uk/documentation/arm_1_7/arm_ft2232_target_interface.htm

Do you know that the interface actually works? That's why I asked if it
> works with OpenOCD.
>
I have still problem with this JTAG. JTAG works corecly, but with
CrossStudio can't connect. I see "Cannot identify target".

Channel A
ADBUS0 -> TCK;
ADBUS1 -> TDI;
ADBUS2 -> TDO;
ADBUS3 -> TMS;
ADBUS4 ->
ADBUS5 ->
ADBUS6 -> 1 if target present
ADBUS7 -> SRST in;

ACBUS0 -> TRST buffer enable;
ACBUS1 -> TRST;
ACBUS2 -> SRST buffer enable;
ACBUS3 -> SRST;
Channel B
BCBUS2 -> LED
BCBUS3 -> LED

My configuration is:

Output Pins 0x0F0F
Output Value 0x0000
nSRST Mask 0x0800 = ACBUS1 ?
nTRST Mask 0x0200 = ACBUS3 ?

All other are set to 0x0000.

What is wrong ?

How to set mask for led pins on channel B ?


The 2024 Embedded Online Conference