Example Sketches Guide (Troubleshooting + Learning)¶
This page is now the hub. Each bundled example has its own dedicated documentation page.
Recommended Beginner Order¶
- FlashDiagnostics.ino
- TestFlash.ino
- readWriteString.ino
- getAddressEx.ino
- Struct_writer.ino
- Diagnostics_functions.ino
Per-Sketch Pages¶
- FlashDiagnostics.ino
- TestFlash.ino
- getAddressEx.ino
- readWriteString.ino
- Struct_writer.ino
- Diagnostics_functions.ino
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,powerUpTesteraseChipTest,eraseSectionTest,eraseBlock64KTest,eraseBlock32KTest,eraseSectorTestbyteTest,charTest,wordTest,shortTest,uLongTest,longTest,floatTest,structTest,arrayTest,stringTest
Recommended order for beginners¶
FlashDiagnostics.inoTestFlash.ino(targeted operation isolation)readWriteString.inogetAddressEx.inoStruct_writer.ino
What to capture when asking for help¶
- Board and core version
- Chip part number
- Wiring summary (including
WP/HOLDif flash) - Example sketch name
- Error code (
error()value) and serial output snippet