Problem virtualizing Wipy 3.0



I could register my Wipy device, per this note but could not virtualize it. This seems similar to this other, unresolved post. Here are some details, hopefully this will help resolve:

// 1. Register device

[info] Starting device registration
[info] Burning bootloader...
[info] Burning bin
[info] v2.0
[info] Connecting....
[info] Chip is ESP32D0WDQ6 (revision 1)
[info] Uploading stub...
[info] Running stub...
[info] Stub running...
[info] Configuring flash size...
[info] Auto-detected Flash size: 8MB
[info] Compressed 19584 bytes to 12811...
[info] Writing at 0x00001000... (100 %)
[info] Wrote 19584 bytes (12811 compressed) at 0x00001000 in 1.1 seconds (effective 137.8 kbit/s)...
[info] Hash of data verified.
[info] Compressed 305264 bytes to 181759...
[info] Writing at 0x0003c000... (100 %)
[info] Wrote 305264 bytes (181759 compressed) at 0x00010000 in 16.1 seconds (effective 151.9 kbit/s)...
[info] Hash of data verified.
[info] Compressed 3072 bytes to 156...
[info] Writing at 0x00008000... (100 %)
[info] Wrote 3072 bytes (156 compressed) at 0x00008000 in 0.0 seconds (effective 945.2 kbit/s)...
[info] Hash of data verified.
[info] Compressed 1024 bytes to 32...
[info] Writing at 0x00390000... (100 %)
[info] Wrote 1024 bytes (32 compressed) at 0x00390000 in 0.0 seconds (effective 585.2 kbit/s)...
[info] Hash of data verified.
[info] Leaving...
[info] Staying in bootloader.
[info] Please reset the device!

// 2. Reset device

[info] Chip id retrieved: 03ea4a053205
[info] Device Pycom WiPy 3.0 registered with uid: 8JYToDc1RDupB67P8pAg4A
Registration successful! Now you can virtualize your pycom_wipy_v3

// 3. Create VM

Creating VM for pycom_wipy_v3...
[info] Creating vm for device 8JYToDc1RDupB67P8pAg4A
[info] VM Pycom WiPy 3.0 r19.06.28 created with uid: dB6cc7GXRcuWYYX4vd_6CQ
[info] Downloaded Virtual Machine in C:\Users\(username)\zerynth2\vms\pycom_wipy_v3\03ea4a053205 with uid dB6cc7GXRcuWYYX4vd_6CQ
VM created! You can now virtualize your pycom_wipy_v3

// 4. Virtualize

[info] Starting Virtualization...
[info] Burning bin
[info] v2.0
[info] Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
[info] A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (b'0')
[error] Error in virtualization v2.0 

Now, after recycling power on the device, here is what serial console shows:

configsip: 0, SPIWP:0xee
mode:DIO, clock div:2
entry 0x400806c0
E (31) boot: OTA: 4/-1  -1/-1  -1/11
E (31) boot: Invalid ota, returning default vm 0
E (31) boot: Starting vm 0

Please advise!


Hello @jbuusao,

have you put the device in Download mode also before virtualizing?