Files
rebbarb/hardware/re-bba-rb/TODO.md
T
Roflin bad2b54574 TODO: verify and update status - all critical findings resolved
Re-verified every open item against the current board:
- All three critical findings (DO/DI swap, MDI termination incl.
  dampers + center-tap bypass, FTDI EEPROM resistors) now done in both
  schematic and PCB - marked resolved with review results
- Marked verified-done: 12V cap ratings, 1% tolerances, .history
  ignore, fiducial check (absent - to add with debug pass)
- Confirmed still open: ETH_RST pull-up, PR1 divider margin (R3 still
  200k), RSET 12.4k vs 12.3k, TPS22810 CT, iceprog pin mapping, board
  PCF, debug LEDs/test points, mechanical fit, ordering options

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-18 14:14:01 +00:00

13 KiB
Raw Blame History

re-bba-rb board — open items from hardware review (2026-07-17)

Full review of schematics + PCB against component datasheets (in datasheets/), the WIZnet W5100S reference schematic, and JLCPCB manufacturing limits. Status 2026-07-18: all three critical findings fixed in schematic AND PCB (ERC 0, DRC 0 errors / 0 unconnected / 0 parity); remaining work is the Functional/Broader/ordering lists below.

Critical — ALL RESOLVED (schematic + PCB, verified 2026-07-18)

  • EXI DO/DI swapped at J3 — FIXED 2026-07-17 (all copper unchanged). YAGCD SP1 naming is console-perspective: pin 6 DO = GC data out → adapter's MOSI input; pin 9 DI = GC data in ← adapter's MISO output (verified via SD Gecko: MC pin 5 DO → SD CMD input; SD2SP2: DO → OR gate → SD CMD). Fix applied as a pure rename/identity swap: - [x] SP1 pin table in docs/gc_bba_fpga_design.md corrected (was the root cause) + MISO-tristate note updated. - [x] Net names EXI_MOSI(_RAW) ↔ EXI_MISO(_RAW) swapped across exi.kicad_sch, Fpga.kicad_sch, root sheet, and the PCB — this also swaps the D2 (PUSB3AB6) channel assignments by name. - [x] R21 (22 Ω) ↔ R25 (33 Ω) identities swapped between the two positions so 33 Ω stays on the FPGA-driven MISO line and 22 Ω on the MOSI input. - [x] Verified: ERC 0, DRC 0 (incl. schematic parity 0), netlist: J3.6(DO)→R21(22Ω)→FPGA pin 4 (IOB_8a) = EXI_MOSI in; J3.9(DI)→R25(33Ω)→FPGA pin 3 (IOB_9b) = EXI_MISO out. - [ ] Use this final pin map when writing the board PCF (see Broader items): MOSI = pin 4, MISO = pin 3, CLK = 44 (G6), CS = 45, INT = 46.
  • W5100S MDI termination network — DONE (schematic + PCB): added R26/R27 (49.9 Ω 1%, LCSC C25120) from TXOP/TXON to a common node + C18 (100 nF) to GND, and R28/R29 + C19 for RXIP/RXIN, on the PHY-side nets per the WIZnet reference schematic. ERC 0; netlist verified. PCB rework REVIEWED 2026-07-18 — PASS: - [x] Termination placed at U11's MDI edge (R26R29 ~13 mm from pins, C18/C19 2.8 mm from their resistor pairs); stubs short; DRC 0 errors incl. ETH_DP impedance rules; pair skew TX 0.30 mm / RX 0.72 mm; pairs on F.Cu over solid In1 GND (one short B.Cu crossover via per N line at the jack — fine). - [x] D4/D5 flow-through verified pad-by-pad (PHY side faces U11, cable side faces J2); In1 plane correctly voided under the magjack's cable/isolation side, all layers clear there. - [x] 3.3 Ω series dampers (WIZnet note 6) — DONE 2026-07-18: R32R35 (YAGEO RC0402FR-073R3L, LCSC C137986) in line U11→transformer; chip-side nets stay PHY_, D4/D5-side renamed MDI_ (patterns added to ETH_DP netclass in .kicad_pro). Inserted in-line on the PCB, each in its own line row; MDI_* stubs 1.451.48 mm, no new vias; pair skew after insertion TX 0.66 mm / RX 1.81 mm (fine). - [x] Center-tap bypass (WIZnet note 7) — DONE 2026-07-18: C20 100 nF (C1525) + C21 1 µF 0603 (C15849) on ETH_3V3, placed against J2's pin column — as close to pins 4/5 as the In1 plane void allows while keeping short GND vias. - [x] D4/D5 (USBLC6 on the PHY pairs) — RESOLVED 2026-07-17: keep, exactly as drawn. ST explicitly rates USBLC6 for Ethernet; PHY-side placement guards residual coupling through the transformer; 2.53.5 pF/line is fine at 100BASE-TX. Two deliberate details, do not "fix": (1) pin 5 (VBUS) floats ON PURPOSE — the lines carry ~3.3 V DC bias (center taps) and swing above it; a 3.3 V-tied rail would clip signal peaks. Floating, the rail self-biases to the line peak and the internal 6 V zener still clamps strikes. (2) The split nets (PHY_* vs ETH_*) force FLOW-THROUGH routing (pins 1→6, 3→4 are one internal node) — zero-stub clamping; do NOT merge the nets or tap the diode as a stub (stub inductance adds L·di/dt let-through). Layout: route the pair in-line through the package, near J2, short GND via on pin 2. If ever bypassing at bring-up: desolder + jumper 16/34.
  • FT2232H EEPROM interface — DONE (schematic + PCB) per datasheet Table 3.4: U7.4 (DO) moved to new net EE_DO; R30 (2.2 kΩ, C25879) inserted EE_DO→EE_DATA; R31 (10 kΩ, C25744) pull-up EE_DO→3V3. EEDATA→DI stays direct. R30/R31 placed 45 mm from U7, routed, DRC parity 0. ERC 0, netlist verified, BOM fields populated.

Functional / robustness

  • iceprog pin mismatch: iceprog hardcodes CS=ADBUS4, CDONE=ADBUS6, CRESET=ADBUS7. Board uses FLASH_CS=ADBUS3, CDONE=ACBUS1, CRESET=ACBUS0. Rewire to the iCEbreaker convention, or maintain a patched iceprog.
  • TPS2116 PR1 divider margin: 200k/100k gives PR1 = 1.10 V vs VREF = 1.0 V ±8 % (max 1.08 V) — 20 mV worst-case margin against the 3.3 V buck output. Change R3 to 150 k → switchover at 2.302.70 V.
  • ETH_RST pull-up: W5100S RSTn is a plain input (no internal pull) and floats while the FPGA configures. Add 10 k to ETH_3V3 (not 3V3, so it sits low when the ETH rail is off).
  • Gateware: gate all outputs on GC_ON — when GC_ON=0 the W5100S is unpowered (U12) and the GC is off, but FPGA banks stay at 3.3 V. Hold the W5100S bus and EXI outputs Hi-Z/low to avoid back-powering.
  • Gateware: UART crossover — net names are FT-perspective (UART_TXD = FTDI output = FPGA RX on pin 18). Get this right in the board PCF.
  • Gateware: EXI INT drive style — prefer open-drain emulation (drive low / release) on J3.3 rather than push-pull high.

Broader items (beyond the wiring review — block fab on the first two)

  • Write the re-bba-rb pin constraintsexi_bba/synth.py still targets the iCEbreaker. This board: EXI on FPGA pins 3 (IOB_9b), 4 (IOB_8a), 44 (EXI_CLK, G6), 45 (EXI_CS), 46 (EXI_INT); W5100S bus on the IOT bank (2343); CLK12 on 20 (G3); GC_ON on 21; ETH_RST on 2; UART on 18/19. This is where the DO/DI swap and the UART crossover (UART_TXD = FTDI output = FPGA RX) get resolved. Pure software; do it before ordering to prove the pinout.
  • Add debug provisions — the board currently has none. RGB02 are unconnected, no LEDs, no button, no test points; the CLAUDE.md bring-up plan (StatusPanel heartbeat/activity LEDs + BTN re-init) has nothing to drive. Spare IOBs: 6, 9, 10, 11, 12, 13, 47, 48. Add ≥2 LEDs (heartbeat, EXI activity), a 46 pin debug header (logic-analyzer access — EXI CLK/CS/MOSI/MISO are what you probe when enumeration fails), and test points on 3V3 / 1V2 / ETH_3V3 / GC_ON. Cannot be retrofitted.
  • Verify mechanical fit — outline + finger geometry vs SP1ETH/ETH2SP1 references (per CLAUDE.md), RJ45 and USB-C protrusion vs the GC serial port bay opening. An earlier commit says "need to remeasure PCB outline"; sp1_test_plug validates pads only, not the envelope.
  • SP1 12 V rail viability — VERIFIED against existing projects (2026-07-17). webhdx's IDE-EXI v2 for Serial Port 1 (which became the commercial M.2 Loader): "New switching power regulator supplies 3.3V@2A from 12V rail" (webhdx, gc-forever thread t=4843, 2021-08-28) — a shipping SP1 product powers an M.2 SATA SSD + RP2040 entirely from pin 5's 12 V through a buck, no external supply. That's the same architecture as this board at several times our load (~130 mA @ 12 V). webhdx moved from a linear regulator to a buck because the linear "was generating a lot of heat" — validating the TPS562201 choice. The official modem (DOL-014) was the original 12 V consumer; SP1ETH leaves 12 V unused (runs from the 3.3 V pins). Remaining bench check only: - [ ] inrush into C65 (100 µF) + 2×10 µF buck input caps at GC power-on (the M.2 Loader precedent suggests this is a non-issue).
  • Decide FT2232H EEPROM contents + flashing workflow — blank 93LC46B enumerates with default VID/PID (works, generic); custom VID/PID/serial/product string needs FT_PROG provisioning. Tied to the iceprog-pin-mapping decision above (changes the schematic).
  • CC1/CC2 have no ESD protection (USBLC6 covers D+/D only) — optional, most hobby designs skip; note spare-channel budget if respinning D2 area.
  • .history/ (embedded .git) — VERIFIED ignored via root .gitignore:28, nothing tracked.

Minor / BOM

  • RSET_BG: datasheet says 12.3 kΩ 1 % (ref schematic: 12 k + 300 Ω); board has 12.4 k (~0.8 % off). Match if convenient.
  • Crystals Y1/Y2 — VERIFIED 2026-07-17: the BOM parts are both CL = 12 pF (Y1 YXC X322512MOB4SI / C70565, Y2 X322525MOB4SI / C9006, both JLC Basic, ±10 ppm) — correct for the 18 pF load caps and the W5100S Table 9 recommendation. No change needed.
  • 12 V-rail parts ≥ 25 V — VERIFIED in BOM audit 2026-07-17: C3/C4 25 V, C6 50 V, C65 25 V (Lelon SMD electrolytic); D3 SMAJ12A correct.
  • 1 % tolerance — VERIFIED in BOM audit 2026-07-17: R1/R2, R3/R4, R10, R16 are all 1 % UNI-ROYAL parts (and new R26R35 are 1 %).
  • TPS22810 CT: floating = fastest ramp (~0.7 A inrush into ETH rail caps). Consider CT = 10 nF footprint (DNP-able).
  • Verify HR911105A internal LED pinout (assumed: 9/12 anodes via R14/R15 330 Ω to ETH_3V3, 10/11 cathodes to LNKn/ACTn) and the Bob-Smith common on pin 8 (tied straight to GND here; WIZnet ref separates chassis via 1 nF/2 kV — acceptable choice, confirm intent).
  • Confirm at bring-up (from CLAUDE.md): W5100S register addresses / MR bits were written from memory.

JLCPCB ordering notes (DRC clean — these are order-form options)

  • Stackup = JLC04121H-7628 (matches the 0.2104 mm prepreg / 0.6 mm core, ~1.14 mm ≙ JLC nominal 1.2 mm — satisfies the SP1 slot's 1.2 mm spec).
  • Select ENIG (file has copper_finish "None") and gold fingers + 45° bevel for the SP1 edge connector.
  • Hand-solder / non-economic-assembly parts: C65 (THT electrolytic), J2 magjack (THT), J1 USB-C, D2 (DFN2111-7, tiny). Plan assembly split.
  • LCSC part numbers — COMPLETE 2026-07-17: all 112 orderable components have Footprint + Value + MPN + LCSC + Manufacturer (netlist-vs-BOM count check passes; the only netlist/BOM delta is J3, deliberately excluded from BOM since the SP1 edge connector is PCB gold fingers, not a part). 12 V-rail caps verified ≥25 V, divider/REF/RSET resistors verified 1 %. Note: D2 is the ElecSuper PUSB3AB6Z(ES) clone (C49383400, Extended), not Nexperia — same DFN-7 1.1×2.1 / 0.15 pF; pin-compatible, but treat as a bring-up suspect if EXI ESD behaviour looks odd. C65 is an SMD electrolytic (Lelon VZH101M1ETR-0607, 25 V) — assembly-friendly, not THT as first assumed.
  • Fiducials: VERIFIED ABSENT (0 on the board, 2026-07-18). JLCPCB can panel-add their own, but 3 board fiducials (1 mm copper dot, 2 mm mask opening, asymmetric corners) is the robust choice — add with the debug LEDs/test points pass.

Housekeeping (repo) — done 2026-07-17

  • Restored hardware/re-bba-rb/datasheets/ (deleted by 3547302) from the LFS store; added TPS22810 (power/) and PUSB3AB6 (exi/) datasheets that were missing from the original set.
  • Deleted stale lowercase power.kicad_sch (the pre-rework draft from the first power-sheet commit; live sheet is Power.kicad_sch). It "kept coming back" because both paths were git-tracked: on a case-insensitive (Windows) checkout they are one file on disk, so deleting one path also deletes the other, and restoring the live sheet re-materialises both — the next commit resurrects the stale path. Removing the lowercase path from the git index (done from the case-sensitive devcontainer) is the permanent fix. Never add two files differing only in case.
  • Deleted re-bba-rb.kicad_pcb.old.kicad_pcb / .old.kicad_pro leftovers (recoverable from git history if ever needed).

Verified correct — do not re-flag

TPS562201 (EN at 12 V legal, abs max 19 V; 0.768 V ref × 33k/10k = 3.30 V; L/C per Table 7-2) · TPS2116 mode/ST logic (GC priority, USB fallback, GC_ON polarity) · AP2112K ×2 · TPS22810 EN (never floats, R5 pull-up) · FT2232H VPHY/VPLL on 3.3 V is correct per datasheet (the VCORE→3V3 relabel at HEAD was a fix) · W5100S parallel-mode straps (MOD=0100, SCLK→GND, pin32=A0/pin33=A1, INTn push-pull, internal pull-ups on CSn/RDn/WRn/DAT) · W5100S 1V2 loop + mandatory 1 MΩ crystal feedback · PUSB3AB6 pinout/footprint · USB-C CC/ESD wiring · iCE40 power/config/flash, CLK12 on G3, EXI_CLK on G6 · magjack transformer spec (1:1, 350 µH) · PCB vs JLCPCB capability floor (rules in re-bba-rb.kicad_dru, 0 DRC errors).