Problem virtualizing Wipy 3.0


#1

Greetings,

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] esptool.py 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] 
[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] 
[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] 
[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] 
[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] 
[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] esptool.py v2.0
[info] Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
[info] 
[info] A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (b'0')
[error] Error in virtualization esptool.py v2.0 

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

rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:3772
load:0x40078000,len:9928
load:0x40080400,len:5788
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
þ03ea4a053205
þ03ea4a053205

Please advise!
JP


#2

Hello @jbuusao,

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