EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Sam9260 JTAG / FT2232 based debugger

Started by Unknown May 28, 2007
Hi guys,

I've build my own SAM9260 board and now trying to get the hardware working.
My problem at the moment is the JTAG interface.

The PEEDI from Ronetix show me a BYPASS error, but ignores it and so it is
possibe to access the registers and configure the 9260 via JTAG.

My FT2232 based debugger with OpenOCD fails due to a JTAG error. I think
this is because of the BYPASS error.

Does somebody has/had the same issus. What debugger do u uses for debugging
the SAM9 series?

Kind regards
Joern
Hi Jn:

I've just done an ARM7 board with a JTAG interface. I don't know if the
ARM9 and ARM7 JTAG interfaces are exactly the same, but yours is a
little different.

pin 2 also goes to 3.3V.
pins 9 & 11 are tied together as TCK
pin 13 also gets the pullup

I use an Atmel SAM-ICE made by Segger and the IAR compiler.

Hope this helps.

Alan KM6VV

>Hi guys,
>
>I've build my own SAM9260 board and now trying to get the hardware working.
>My problem at the moment is the JTAG interface.
>
>The PEEDI from Ronetix show me a BYPASS error, but ignores it and so it is
>possibe to access the registers and configure the 9260 via JTAG.
>
>My FT2232 based debugger with OpenOCD fails due to a JTAG error. I think
>this is because of the BYPASS error.
>
>Does somebody has/had the same issus. What debugger do u uses for debugging
>the SAM9 series?
>
>Kind regards
>Joern
>
>
>
I have used a SAM-ICE(=J-Link) with a AT91SAM9261 CPU
without any such problems.
If you have followed the SAM9260EK board schematics closely,
things should be fine - just remember;
JTAGSEL&TST should either be connected to GND or be left unconnected
in order to have JTAG-interface operate in 'debug mode'(ICE, not
boundary-scan)).
Both NRST+TRST+RTCK should be connected to the JTAG-debugheader
as shown in the EK-schematic.
If your Peedi works OK, it probably is OpenOCD-related.

Morten

> -----Opprinnelig melding-----
> Fra: A... [mailto:A...]
> Pvegne av Jn Kaipf
> Sendt: 28. mai 2007 12:26
> Til: A...
> Emne: [AT91SAM] Sam9260 JTAG / FT2232 based debugger
>
> Hi guys,
>
> I've build my own SAM9260 board and now trying to get the
> hardware working.
> My problem at the moment is the JTAG interface.
>
> The PEEDI from Ronetix show me a BYPASS error, but ignores it
> and so it is possibe to access the registers and configure
> the 9260 via JTAG.
>
> My FT2232 based debugger with OpenOCD fails due to a JTAG
> error. I think this is because of the BYPASS error.
>
> Does somebody has/had the same issus. What debugger do u uses
> for debugging the SAM9 series?
>
> Kind regards
> Joern
>
> Yahoo! Groups Links
Hi Alan and Morten,

thanks for your responses.

> I've just done an ARM7 board with a JTAG interface. I don't know if the
> ARM9 and ARM7 JTAG interfaces are exactly the same, but yours is a
> little different.
>
> pin 2 also goes to 3.3V.
> pins 9 & 11 are tied together as TCK
> pin 13 also gets the pullup
>
> I use an Atmel SAM-ICE made by Segger and the IAR compiler.

With my SAM7 boards both debugger work without any problem.

> I have used a SAM-ICE(=J-Link) with a AT91SAM9261 CPU
> without any such problems.
> If you have followed the SAM9260EK board schematics closely,
> things should be fine - just remember;
> JTAGSEL&TST should either be connected to GND or be left unconnected
> in order to have JTAG-interface operate in 'debug mode'(ICE, not
> boundary-scan)).
> Both NRST+TRST+RTCK should be connected to the JTAG-debugheader
> as shown in the EK-schematic.
> If your Peedi works OK, it probably is OpenOCD-related.

I compared the schematic of the 9261 EK with my own. There are no
significant differences between them. I don't use the resistors with 0R.

I got the chance to test a J-Link. In ~40% of all tries a connection to the
target was successfully established without the BYPASS Error. I'll have a
closer look at my hardware next week ...

Joern

> > -----Opprinnelig melding-----
> > Fra: A... [mailto:A...]
> > Pvegne av Jn Kaipf
> > Sendt: 28. mai 2007 12:26
> > Til: A...
> > Emne: [AT91SAM] Sam9260 JTAG / FT2232 based debugger
> >
> > Hi guys,
> >
> > I've build my own SAM9260 board and now trying to get the
> > hardware working.
> > My problem at the moment is the JTAG interface.
> >
> > The PEEDI from Ronetix show me a BYPASS error, but ignores it
> > and so it is possibe to access the registers and configure
> > the 9260 via JTAG.
> >
> > My FT2232 based debugger with OpenOCD fails due to a JTAG
> > error. I think this is because of the BYPASS error.
> >
> > Does somebody has/had the same issus. What debugger do u uses
> > for debugging the SAM9 series?
> >
> > Kind regards
> > Joern
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> Yahoo! Groups Links
>
Hi,

Have you tried reducing the JTAG clock frequency to 5Khz?

Regards
Michael

>
> Hi Alan and Morten,
>
> thanks for your responses.
>
> > I've just done an ARM7 board with a JTAG interface. I don't know
if the
> > ARM9 and ARM7 JTAG interfaces are exactly the same, but yours is a
> > little different.
> >
> > pin 2 also goes to 3.3V.
> > pins 9 & 11 are tied together as TCK
> > pin 13 also gets the pullup
> >
> > I use an Atmel SAM-ICE made by Segger and the IAR compiler.
>
> With my SAM7 boards both debugger work without any problem.
>
> > I have used a SAM-ICE(=J-Link) with a AT91SAM9261 CPU
> > without any such problems.
> > If you have followed the SAM9260EK board schematics closely,
> > things should be fine - just remember;
> > JTAGSEL&TST should either be connected to GND or be left unconnected
> > in order to have JTAG-interface operate in 'debug mode'(ICE, not
> > boundary-scan)).
> > Both NRST+TRST+RTCK should be connected to the JTAG-debugheader
> > as shown in the EK-schematic.
> > If your Peedi works OK, it probably is OpenOCD-related.
>
> I compared the schematic of the 9261 EK with my own. There are no
> significant differences between them. I don't use the resistors with 0R.
>
> I got the chance to test a J-Link. In ~40% of all tries a connection
to the
> target was successfully established without the BYPASS Error. I'll
have a
> closer look at my hardware next week ...
>
> Joern
>
> > > -----Opprinnelig melding-----
> > > Fra: A... [mailto:A...]
> > > Pvegne av Jn Kaipf
> > > Sendt: 28. mai 2007 12:26
> > > Til: A...
> > > Emne: [AT91SAM] Sam9260 JTAG / FT2232 based debugger
> > >
> > > Hi guys,
> > >
> > > I've build my own SAM9260 board and now trying to get the
> > > hardware working.
> > > My problem at the moment is the JTAG interface.
> > >
> > > The PEEDI from Ronetix show me a BYPASS error, but ignores it
> > > and so it is possibe to access the registers and configure
> > > the 9260 via JTAG.
> > >
> > > My FT2232 based debugger with OpenOCD fails due to a JTAG
> > > error. I think this is because of the BYPASS error.
> > >
> > > Does somebody has/had the same issus. What debugger do u uses
> > > for debugging the SAM9 series?
> > >
> > > Kind regards
> > > Joern
> > >
> > >
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
>
@Michael:

My TCK was < 5kHz.

@All:

In the meantime I found my problem. I have a jumper at the OSCSEL pin, but the jumper was not assembled and so the voltage level was not defined. After connecting the pin so that the internal RC is used everything works fine.

Thanks at all for their ideas.

Regards
Joern

> Hi,
>
> Have you tried reducing the JTAG clock frequency to 5Khz?
>
> Regards
> Michael

>
> Hi Alan and Morten,
>
> thanks for your responses.
>
> > I've just done an ARM7 board with a JTAG interface. I don't know
if the
> > ARM9 and ARM7 JTAG interfaces are exactly the same, but yours is a
> > little different.
> >
> > pin 2 also goes to 3.3V.
> > pins 9 & 11 are tied together as TCK
> > pin 13 also gets the pullup
> >
> > I use an Atmel SAM-ICE made by Segger and the IAR compiler.
>
> With my SAM7 boards both debugger work without any problem.
>
> > I have used a SAM-ICE(=J-Link) with a AT91SAM9261 CPU
> > without any such problems.
> > If you have followed the SAM9260EK board schematics closely,
> > things should be fine - just remember;
> > JTAGSEL&TST should either be connected to GND or be left unconnected
> > in order to have JTAG-interface operate in 'debug mode'(ICE, not
> > boundary-scan)).
> > Both NRST+TRST+RTCK should be connected to the JTAG-debugheader
> > as shown in the EK-schematic.
> > If your Peedi works OK, it probably is OpenOCD-related.
>
> I compared the schematic of the 9261 EK with my own. There are no
> significant differences between them. I don't use the resistors with 0R.
>
> I got the chance to test a J-Link. In ~40% of all tries a connection
to the
> target was successfully established without the BYPASS Error. I'll
have a
> closer look at my hardware next week ...
>
> Joern
>
> > > -----Opprinnelig melding-----
> > > Fra: A... [mailto:A...]
> > > På vegne av Jörn Kaipf
> > > Sendt: 28. mai 2007 12:26
> > > Til: A...
> > > Emne: [AT91SAM] Sam9260 JTAG / FT2232 based debugger
> > >
> > > Hi guys,
> > >
> > > I've build my own SAM9260 board and now trying to get the
> > > hardware working.
> > > My problem at the moment is the JTAG interface.
> > >
> > > The PEEDI from Ronetix show me a BYPASS error, but ignores it
> > > and so it is possibe to access the registers and configure
> > > the 9260 via JTAG.
> > >
> > > My FT2232 based debugger with OpenOCD fails due to a JTAG
> > > error. I think this is because of the BYPASS error.
> > >
> > > Does somebody has/had the same issus. What debugger do u uses
> > > for debugging the SAM9 series?
> > >
> > > Kind regards
> > > Joern
> > >
> > >
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
>

Yahoo! Groups Links
I'm using a Segger J-Trace with a 9261. It worked fine with the EK
board, but not with my custom board. The problem turned out to be the
BMS pin. If it is pulled down, the JTAG doesn't work for some reason.

Not sure if the 9260 has a BMS pin, but I suspect it does.

Regards,
Mike
--- In A..., "nutleycottage" wrote:
>
> Hi,
>
> Have you tried reducing the JTAG clock frequency to 5Khz?
>
> Regards
> Michael
>
> >
> > Hi Alan and Morten,
> >
> > thanks for your responses.
> >
> > > I've just done an ARM7 board with a JTAG interface. I don't know
> if the
> > > ARM9 and ARM7 JTAG interfaces are exactly the same, but yours is a
> > > little different.
> > >
> > > pin 2 also goes to 3.3V.
> > > pins 9 & 11 are tied together as TCK
> > > pin 13 also gets the pullup
> > >
> > > I use an Atmel SAM-ICE made by Segger and the IAR compiler.
> >
> > With my SAM7 boards both debugger work without any problem.
> >
> > > I have used a SAM-ICE(=J-Link) with a AT91SAM9261 CPU
> > > without any such problems.
> > > If you have followed the SAM9260EK board schematics closely,
> > > things should be fine - just remember;
> > > JTAGSEL&TST should either be connected to GND or be left unconnected
> > > in order to have JTAG-interface operate in 'debug mode'(ICE, not
> > > boundary-scan)).
> > > Both NRST+TRST+RTCK should be connected to the JTAG-debugheader
> > > as shown in the EK-schematic.
> > > If your Peedi works OK, it probably is OpenOCD-related.
> >
> > I compared the schematic of the 9261 EK with my own. There are no
> > significant differences between them. I don't use the resistors
with 0R.
> >
> > I got the chance to test a J-Link. In ~40% of all tries a connection
> to the
> > target was successfully established without the BYPASS Error. I'll
> have a
> > closer look at my hardware next week ...
> >
> > Joern
> >
> >
> >
> > > > -----Opprinnelig melding-----
> > > > Fra: A... [mailto:A...]
> > > > Pvegne av Jn Kaipf
> > > > Sendt: 28. mai 2007 12:26
> > > > Til: A...
> > > > Emne: [AT91SAM] Sam9260 JTAG / FT2232 based debugger
> > > >
> > > > Hi guys,
> > > >
> > > > I've build my own SAM9260 board and now trying to get the
> > > > hardware working.
> > > > My problem at the moment is the JTAG interface.
> > > >
> > > > The PEEDI from Ronetix show me a BYPASS error, but ignores it
> > > > and so it is possibe to access the registers and configure
> > > > the 9260 via JTAG.
> > > >
> > > > My FT2232 based debugger with OpenOCD fails due to a JTAG
> > > > error. I think this is because of the BYPASS error.
> > > >
> > > > Does somebody has/had the same issus. What debugger do u uses
> > > > for debugging the SAM9 series?
> > > >
> > > > Kind regards
> > > > Joern
> > > >
> > > >
> > > >
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
>
The 9260 has a BMS pin and I pulled it down via a 10k resistor. JTAG also
fine if the correct startup clk is selected ;)

Regards
Joern

> -----Ursprgliche Nachricht-----
> Von: A... [mailto:A...] Im Auftrag
> von mikesobel
> Gesendet: Montag, 4. Juni 2007 22:27
> An: A...
> Betreff: [AT91SAM] Re: Sam9260 JTAG / FT2232 based debugger
>
> I'm using a Segger J-Trace with a 9261. It worked fine with the EK
> board, but not with my custom board. The problem turned out to be the
> BMS pin. If it is pulled down, the JTAG doesn't work for some reason.
>
> Not sure if the 9260 has a BMS pin, but I suspect it does.
>
> Regards,
> Mike
> --- In A..., "nutleycottage" wrote:
> >
> > Hi,
> >
> > Have you tried reducing the JTAG clock frequency to 5Khz?
> >
> > Regards
> > Michael
> >
> > >
> > > Hi Alan and Morten,
> > >
> > > thanks for your responses.
> > >
> > > > I've just done an ARM7 board with a JTAG interface. I don't know
> > if the
> > > > ARM9 and ARM7 JTAG interfaces are exactly the same, but yours is a
> > > > little different.
> > > >
> > > > pin 2 also goes to 3.3V.
> > > > pins 9 & 11 are tied together as TCK
> > > > pin 13 also gets the pullup
> > > >
> > > > I use an Atmel SAM-ICE made by Segger and the IAR compiler.
> > >
> > > With my SAM7 boards both debugger work without any problem.
> > >
> > > > I have used a SAM-ICE(=J-Link) with a AT91SAM9261 CPU
> > > > without any such problems.
> > > > If you have followed the SAM9260EK board schematics closely,
> > > > things should be fine - just remember;
> > > > JTAGSEL&TST should either be connected to GND or be left unconnected
> > > > in order to have JTAG-interface operate in 'debug mode'(ICE, not
> > > > boundary-scan)).
> > > > Both NRST+TRST+RTCK should be connected to the JTAG-debugheader
> > > > as shown in the EK-schematic.
> > > > If your Peedi works OK, it probably is OpenOCD-related.
> > >
> > > I compared the schematic of the 9261 EK with my own. There are no
> > > significant differences between them. I don't use the resistors
> with 0R.
> > >
> > > I got the chance to test a J-Link. In ~40% of all tries a connection
> > to the
> > > target was successfully established without the BYPASS Error. I'll
> > have a
> > > closer look at my hardware next week ...
> > >
> > > Joern
> > >
> > >
> > >
> > > > > -----Opprinnelig melding-----
> > > > > Fra: A... [mailto:A...]
> > > > > Pvegne av Jn Kaipf
> > > > > Sendt: 28. mai 2007 12:26
> > > > > Til: A...
> > > > > Emne: [AT91SAM] Sam9260 JTAG / FT2232 based debugger
> > > > >
> > > > > Hi guys,
> > > > >
> > > > > I've build my own SAM9260 board and now trying to get the
> > > > > hardware working.
> > > > > My problem at the moment is the JTAG interface.
> > > > >
> > > > > The PEEDI from Ronetix show me a BYPASS error, but ignores it
> > > > > and so it is possibe to access the registers and configure
> > > > > the 9260 via JTAG.
> > > > >
> > > > > My FT2232 based debugger with OpenOCD fails due to a JTAG
> > > > > error. I think this is because of the BYPASS error.
> > > > >
> > > > > Does somebody has/had the same issus. What debugger do u uses
> > > > > for debugging the SAM9 series?
> > > > >
> > > > > Kind regards
> > > > > Joern
> > > > >
> > > > >
> > > > >
> > > > > Yahoo! Groups Links
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > >
> > Yahoo! Groups Links
>

The 2024 Embedded Online Conference