This page covers clean rebuilds, reruns, and routine repo care.
Default build dir:
build/light-c6-thread
If build state looks stale or inconsistent, remove build dir and rebuild.
Typical reasons:
- changed ESP-IDF version
- changed target assumptions
- changed patch state in
esp-matter/ - old
flasher_args.jsonno longer matches current build
Generated output lives under:
tools/outtools/labelstools/matter-labels.html
If you want clean repro run, remove old generated outputs before rerunning.
Typical reasons:
- old onboarding codes causing confusion
- labels from prior batch still visible
- switching VID/PID or product naming
Important behavior:
- if
tools/device_manifest.csvalready exists, generator reuses it --countdoes not overwrite it automatically
If you want fresh device identities, remove or rename existing manifest first.
- remove old
build/light-c6-thread - remove old
tools/out - remove old labels if needed
- remove or rename
tools/device_manifest.csv - rerun
light_pipeline.py run --count ...
If you use --apply-patches, remember esp-matter/ may now contain local changes.
Before updating submodule or rebuilding after upstream changes, inspect:
patches/git -C esp-matter status --short
Useful commands:
python3 tools/light_pipeline.py doctor
python3 tools/light_pipeline.py list- pipeline behavior:
pipeline.md - outputs:
outputs.md - upstream and patches:
upstream-and-patches.md