بنقرة واحدة
flash
Build and flash firmware to connected ESP32-S3, then open serial monitor
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Build and flash firmware to connected ESP32-S3, then open serial monitor
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | flash |
| description | Build and flash firmware to connected ESP32-S3, then open serial monitor |
This file is both:
/flash operational skill for ClaudeUse this guide when a tester needs to:
sdkconfig.defaultssdkconfig.defaults plus sdkconfig.defaults.relayWhenever a board changes role between exit and relay, delete sdkconfig and rebuild.
This avoids stale configuration leaking from a previous build mode.
esp32s3Expected indicators:
GATEWAYW:OKExpected indicators:
RELAYW:--W:OK = WiFi connected to APW:-- = no AP connection (expected for relay build)Lo P:<n> = LoRa present / ESP-NOW peer count lineN<n> C<h> D<h> = neighbors, control-path hops, data-path hops>> Cloud CMD = recent cloud command receivedUse the in-repo wrapper from flp-node/.
The ./idf wrapper:
~/esp/esp-idf-v5.5.3/export.shsdkconfig on build / freshcd flp-node
./idf build
./idf flash monitor
cd flp-node
./idf relay build
./idf relay flash monitor
# full clean, rebuild, erase flash, then flash
./idf fresh
# relay variant of the same
./idf relay fresh
# specify a port manually
./idf flash -p /dev/cu.usbmodem12301 monitor
./idf relay flash -p /dev/cu.usbmodem12301 monitor
If multiple serial ports are detected, the wrapper will prompt for selection.
Run commands inside ESP-IDF PowerShell or ESP-IDF CMD.
If idf.py is not found, the tester is in the wrong terminal.
cd flp-node
Remove-Item sdkconfig -ErrorAction SilentlyContinue
idf.py -D "SDKCONFIG_DEFAULTS=sdkconfig.defaults" set-target esp32s3
idf.py build
idf.py -p COM3 flash monitor
cd flp-node
Remove-Item sdkconfig -ErrorAction SilentlyContinue
idf.py -D "SDKCONFIG_DEFAULTS=sdkconfig.defaults;sdkconfig.defaults.relay" set-target esp32s3
idf.py build
idf.py -p COM4 flash monitor
Replace COM3 / COM4 with the actual port shown in Device Manager.
Common device names:
/dev/cu.usbmodem*/dev/cu.usbserial*/dev/cu.SLAB*Check Device Manager > Ports (COM & LPT).
Typical labels:
If the port disappears during flash/monitor work, try a different USB cable first.
Recommended tester workflow:
This avoids mixing up ports and addresses later in experiment runs.
After every flash, verify:
FLP-XXXX is recordedDo not move on to experiment testing until these checks pass.
idf.py not foundCause:
Fix:
./idfCapture:
Cause:
Fix:
/dev/cu.*Capture:
could not open portCause:
Fix:
idf.py monitor instancesCause:
sdkconfig was reused from the previous build modeFix:
sdkconfigW:--Cause:
Check:
W:OKCause:
Fix:
Check:
Check:
Do not summarize from memory; capture the full boot log.
Ask the tester for:
When giving this to a tester, ask them to fill in:
When used as a skill, guide the user in this order:
Do not assume the same commands work unchanged across macOS/Linux and Windows.