Upload BUGS.md with huggingface_hub
Browse files
BUGS.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# comma.ai Harness Tester Challenge — Bugs (VeigaPunk)
|
| 2 |
+
|
| 3 |
+
**Repo:** https://github.com/commaai/harness_tester_challenge
|
| 4 |
+
**Identity:** VeigaPunk · **Track:** hardware
|
| 5 |
+
**Method:** firmware source + KiCad netlist (Eeschema export) + footprint check. Prefer show-stoppers.
|
| 6 |
+
**Count:** **49** documented bugs (tables in CSV/XLSX).
|
| 7 |
+
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
## Critical — board / test cannot work
|
| 11 |
+
|
| 12 |
+
1. **`cy.begin()` never called** (`setup`) — Wire2 / expander never initialized.
|
| 13 |
+
2. **Expander reset left asserted** (`CY8C9560::begin`) — ends `CY_RST` LOW on active-low RESET_N → permanent reset.
|
| 14 |
+
3. **R3 is I2C SDA pull-down** (netlist: R3.1=GND, R3.2=CY_SDA with U2/U4). R2 correctly pulls SCL to +3.3V. Bus broken.
|
| 15 |
+
4. **GPS UART not crossed** (netlist):
|
| 16 |
+
- `UBX-TXD` = Teensy TX1 + NEO-M8N **TXD**
|
| 17 |
+
- `UBX-RXD` = Teensy RX1 + NEO-M8N **RXD**
|
| 18 |
+
TX–TX and RX–RX; NMEA never arrives.
|
| 19 |
+
5. **VDD_USB (U3 pin7) → GND** (netlist). Must be VCC per u-blox.
|
| 20 |
+
6. **Q1 reverse-polarity FET S/D swapped** — sources on protected `+12V`, drain on raw J1 input; gate to GND via R1. High-side ideal diode inverted → body diode blocks power.
|
| 21 |
+
7. **RGB LED: no series resistors** — cathodes direct to GPIO 5/6/7.
|
| 22 |
+
8. **`1 << i` overflow** for pins ≥31 (need `1ULL`); pins 31–39 broken.
|
| 23 |
+
9. **Pass/fail OR not AND** — any one pin match ⇒ harness PASS.
|
| 24 |
+
10. **Button polarity inverted** — active-low with R4; code returns on LOW so test runs when idle.
|
| 25 |
+
11. **`set_output()` forces all ports OUTPUT** (`REG_PIN_DIRECTION=0x00`) → contention on shorted harness pins.
|
| 26 |
+
12. **`set_pd_inputs()` writes DIRECTION=0xFF for all ports** — overwrites the driven pin back to input (fights set_output).
|
| 27 |
+
13. **Device ID check `0x06` vs CY8C9560A family `0x04`**.
|
| 28 |
+
14. **LED pins 5/6/7 never `pinMode(OUTPUT)`**.
|
| 29 |
+
15. **GPS SAFEBOOT/RST never `pinMode(OUTPUT)`**.
|
| 30 |
+
16. **SAFEBOOT held LOW permanently** — `digitalWrite(PIN_UBX_SAFEBOOT, LOW)` asserts active-low ~SAFEBOOT so module stays in safeboot (not normal NMEA).
|
| 31 |
+
|
| 32 |
+
## High — wrong results / silent failures
|
| 33 |
+
|
| 34 |
+
17. **FAILED LED wiped every loop** — after test, `set_status(GOOD)` runs at top of loop while `time_fixed`, so FAIL is invisible.
|
| 35 |
+
18. **EXPECTED_CONNECTIONS self-bits vs `~output_mask`** — match structurally impossible.
|
| 36 |
+
19. **MSB vs LSB bit-order** in expected matrix vs `1<<i`.
|
| 37 |
+
20. **Port2 bits 4–7 are SCL/SDA not GPIO** — linear pin index wrong for CBL_20+.
|
| 38 |
+
21. **NMEA buffer overflow + OOB null** (`nmea_buf[64]`, `buf[len]=0`).
|
| 39 |
+
22. **`$GPRMC` only** — misses `$GNRMC`.
|
| 40 |
+
23. **No GPRMC A/V validity check** — void fixes accepted.
|
| 41 |
+
24. **No NMEA checksum check**.
|
| 42 |
+
25. **No settle delay** after reconfiguring expander before `read_inputs`.
|
| 43 |
+
26. **Drive-mode bits not cleared** when switching STRONG/PULL_DOWN modes.
|
| 44 |
+
27. **I2C errors ignored** (`endTransmission` / `requestFrom` / `Wire.read()==-1`).
|
| 45 |
+
28. **No button debounce / single-shot** — multi-fire + SD flood.
|
| 46 |
+
29. **Time frozen after first fix** — `time_fixed` never updates utc/date again.
|
| 47 |
+
30. **SD init failure infinite loop** with no LED (if init fails before status pins configured as outputs).
|
| 48 |
+
31. **Debug print `1 << j` overflow** (same class as #8) for pins ≥31.
|
| 49 |
+
|
| 50 |
+
## Schematic / PCB / package
|
| 51 |
+
|
| 52 |
+
32. **No pull-ups on GPS ~RESET/~SAFEBOOT** (float at boot).
|
| 53 |
+
33. **L7805 thermal** — ~7V drop × load; DPAK, no heatsink path for continuous duty.
|
| 54 |
+
34. **+3.3V from Teensy LDO only** (~250mA) for expander+GPS+LNA — budget risk.
|
| 55 |
+
35. **CY8 Vdd decoupling weak** (only 100n near multi-Vdd pins; no bulk).
|
| 56 |
+
36. **Silkscreen Ethernet/USB Host** without connectors.
|
| 57 |
+
37. **C6 / U5 (MAX2679) courtyard overlap**.
|
| 58 |
+
38. **Sub-min track widths (~0.127mm)** on many CBL nets.
|
| 59 |
+
39. **Zone clearance 0.15mm vs 0.2mm design rule**.
|
| 60 |
+
40. **J3 silkscreen clipped** by board edge.
|
| 61 |
+
41. **Fragmented GND copper islands**.
|
| 62 |
+
42. **Board-edge clearance** at J1 / Teensy power pads.
|
| 63 |
+
43. **NEO-M8N LNA_EN (pin 14) unconnected** while external MAX2679 RF path is present (`unconnected-(U3-LNA_EN-Pad14)`).
|
| 64 |
+
44. **Wrong package: U4 is TQFP-100_12x12mm** in schematic/PCB — **CY8C9560A only ships in 68-pin** packages; part cannot be mounted / pin map is fiction.
|
| 65 |
+
45. **100-pin symbol vs 68-pin silicon** — all GPort→CBL routing invalid on real CY8C9560A pinout.
|
| 66 |
+
46. **U3 D_SEL (pad 2) floating** — interface select not forced for UART mode.
|
| 67 |
+
47. **Expander ports 5–7 largely unconnected** while driver always r/w 8 port bytes.
|
| 68 |
+
48. **`log_result` no fsync** — incomplete SD logs on abrupt power loss.
|
| 69 |
+
|
| 70 |
+
---
|
| 71 |
+
|
| 72 |
+
## Netlist evidence (smoking guns)
|
| 73 |
+
|
| 74 |
+
```
|
| 75 |
+
UBX-TXD: U2.pin3 (TX1) + U3.pin20 (TXD) // TX–TX
|
| 76 |
+
UBX-RXD: U2.pin2 (RX1) + U3.pin21 (RXD) // RX–RX
|
| 77 |
+
CY_SDA: R3.2 + U2.SDA2 + U4.SDA ; R3.1 = GND
|
| 78 |
+
GND: U3.pin7 VDD_USB
|
| 79 |
+
+12V: Q1 S1/S2/S3 ; raw Net-(D1-A1) = Q1.D + J1
|
| 80 |
+
LED_R: D3.RK + U2.pin7 (no series R)
|
| 81 |
+
LNA_EN: unconnected-(U3-LNA_EN-Pad14)
|
| 82 |
+
U4 fp: Package_QFP:TQFP-100_12x12mm_P0.4mm // real CY8C9560A = 68-pin
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
**Prioritize 1–16 + 44 for validation.** Full table: `VeigaPunk_Harness_Tester_Bugs.xlsx` / `.csv`.
|
| 86 |
+
|
| 87 |
+
Form: VeigaPunk · hardware · show on leaderboard: yes
|
| 88 |
+
Package: https://github.com/VeigaPunk/harness-tester-bugs-veigapunk
|
| 89 |
+
Website PR: https://github.com/commaai/website/pull/334 (40→ update pending staff grade)
|
| 90 |
+
|
| 91 |
+
## Added after top-24 recheck (still ≥48)
|
| 92 |
+
|
| 93 |
+
49. **L1 is 12 nH in antenna bias-T** (netlist value `12n`, 0402) between C5 and U5 (MAX2679) RF path. Bias-T for GNSS active antennas typically needs µH-class RF chokes; 12 nH is inadequate RF isolation / RF short risk at L1 band — intentional weak component selection.
|
| 94 |
+
|