Serial Bus Debug

Bring up a UART, I2C or SPI link that returns garbage, NACKs or reads all 0xFF: check electrical before logical (power, common ground, logic levels, RS-232 versus TTL), put a logic analyser with a protocol decoder on the wires before changing code, compute UART baud error from the clock divider, scope I2C rise time against pull-up and bus capacitance, check 7-bit versus 8-bit addressing and free a stuck bus with nine SCL pulses, and set SPI mode from the datasheet timing diagram. Use for "I2C device doesn't ACK", "UART prints garbage", "SPI always reads 0xFF", "SDA stuck low". Not for software failures (debugging), a unit that hangs or resets (watchdog-design), a crash decode (hard-fault-triage) or RS-485, Modbus and CAN links on machines (fieldbus-debug).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit b0d9ae8649

Frequently asked questions

npx get-skill add greenblacked/serial-bus-debug