Thank you @ptillisch and @CamargoF. With your kind help and support, progress is being made.
I (now) understand that the WT32-ETH01 development board does not have an on-board/built-in LED that can be controlled as easily as with Arduino boards. Therefore, I have prepared a connection from IO2 (pin 15) of the WT32-ETH01 to an LED via a 330 ohm resistor tied to ground.
In an attempt to make this (external) LED flash, I modified the "Blink" sketch as follows:
/*
Blink
Turns an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want to know what pin the on-board LED is connected to on your Arduino
model, check the Technical Specs of your board at:
https://www.arduino.cc/en/Main/Products.
modified 8 May 2014
by Scott Fitzgerald
modified 2 Sep 2016
by Arturo Guadalupi
modified 8 Sep 2016
by Colby Newman
This example code is in the public domain.
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
modified 25 Sep 2023 for WT32-ETH01
by Cystrin
For the WT32-ETH01 development board, an on-board LED has not been provided.
This sketch thus defines LED_BUILTIN as being pin 15 of the board.
An LED, in series with a 330 ohm to ground, can be connected to IO2 (pin 15).
*/
// define a constant associated with pin 19 (IO2) to be used as an output
int LED_BUILTIN = 15;
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
I use the electrical configuration described in my original posting and prepare the WT32-ETH01 development board for uploading by holding pin IO0 (pin 24) to GND and taking EN (pin 1) to GND for a second before letting it float.
Next, from the IDE, I upload the sketch. During the upload, the TXD and RXD LEDs on the USB-to-TTL board flash for a few seconds. After this, and based on the following output, it appears that the sketch has been uploaded from the Arduino IDE to the WT32-ETH01:
WARNING: Category '' in library ESP Insights is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library ESP RainMaker is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library WiFiProv is not valid. Setting to 'Uncategorized'
Sketch uses 236745 bytes (18%) of program storage space. Maximum is 1310720 bytes.
Global variables use 21048 bytes (6%) of dynamic memory, leaving 306632 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-D0WD (revision v1.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 80:64:6f:e9:d5:1c
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00049fff...
Compressed 18992 bytes to 13112...
Writing at 0x00001000... (100 %)
Wrote 18992 bytes (13112 compressed) at 0x00001000 in 1.5 seconds (effective 100.7 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.1 seconds (effective 282.6 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.2 seconds (effective 431.2 kbit/s)...
Hash of data verified.
Compressed 237104 bytes to 130416...
Writing at 0x00010000... (12 %)
Writing at 0x0001d2b9... (25 %)
Writing at 0x00024372... (37 %)
Writing at 0x00029568... (50 %)
Writing at 0x0002eb97... (62 %)
Writing at 0x000370f9... (75 %)
Writing at 0x0003f148... (87 %)
Writing at 0x000447cd... (100 %)
Wrote 237104 bytes (130416 compressed) at 0x00010000 in 11.7 seconds (effective 161.8 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
@ptillisch is the above confirming that the WT32-ETH01 has been uploaded with the sketch?
Next, I release IO0 (pin 24) from GND and as @CamargoF stated, hold it HIGH. I then disconnect the TX, RX, 5V0 and GND connections between the USB-to-TTL board and the WT32-ETH01 board. After half-a-minute or so, I reconnect the GND and 5V0 connections between the two boards. Although the WT32-ETH01 is power up (as shown by its LED1), the LED connected to IO2 (pin 15) does not blink--it is off.
I have experimented with different options after uploading the sketch--for example, let IO0 (pin 24) float, hold it high, hold it low , take EN (pin 1) high, let it float and so on. However, none of these options make my external LED blink.
@CamargoF would it be possible for you to repeat my experiments to see if by connecting an LED to an IO pin you can make it blink?
Thanks for all of your help.