DBG-18 I2C or SPI buses not reachable at a header or test points for a bus analyser¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | runs in better_erc | easy, depends on NET-4 |
Data it needs: graph, part classes.
Looks at. Buses (NET-4 for I2C, SPI by pin names), test points.
What it catches. I2C (SCL, SDA) and SPI (SCK, MOSI, MISO, CS) buses whose lines cannot be reached by a logic analyser clip: no test points, no header, only fine-pitch pins.
Why it matters. Most "sensor not found" and "reads garbage" bugs end with a logic analyser on the bus. On a board with QFN and 0402 parts there is nowhere to clip; the probe wires get soldered to a pull-up resistor, which works once and lifts a pad the second time.
Example. An IMU on SPI next to a QFN MCU with its 0402 decoupling: the only reachable metal is the via under the chip select trace.
How to check. For each bus line, look for a test point or connector pin on the net; report buses with none (same data as RPT-15, TEST-5).
Fix. A test point per line plus GND, or an unpopulated 2.54 mm header (a footprint costs nothing).
References. XJTAG DFT (bring control and observation signals to a connector); catalogue TEST-5.
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only DBG-18 reports on it.
dbg-18_bus_access¶
suggestion DBG-18 #kcc SPI bus /IMU_SCK: /IMU_SCK, /IMU_MOSI, /IMU_MISO and /IMU_CS reach no test point or header for an analyser
net /IMU_CS, net /IMU_MISO, net /IMU_MOSI, net /IMU_SCK
fix: a test point per line plus GND, or an unpopulated 2.54 mm header
suggestion DBG-18 #sqc I2C bus /I2C: /SDA reaches no test point or header for an analyser
net /SDA
fix: a test point per line plus GND, or an unpopulated 2.54 mm header
DBG-18 also fires on the test schematics of other checks: dbg-11_uart_spi_resistors, i2c-10_non_equal_pull_ups, i2c-18_discrete_translator, i2c-18_isolated_segment, i2c-1_no_pull_ups, i2c-2_multiple_pull_ups, i2c-4_gpio_pull_ups, i2c-4_pull_up_to_signal, i2c-4_strap_gated_bus, i2c-7_segments, i2c-9_non_standard_pull_ups, lvl-4_translator_pull_ups, lvl-9_gate_reference, mux-1_swapped_signals, test-5_bring_up_test_points.