Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Don't talk to me about disclaimers! I invented disclaimers!" -- The Censored Hacker


computers / comp.sys.raspberry-pi / Re: using a pi 400 to debug a pico

SubjectAuthor
* using a pi 400 to debug a picojohn larkin
+- Re: using a pi 400 to debug a picojohn larkin
`* Re: using a pi 400 to debug a picoMichael Schwingen
 `* Re: using a pi 400 to debug a picoJohn Larkin
  `* Re: using a pi 400 to debug a picoMichael Schwingen
   +- Re: using a pi 400 to debug a picoJohn Larkin
   `- Re: using a pi 400 to debug a picojohn larkin

1
using a pi 400 to debug a pico

<7s6bqi94igeihtglep2rhavbl98lhpv7k3@4ax.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8916&group=comp.sys.raspberry-pi#8916

 copy link   Newsgroups: comp.sys.raspberry-pi sci.electronics.design
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 15 Jan 2024 21:05:07 +0000
From: jl...@650pot.com (john larkin)
Newsgroups: comp.sys.raspberry-pi,sci.electronics.design
Subject: using a pi 400 to debug a pico
Date: Mon, 15 Jan 2024 13:05:06 -0800
Message-ID: <7s6bqi94igeihtglep2rhavbl98lhpv7k3@4ax.com>
User-Agent: ForteAgent/8.00.32.1272
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 12
X-Trace: sv3-Ihs7rEVviqXVGUUVYQNZhDwiDgMbjDyViQw9bzsTmZCyP1w0lbP+JUmErm0eAC9OrP8Pta9jlbDaFCb!Bn1o53sByJ9C8YqozFaTJcDcbLRJyZkIy3ddU8QVcFzf73Zf8yieE155/kGtnymgisNWJjDF5gCp!xp2Aaw==
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 1484
 by: john larkin - Mon, 15 Jan 2024 21:05 UTC

The Raspberry Pi pico has its 3-pin SWD debug port. I'd like to
connect it to the 40-pin header on the back of the Pi400, to use the
400 as the dev/debug platform for some RP2040-based boxes.

Has anyone done this? What Pi400 pins connect to the SWD port?

Googling doesn't help. I have the RP400 Beginners Guide book and it
doesn't mention doing this.

Anybody have links about doing this?

Re: using a pi 400 to debug a pico

<8sebqid12ml78k9t81h7hvc4cn8l46r5hi@4ax.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8917&group=comp.sys.raspberry-pi#8917

 copy link   Newsgroups: comp.sys.raspberry-pi sci.electronics.design
Path: i2pn2.org!rocksolid2!news.neodome.net!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 15 Jan 2024 23:13:22 +0000
From: jl...@650pot.com (john larkin)
Newsgroups: comp.sys.raspberry-pi,sci.electronics.design
Subject: Re: using a pi 400 to debug a pico
Date: Mon, 15 Jan 2024 15:13:21 -0800
Message-ID: <8sebqid12ml78k9t81h7hvc4cn8l46r5hi@4ax.com>
References: <7s6bqi94igeihtglep2rhavbl98lhpv7k3@4ax.com> <6dd5a036-cf40-4d24-9147-a7e1b238aae1n@googlegroups.com>
User-Agent: ForteAgent/8.00.32.1272
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 37
X-Trace: sv3-OZp3xvQYQa4PqlTPUYNoBmphb6sY3gYl6edcDoJHwAU3T5ACOndrwmvoRMRrNTLO+Df70p8rNBSre/W!U+cXnFYg3+oUurpCNVD9cGtFS5HUaVI46HXnUNwiilSwBxBHtYDEB7ugBXd+VZjxdFcAWVqbs37Y!sBtWkg==
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 2540
 by: john larkin - Mon, 15 Jan 2024 23:13 UTC

On Mon, 15 Jan 2024 13:21:14 -0800 (PST), Lasse Langwadt Christensen
<langwadt@fonz.dk> wrote:

>mandag den 15. januar 2024 kl. 22.05.18 UTC+1 skrev john larkin:
>> The Raspberry Pi pico has its 3-pin SWD debug port. I'd like to
>> connect it to the 40-pin header on the back of the Pi400, to use the
>> 400 as the dev/debug platform for some RP2040-based boxes.
>>
>> Has anyone done this? What Pi400 pins connect to the SWD port?
>>
>> Googling doesn't help. I have the RP400 Beginners Guide book and it
>> doesn't mention doing this.
>>
>> Anybody have links about doing this?
>
>https://www.electronicshub.org/programming-raspberry-pi-pico-with-swd/

It doesn't say so, but when he says "raspberry pi" I think he means a
Pi3. I'll be using a Pi4, inside the Pi400 unit, but I expect the pins
are the same on its 40-pin header.

Oh, I found a reference in the book "Programming the Raspberry Pi
Pico/w in C". Looks like the same pins, GPIO24(18) and GPIO25(22).

Thanks

I'm designing a PCB that will have a 40 pin ribbon cable connector to
the Pi400 and a 20-pin ribbon to the various RP2040 target boards. It
will do the debug connection and have a bunch of scope mux's and DVM
mux's and stuff, to make it easy to time code execution and check the
power supplies and such.

Looks like I can power my board from the 40 pin header too.

Re: using a pi 400 to debug a pico

<slrnuqd2rl.5gm.news-1513678000@a-tuin.ms.intern>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8920&group=comp.sys.raspberry-pi#8920

 copy link   Newsgroups: comp.sys.raspberry-pi sci.electronics.design
Path: i2pn2.org!rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news-151...@discworld.dascon.de (Michael Schwingen)
Newsgroups: comp.sys.raspberry-pi,sci.electronics.design
Subject: Re: using a pi 400 to debug a pico
Date: 16 Jan 2024 13:58:13 GMT
Lines: 23
Message-ID: <slrnuqd2rl.5gm.news-1513678000@a-tuin.ms.intern>
References: <7s6bqi94igeihtglep2rhavbl98lhpv7k3@4ax.com>
X-Trace: individual.net 7SgPNJ7bRrc/pY91Ej/xSAcQ3Bzt8IC0nSP2adgKeoK1AhwGba
Cancel-Lock: sha1:EqEhS8oEMqgRMGLHU3Znhd0XSW0= sha256:hyOQYyvSmAucJx5AnYjy56mKMwiSB2Vv6h6F4bwEu0Q=
User-Agent: slrn/1.0.3 (Linux)
 by: Michael Schwingen - Tue, 16 Jan 2024 13:58 UTC

On 2024-01-15, john larkin <jl@650pot.com> wrote:
> The Raspberry Pi pico has its 3-pin SWD debug port. I'd like to
> connect it to the 40-pin header on the back of the Pi400, to use the
> 400 as the dev/debug platform for some RP2040-based boxes.

What debug software are you planning to use? OpenOCD?

The pinout seems to be quite flexible - look at
interface/raspberrypi-gpio-connector.cfg in the OpenOCD sources /
distribution.

If you want something nice with level translation that handles power
sequencing between Pi and Target board, the JTAG Hat should do what you
want:

https://github.com/mschwingen/hardware/tree/master/JTAG_hat

I think this should also work an a pi400.

cu
Michael
--
Some people have no respect of age unless it is bottled.

Re: using a pi 400 to debug a pico

<d98dqit14sf7dtft162bn8h97bgns906sd@4ax.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8923&group=comp.sys.raspberry-pi#8923

 copy link   Newsgroups: comp.sys.raspberry-pi sci.electronics.design
Path: i2pn2.org!i2pn.org!news.neodome.net!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 16 Jan 2024 15:34:23 +0000
From: jl...@997PotHill.com (John Larkin)
Newsgroups: comp.sys.raspberry-pi,sci.electronics.design
Subject: Re: using a pi 400 to debug a pico
Date: Tue, 16 Jan 2024 07:33:19 -0800
Organization: Highland Tech
Reply-To: xx@yy.com
Message-ID: <d98dqit14sf7dtft162bn8h97bgns906sd@4ax.com>
References: <7s6bqi94igeihtglep2rhavbl98lhpv7k3@4ax.com> <slrnuqd2rl.5gm.news-1513678000@a-tuin.ms.intern>
X-Newsreader: Forte Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 35
X-Trace: sv3-p3DMFLLVCBDV0QxihI+nhIs4pfYTYWoVxoiDxgE5ltt6LlrcOx1Gqp6GGnRYvIzh3ch++4gd/lRxK3D!LI/YqLOZhf1RISRv9SgPNaHah/Up0FjJsgV0nAGcYa7oVU+jgyWm76MVf+b7MwKNczFiD+3gWSQ0!yVm9Sg==
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: John Larkin - Tue, 16 Jan 2024 15:33 UTC

On 16 Jan 2024 13:58:13 GMT, Michael Schwingen
<news-1513678000@discworld.dascon.de> wrote:

>On 2024-01-15, john larkin <jl@650pot.com> wrote:
>> The Raspberry Pi pico has its 3-pin SWD debug port. I'd like to
>> connect it to the 40-pin header on the back of the Pi400, to use the
>> 400 as the dev/debug platform for some RP2040-based boxes.
>
>What debug software are you planning to use? OpenOCD?

Whatever the pi400 uses. I'll let a programmer deal with that.

>
>The pinout seems to be quite flexible - look at
>interface/raspberrypi-gpio-connector.cfg in the OpenOCD sources /
>distribution.
>
>If you want something nice with level translation that handles power
>sequencing between Pi and Target board, the JTAG Hat should do what you
>want:
>
>https://github.com/mschwingen/hardware/tree/master/JTAG_hat
>
>I think this should also work an a pi400.

Is there a schematic somewhere?

I plan to make my own board, as described. I'm especially interested
in scoping realtime performance.

>
>cu
>Michael

Re: using a pi 400 to debug a pico

<slrnuqd9rc.5gm.news-1513678000@a-tuin.ms.intern>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8925&group=comp.sys.raspberry-pi#8925

 copy link   Newsgroups: comp.sys.raspberry-pi sci.electronics.design
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news-151...@discworld.dascon.de (Michael Schwingen)
Newsgroups: comp.sys.raspberry-pi,sci.electronics.design
Subject: Re: using a pi 400 to debug a pico
Date: 16 Jan 2024 15:57:32 GMT
Lines: 24
Message-ID: <slrnuqd9rc.5gm.news-1513678000@a-tuin.ms.intern>
References: <7s6bqi94igeihtglep2rhavbl98lhpv7k3@4ax.com>
<slrnuqd2rl.5gm.news-1513678000@a-tuin.ms.intern>
<d98dqit14sf7dtft162bn8h97bgns906sd@4ax.com>
X-Trace: individual.net X8G2EbppfT5SrdAwnGAYKwAYpdKS083PSwhB/Nhhrqh/RX3WPJ
Cancel-Lock: sha1:AimlfTyftaWd3qobjrC83/ybHJk= sha256:iQqcLnSDgydmLuIkEFMAPOdk2OTqnavn18wccb+LFwc=
User-Agent: slrn/1.0.3 (Linux)
 by: Michael Schwingen - Tue, 16 Jan 2024 15:57 UTC

On 2024-01-16, John Larkin <jl@997PotHill.com> wrote:
>>If you want something nice with level translation that handles power
>>sequencing between Pi and Target board, the JTAG Hat should do what you
>>want:
>>
>>https://github.com/mschwingen/hardware/tree/master/JTAG_hat
>>
>>I think this should also work an a pi400.
>
> Is there a schematic somewhere?

It is linked in the description:

https://github.com/mschwingen/hardware/tree/master/JTAG_hat/pcb_ms_v3/Doc

It's basically a bunch of 74LVC2T45 (which handle the "one side powered
down" as well as the level-shifting), plus open-drain drivers for the reset
signals. Note that you need to switch direction for the SWDIO signal, the
rest is unidirectional.

cu
Michael
--
Some people have no respect of age unless it is bottled.

Re: using a pi 400 to debug a pico

<cnbdqi5j6cjph65prk710nk17fa6iebttc@4ax.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8927&group=comp.sys.raspberry-pi#8927

 copy link   Newsgroups: comp.sys.raspberry-pi sci.electronics.design
Path: i2pn2.org!i2pn.org!news.neodome.net!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 16 Jan 2024 16:36:34 +0000
From: jl...@997PotHill.com (John Larkin)
Newsgroups: comp.sys.raspberry-pi,sci.electronics.design
Subject: Re: using a pi 400 to debug a pico
Date: Tue, 16 Jan 2024 08:35:30 -0800
Organization: Highland Tech
Reply-To: xx@yy.com
Message-ID: <cnbdqi5j6cjph65prk710nk17fa6iebttc@4ax.com>
References: <7s6bqi94igeihtglep2rhavbl98lhpv7k3@4ax.com> <slrnuqd2rl.5gm.news-1513678000@a-tuin.ms.intern> <d98dqit14sf7dtft162bn8h97bgns906sd@4ax.com> <slrnuqd9rc.5gm.news-1513678000@a-tuin.ms.intern>
X-Newsreader: Forte Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 34
X-Trace: sv3-TnJeBKnH49BaEMraUjm11bxSMLCY8mYXDH0w+OuNWqobFTGLt++Ns/0gSaPrx45sSb7vT27nMsTWlab!Ik5e8q5SpHtnRDIzQgcpg34K83fGwwD1y2jbsGtHc3/QHFg3+g10EW5ejffKsg19bzPneZ46L9Jf!Qbml7A==
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: John Larkin - Tue, 16 Jan 2024 16:35 UTC

On 16 Jan 2024 15:57:32 GMT, Michael Schwingen
<news-1513678000@discworld.dascon.de> wrote:

>On 2024-01-16, John Larkin <jl@997PotHill.com> wrote:
>>>If you want something nice with level translation that handles power
>>>sequencing between Pi and Target board, the JTAG Hat should do what you
>>>want:
>>>
>>>https://github.com/mschwingen/hardware/tree/master/JTAG_hat
>>>
>>>I think this should also work an a pi400.
>>
>> Is there a schematic somewhere?
>
>It is linked in the description:
>
>https://github.com/mschwingen/hardware/tree/master/JTAG_hat/pcb_ms_v3/Doc
>
>It's basically a bunch of 74LVC2T45 (which handle the "one side powered
>down" as well as the level-shifting), plus open-drain drivers for the reset
>signals. Note that you need to switch direction for the SWDIO signal, the
>rest is unidirectional.
>
>cu
>Michael

Do you think it's worth buffering the SW Debug pins? I was thinking I
might buffer the clock, since it's unidirectional and maybe
edge/impedance sensitive. I have no idea what the timing from the
Pi400 will be like, but people seem to use breadboards and dangling
wires and get away with it.

If the rate is reasonably low, the SWDIO data line won't matter much.

Re: using a pi 400 to debug a pico

<36kdqilnf6uih8ckcj6rn6busb3sio23a0@4ax.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=8930&group=comp.sys.raspberry-pi#8930

 copy link   Newsgroups: comp.sys.raspberry-pi sci.electronics.design
Path: i2pn2.org!i2pn.org!nntp.comgw.net!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 16 Jan 2024 19:02:19 +0000
From: jl...@650pot.com (john larkin)
Newsgroups: comp.sys.raspberry-pi,sci.electronics.design
Subject: Re: using a pi 400 to debug a pico
Date: Tue, 16 Jan 2024 11:02:19 -0800
Message-ID: <36kdqilnf6uih8ckcj6rn6busb3sio23a0@4ax.com>
References: <7s6bqi94igeihtglep2rhavbl98lhpv7k3@4ax.com> <slrnuqd2rl.5gm.news-1513678000@a-tuin.ms.intern> <d98dqit14sf7dtft162bn8h97bgns906sd@4ax.com> <slrnuqd9rc.5gm.news-1513678000@a-tuin.ms.intern>
User-Agent: ForteAgent/8.00.32.1272
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 35
X-Trace: sv3-KgwE3HPXv4vahsOUNmNkqDjce9Fn1k4Vs7PkhzW8qZo8KSWSVm3TZFO2kwq5QV2lZN3X8Z3CPqpCRYF!iZuXNf0hUjFDEPUKoCM0doBIfYvFyqI+VXk8QKDDAn+Yiu0zHzn9vtlV/jWYNYOd23Yglm2NHMio!fbrtfA==
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: john larkin - Tue, 16 Jan 2024 19:02 UTC

On 16 Jan 2024 15:57:32 GMT, Michael Schwingen
<news-1513678000@discworld.dascon.de> wrote:

>On 2024-01-16, John Larkin <jl@997PotHill.com> wrote:
>>>If you want something nice with level translation that handles power
>>>sequencing between Pi and Target board, the JTAG Hat should do what you
>>>want:
>>>
>>>https://github.com/mschwingen/hardware/tree/master/JTAG_hat
>>>
>>>I think this should also work an a pi400.
>>
>> Is there a schematic somewhere?
>
>It is linked in the description:
>
>https://github.com/mschwingen/hardware/tree/master/JTAG_hat/pcb_ms_v3/Doc
>
>It's basically a bunch of 74LVC2T45 (which handle the "one side powered
>down" as well as the level-shifting), plus open-drain drivers for the reset
>signals. Note that you need to switch direction for the SWDIO signal, the
>rest is unidirectional.
>
>cu
>Michael

This is a first pass at the dev board.

https://www.dropbox.com/scl/fi/709v4pqjhe91jnwqh4wvg/Z566_Sch_2.jpg?rlkey=fjq3a9re53cv5l0zn9ya00akk&raw=1

It would be used in development and production test. Every
RP2040-based board would have the small-pitch 20 pin ribbon cable
header.

The pushbuttons look primitive but will probably work.

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor