Skip to content

Example Sketches Guide (Troubleshooting + Learning)

This page is now the hub. Each bundled example has its own dedicated documentation page.

  1. FlashDiagnostics.ino
  2. TestFlash.ino
  3. readWriteString.ino
  4. getAddressEx.ino
  5. Struct_writer.ino
  6. Diagnostics_functions.ino

Per-Sketch Pages

What You Get On Each Page

  • exact API call inventory used by the sketch
  • expected serial output samples
  • failure signals and common root causes
  • practical debugging interpretation

Helper functions defined in this file

  • Output helpers: printLine, printTab, printTime, printTimer, pass
  • Identity helpers: printUniqueID, getID
  • Test routines:
  • powerDownTest, powerUpTest
  • eraseChipTest, eraseSectionTest, eraseBlock64KTest, eraseBlock32KTest, eraseSectorTest
  • byteTest, charTest, wordTest, shortTest, uLongTest, longTest, floatTest, structTest, arrayTest, stringTest
  1. FlashDiagnostics.ino
  2. TestFlash.ino (targeted operation isolation)
  3. readWriteString.ino
  4. getAddressEx.ino
  5. Struct_writer.ino

What to capture when asking for help

  • Board and core version
  • Chip part number
  • Wiring summary (including WP/HOLD if flash)
  • Example sketch name
  • Error code (error() value) and serial output snippet