This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tamiwiki:users:6r1d:diymall_esp32_s3_fixture [2025/10/18 21:38] – 6r1d | tamiwiki:users:6r1d:diymall_esp32_s3_fixture [2025/10/20 05:43] (current) – [ESP-IDF (+ history and PWM debug)] 6r1d | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| {{: | {{: | ||
| - | It is very helpful as a fixture. It is not helpful whatsoever | + | It is very helpful as a fixture. It is not helpful whatsoever |
| So, the fixture is easy to buy on AliExpress, for example, [[https:// | So, the fixture is easy to buy on AliExpress, for example, [[https:// | ||
| Line 51: | Line 51: | ||
| * Initially, I thought that onboard USB-UART is connected to something else than RXD0 / TXD0. It was not. It is the main UART. | * Initially, I thought that onboard USB-UART is connected to something else than RXD0 / TXD0. It was not. It is the main UART. | ||
| - | ====== Tracing code: Arduino | + | ====== Tracing code ====== |
| - | You may disagree with me and want to run a quick check. | + | You might disagree with me and want to double-check. |
| + | |||
| + | Grab your trusty 30-year-old LED soldered to a pair of DuPont sockets and start tracing. If you don’t have one handy (like me), grab your scope instead.((Marie Antoinette reference unintended.)) | ||
| + | |||
| + | For convenience, | ||
| + | ===== ESP-IDF (+ history and PWM debug) ===== | ||
| + | |||
| + | This code gives you a predictable interactive workflow with history. | ||
| + | |||
| + | < | ||
| + | > help | ||
| + | Commands: | ||
| + | list -> show test-safe GPIOs | ||
| + | status | ||
| + | pin < | ||
| + | < | ||
| + | delay < | ||
| + | pwm <pin> [brightness] | ||
| + | brightness < | ||
| + | freq < | ||
| + | stop -> stop and release pin | ||
| + | |||
| + | > 48 | ||
| + | Stopped. Pin released to INPUT. | ||
| + | Blinking GPIO 48 at 100 ms. | ||
| + | |||
| + | > 42 | ||
| + | Stopped. Pin released to INPUT. | ||
| + | Blinking GPIO 42 at 100 ms. | ||
| + | |||
| + | > 47 | ||
| + | Stopped. Pin released to INPUT. | ||
| + | Blinking GPIO 47 at 100 ms. | ||
| + | |||
| + | > 46 | ||
| + | Restricted: GPIO 46 is not in the test-safe set. | ||
| + | |||
| + | > delay 40 | ||
| + | Set blink delay to 40 ms. | ||
| + | |||
| + | > delay 10 | ||
| + | Set blink delay to 10 ms. | ||
| + | </ | ||
| + | |||
| + | As for using it, you should know the gist at this point. | ||
| + | |||
| + | <code bash> | ||
| + | mkdir pin_tracer && cd pin_tracer | ||
| + | idf.py create-project . && idf.py reconfigure && idf.py set-target esp32s3 | ||
| + | # fill the code | ||
| + | # update the CMake configs | ||
| + | idf.py build | ||
| + | idf.py flash monitor | ||
| + | </ | ||
| + | |||
| + | For your convenience, | ||
| + | |||
| + | Clone it like that: | ||
| + | |||
| + | <code bash> | ||
| + | git clone https:// | ||
| + | </ | ||
| + | |||
| + | Also, you can use Minicom to interact with the tracing code if you'd like. It's just one of the default baudrates, 115200. | ||
| + | |||
| + | <code bash> | ||
| + | minicom -D / | ||
| + | </ | ||
| + | ===== Arduino (basic version) ===== | ||
| Flash from Arduino IDE. Use the ESP32 board package by Espressif, pick ESP32S3 Dev Module, pick 115200 baud in Serial Monitor. | Flash from Arduino IDE. Use the ESP32 board package by Espressif, pick ESP32S3 Dev Module, pick 115200 baud in Serial Monitor. | ||