INTL 3:770/1 3:770/3   
   REPLYADDR theom+news@chiark.greenend.org.uk   
   REPLYTO 3:770/3.0 UUCP   
   MSGID: <3al*X6ORz@news.chiark.greenend.org.uk> b712394a   
   REPLY: 1d354d42   
   PID: SoupGate-Win32 v1.05   
   XPost: sci.electronics.design   
      
   In comp.sys.raspberry-pi John Larkin wrote:   
   > On Sun, 11 Aug 2024 16:22:04 -0400, "Edward Rawde"   
   > wrote:   
   >   
   > >"John Larkin" wrote in message   
   news:d21ibjdvt6odqium3ado62ob1e7sa6n9hc@4ax.com...   
   > >>I want to use an Raspberry Pi 400 (the keyboard thing) as the   
   > >> dev/debug system for an RP2040 based product.   
   > >>   
   > >> https://www.amazon.com/Raspberry-Computer-Keyboard-Layout-K   
   bel/dp/B08QCQVWH2   
   > >>   
   > >> It has a 40-pin connector on the back. Various sources say that pins 1   
   > >   
   > >This connector?   
   > >https://www.pi4j.com/1.3/images/pi4j-rpi-400-pinout.png   
   >   
   > Yes.   
      
   Be aware that WiringPi pin numbers are only useful if you want to use that   
   library (or similar which use the same mapping). The real BCM pin numbers   
   are likely more useful.   
      
   I normally go by:   
   https://pinout.xyz/   
   which gives all the optional features if you click on a pin. It also shows   
   the differences between boards (eg pin 13 is different on Pi 1 rev 1).   
      
   It seems the 400 is identical to the 4, since it's the same SoC in a   
   different case.   
      
   > >> 3 and 5 are either GPIO ports 8 9 and 7 or maybe 2 3 and 4.   
   > >>   
   > >> Sometimes the pins are labeled WPI and BCM. Wot's that?   
      
   WiringPi pin numbers and Broadcom pin numbers probably.   
      
   > >> https://www.amazon.com/Coolwell-Waveshare-Raspberry-Adapter   
   Expansion/dp/B08RZCR7S8   
   > >   
   > >If that's just a connector then continuity check it to the above drawing of   
   the connector on the Pi.   
   >   
   > The real question is whether pin 3 is GPIO8 or GPIO2, and which two   
   > pins are the SW debug.   
      
   Pin 3:   
      
   "GPIO 2 (I2C Data)   
   Alt0 Alt1 Alt2 Alt3 Alt4 Alt5   
   I2C1 SDA SMI SA3 DPI VSYNC AVEOUT VSYNC AVEIN VSYNC    
      
    Physical/Board pin 3   
    GPIO/BCM pin 2   
    Wiring Pi pin 8   
    GPIO/BCM pin 0 on Rev 1 ( very early ) Pi   
      
   SDA (I2C1 Data) is one of the i2c pins on the Pi, learn more about i2c.   
      
   SDA includes a fixed, 1.8 kΩ pull-up to 3.3v, which means this pin is not   
   suitable for use as a general purpose IO where no pull-up resistor is   
   desired."   
   https://pinout.xyz/pinout/pin3_gpio2/   
      
   Pis 0-4 (inc 400) don't have SWD debug, they have JTAG (pins 13, 15, 16,   
   18). I think you need something in config.txt to enable ARM-side JTAG.   
      
   (the Pi 5 does use SWD, on a separate header).   
      
   > On the Pi4, pin 3 is GPIO2. It seems like the pins are renamed on the   
   > Pi 400, where pin 3 is GPIO8. Why would they do that?   
      
   That's the WiringPi confusion.   
      
   (I think in the early Pi 1 days the pin numbering - like other parts of the   
   hardware design - was quite confused, and WiringPi came up with their   
   numbers to make sense of it. I think they're mostly just an additional   
   headache now)   
      
   Theo   
      
   --- SoupGate-Win32 v1.05   
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 90/1 105/81 106/201 129/305 153/757 7715 218/700 840 220/70   
   SEEN-BY: 221/1 6 242 360 226/17 30 100 227/114 229/110 111 114 200   
   SEEN-BY: 229/206 300 317 400 426 428 470 550 616 664 700 230/0 266/512   
   SEEN-BY: 267/800 280/5003 282/1038 291/111 292/854 2226 8125 301/1   
   SEEN-BY: 310/31 320/219 322/757 335/364 341/66 342/200 396/45 410/9   
   SEEN-BY: 423/81 460/58 633/280 712/848 770/1 3 100 330 340 772/210   
   SEEN-BY: 772/220 230 5020/400 5058/104 5075/35   
   PATH: 770/3 1 218/840 221/6 1 292/854 229/426   
      
|