Does Zerynth support OTA for ESP32?


#1

If  Zerynth does support OTA for ESP32, would someone kindle show me where this info is at ?


#2

here it is https://docs.zerynth.com/latest/official/core.zerynth.docs/zadm/docs/index.html#fota-updates


#3

Thank you, but that if i am reading that right, that is not a real OTA.
Real OTA updating would require my device to connect via Wifi to a network, and be updated that way.
Am I misunderstanding it ?



#4

Hi seulater,

Here you can find an example code (https://docs.zerynth.com/latest/official/lib.zerynth.zadm/examples/examples.html#lib-zerynth-zadm-fota-updates)

note: for esp32 device you have to change the Wi-Fi driver import

Let me know if this can help you


#5

Thank you very much, That was helpful and will give it a shot tonight.


#6

I was unable to get it to work. If i visualize it as “starter” it will upload to the device via USB.  But in the terminal I get:
 "STARTING…
           UnsupportedError @[0000:0064:0000:0000:0000:0000:0000:0000]"

I thought, OK i need to visualize it as “Premium”. When I do that it will not upload. I get the following errors in the window.

[info] Compilation Ok
[info] Searching for device e7a4bc050dddcfcc95a52881d92f1d4634052f87 with alias zs:esp32_devkitc:e7a4bc050dddcfcc95a52881d92f1d4634052f87
[info] Got header: abort() was called at PC 0x4013ba30 on core 0
[info] Got header: Backtrace: 0x40089363:0x3ffdc280 0x4008938f:0x3ffdc2a0 0x4013ba30:0x3ffdc2c0 0x400838a9:0x3ffdc2e0 0x40114d59:0x3ffdc300 0x40114ae3:0x3ffdc320 0x4010b8d9:0x3ffdc350 0x401080ae:0x3ffdc370 0x400d0ef8:0x3ffdc390
[info] Got header: Rebooting…
[info] Got header: ets Jun  8 2016 00:22:57
[info] Got header: rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[info] Got header: configsip: 0, SPIWP:0xee
[info] Got header: clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[info] Got header: mode:DIO, clock div:2
[info] Got header: load:0x3fff0018,len:4
[info] Got header: load:0x3fff001c,len:3064
[info] Got header: load:0x40078000,len:0
[info] Got header: ho 12 tail 0 room 4
[info] Got header: load:0x40078000,len:11504
[info] Got header: entry 0x40078d64
[info] Got header: abort() was called at PC 0x4013ba30 on core 0
[info] Got header: Backtrace: 0x40089363:0x3ffdc280 0x4008938f:0x3ffdc2a0 0x4013ba30:0x3ffdc2c0 0x400838a9:0x3ffdc2e0 0x40114d59:0x3ffdc300 0x40114ae3:0x3ffdc320 0x4010b8d9:0x3ffdc350 0x401080ae:0x3ffdc370 0x400d0ef8:0x3ffdc390
[info] Got header: Rebooting…
[info] Got header: ets Jun  8 2016 00:22:57
[info] Got header: rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[info] Got header: configsip: 0, SPIWP:0xee
[info] Got header: clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[info] Got header: mode:DIO, clock div:2
[info] Got header: load:0x3fff0018,len:4
[info] Got header: load:0x3fff001c,len:3064
[info] Got header: load:0x40078000,len:0
[info] Got header: ho 12 tail 0 room 4
[info] Got header: load:0x40078000,len:11504
[info] Got header: entry 0x40078d64
[info] Got header: abort() was called at PC 0x4013ba30 on core 0







#7

Hi seulater,

Yes, to test the FOTA example you need a VM with the FOTA feature that is a Premium VM (here more info in licensing section).

Have you tried to virtualize again the device with the Premium VM? if the problem persists, can you open the serial monitor and send me the output?