ESP-01 vs ESP-01S LED Flashing Issue
Posted: Thu Jul 14, 2022 3:09 pm
I've discovered an issue when flashing the LED on an ESP-01 vs an ESP-01S.
ESP-01: LED is connected to pin-1 (Tx).
ESP-01S: LED is connected to pin-2 (GPIO2).
Both the ESP-01 & ESP-01S have 1M flash-memory.
Using Thonny-IDE
Flashing the LED on an ESP-01S functions as expected; no issues.
However, running the same code on the ESP-01 (correcting for the pin difference) apparently affects the ability to return to REPL.
Used a simple code example in the ESP-01, to confirmed the issue.
Here's the simple code example:
After Reset-Boot the LED flashes, however, on "Interrupt execution" the flashing stops, but no REPL.
Trying "Stop/Restart backend" result in:
Trying "Send EOF / Soft reboot" restarts the LED flashing, but again no means to stop, or interrupt returns REPL.
Any attempt to modify and load new code results in Thonny error saying the device is busy.
The only way to get back the REPL is to re-flash micropython v1.18.
Any thoughts as to what causing the issue?
Mike
ESP-01: LED is connected to pin-1 (Tx).
ESP-01S: LED is connected to pin-2 (GPIO2).
Both the ESP-01 & ESP-01S have 1M flash-memory.
Using Thonny-IDE
Flashing the LED on an ESP-01S functions as expected; no issues.
However, running the same code on the ESP-01 (correcting for the pin difference) apparently affects the ability to return to REPL.
Used a simple code example in the ESP-01, to confirmed the issue.
Here's the simple code example:
Code: Select all
ledObj = Pin(1, Pin.OUT)
offState = 1
onState = 0
ledObj.value(offState)
TFlash = 0.3
while True:
ledObj.value(onState)
sleep(TFlash)
ledObj.value(offState)
sleep(TFlash)
Trying "Stop/Restart backend" result in:
Rebooting LED starts flashing again; executing "Stop/Restart backend", stops LED, but no REPL.Device is busy or does not respond. Your options:
- wait until it completes current work;
- use Ctrl+C to interrupt current work;
- use Stop/Restart to interrupt more and enter REPL.
Trying "Send EOF / Soft reboot" restarts the LED flashing, but again no means to stop, or interrupt returns REPL.
Any attempt to modify and load new code results in Thonny error saying the device is busy.
The only way to get back the REPL is to re-flash micropython v1.18.
Any thoughts as to what causing the issue?
Mike