Sparkfun ESP32 Thing


#1

Trying to upload the Blink example to a Sparkfun ESP32 Thing. Hardware selected and virtualized. Get a “[error] No answer to probe” error. Tried resetting the ESP after the “Compilation OK” message and still the same error (No answer to probe)

First I did a “verify” for the virtual device and then tried to perform an “upload” to the physical device.

Any help?



[info] Searching for C:\Users\danhu\Blink\builtins.py
[info] Searching for C:\Users\danhu\zerynth2\dist\r2.0.10\stdlib\builtins.py
[info] ########## STEP 0 - first pass
[info] Compiling module: main @ C:\Users\danhu\Blink\main.py
[info] Searching for C:\Users\danhu\Blink\builtins.py
[info] Searching for C:\Users\danhu\zerynth2\dist\r2.0.10\stdlib\builtins.py
[info] Compiling module: builtins @ C:\Users\danhu\zerynth2\dist\r2.0.10\stdlib\builtins.py
[info] ########## STEP 0 - second pass
[info] Compiling module: main @ C:\Users\danhu\Blink\main.py
[info] Searching for C:\Users\danhu\Blink\builtins.py
[info] Searching for C:\Users\danhu\zerynth2\dist\r2.0.10\stdlib\builtins.py
[info] Compiling module: builtins @ C:\Users\danhu\zerynth2\dist\r2.0.10\stdlib\builtins.py
[info] ########## STEP 4 - generate binary
[info] Saving to C:\Users\danhu\zerynth2\tmp\zstudio.vbo
[info] Compilation Ok
[info] Searching for C:\Users\danhu\Blink\builtins.py
[info] Searching for C:\Users\danhu\zerynth2\dist\r2.0.10\stdlib\builtins.py
[info] ########## STEP 0 - first pass
[info] Compiling module: main @ C:\Users\danhu\Blink\main.py
[info] Searching for C:\Users\danhu\Blink\builtins.py
[info] Searching for C:\Users\danhu\zerynth2\dist\r2.0.10\stdlib\builtins.py
[info] Compiling module: builtins @ C:\Users\danhu\zerynth2\dist\r2.0.10\stdlib\builtins.py
[info] ########## STEP 0 - second pass
[info] Compiling module: main @ C:\Users\danhu\Blink\main.py
[info] Searching for C:\Users\danhu\Blink\builtins.py
[info] Searching for C:\Users\danhu\zerynth2\dist\r2.0.10\stdlib\builtins.py
[info] Compiling module: builtins @ C:\Users\danhu\zerynth2\dist\r2.0.10\stdlib\builtins.py
[info] ########## STEP 4 - generate binary
[info] Saving to C:\Users\danhu\zerynth2\tmp\zstudio.vbo
[info] Compilation Ok
[info] Searching for device 56c344dadcfb40184ec92349d60048e549828bc0 with alias zs:sparkfun_esp32thing:56c344dadcfb40184ec92349d60048e549828bc0
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[info] Got header: 42a04c000a2d
[error] No answer to probe

#2

Hi @Hunter,
and welcome to Zerynth.
It seems that you have registered but not virtualized the board.
After the registration step, and before you can start programming, the device has to be virtualized.

To do that, as reported in the docs, you have to:

  • Register the device by clicking the “Z” button from the Zerynth Studio;
  • Create a Virtual Machine for the device by clicking the “Z” button for the second time;
  • Virtualize the device by clicking the “Z” button for the third time.
Please try to complete these steps and let me know if things go right.

#3

Hi,
I bought a SparkFun Esp32 Thing board, and I was able to successfully create, register and virtualize the board.
However, when I run the Wifi Network Connection Example, with the following code:

import streams

from wireless import wifi
from espressif.esp32net import esp32wifi as wifi_driver

streams.serial()

wifi_driver.auto_init()

print(“Establishing Link…”)
try:
wifi.link(‘XXXX’,wifi.WIFI_WPA2,‘xxxxx’) # XXX my network and xxx my pass
print(“Link Established”)
except Exception as e:
print(“ooops, something wrong while linking :(”, e)
while True:
sleep(1000)

But it gives me the following error:

Establishing Link…
ooops, something wrong while linking :frowning: IOError @[0034:0013:0000:0043:0000:0000:0000:0000]

ooops, something wrong while linking :frowning: IOError at line 27 of main
raised at line 97 of wireless.wifi.link

I have run the same example with ESP32 DevkitC without problems.

Can you help me?

Thanks.


#4

Hi @Marco_Branco,

I’ve just tried that example on a SparkFun Esp32 Thing board and it seems to work correctly.
Probably the issue is caused by a different range of the antennas the two boards mount, I suggest you to put the connection logic in a cycle to retry connecting after a failure:

for _ in range(3):
    try:
        wifi.link(‘XXXX’,wifi.WIFI_WPA2,‘xxxxx’) # XXX my network and xxx my pass
        print(“Link Established”)
    except Exception as e:
        print(“ooops, something wrong while linking :(”, e)

Let me know if this solves your issue :slight_smile:


#5

Hi @LorenzoR,
Now I can connect to WiFi network.
Thanks.