VS Arduino
Visual Micro >> General Board >> ELF file SHA256: 0000000000000000 ?
https://www.visualmicro.com/forums/YaBB.pl?num=1623570283

Message started by Yordan on Jun 13th, 2021 at 7:44am

Title: ELF file SHA256: 0000000000000000 ?
Post by Yordan on Jun 13th, 2021 at 7:44am
Not sure if this is for You guys, but seems none answer from the rest forums, so I am trying.
- The issue is that I am not sure from where to export .bin file for OTA update from Visual Micro, and I am currently sending the one which result when I click the run button, but I got this error : "ELF file SHA256: 0000000000000000".

Title: Re: ELF file SHA256: 0000000000000000 ?
Post by Tim@Visual Micro on Jun 13th, 2021 at 1:23pm
I am not entirely clear where you are attempting to upload for OTA.

If you put the IP address of you board into into the serial port field and press ENTER then the Visual Micro upload should use OTA. IF you then switch on the compile verbose and upload verbose options on the vMicro toolbar you will see what is used for the OTA upload.

If you then see an error please post it here but in any event please post the info requested in the yellow box near the top of this page when creating forum threads. Most boards have different options so our advice can only really be given when the know what you are using and which tool chains you have installed.


Title: Re: ELF file SHA256: 0000000000000000 ?
Post by Yordan on Jun 14th, 2021 at 6:59pm
more like I would like to ask ( since for me is not clear yet what's the issue ) :
- is there some specific process of generating .BIN file which should be delivered from a server (in my case ASP.NET) to the ESP32 on OTA Update or I should just use the "projectname".BIN which is generated when I press "Build" button ?

Title: Re: ELF file SHA256: 0000000000000000 ?
Post by Tim@Visual Micro on Jun 14th, 2021 at 8:06pm
if you switch on the verbose upload and then add any ip address as outlined previously you will see the command that we use to upload for ota. The command pattern is read from the esp32 toolchain platform.txt. The instructions in the yellow box near the top of this page also show how to switch on the "show build properties" option. That combined with verbose show all the patterns we have discovered and the final command to upload for ota

This is the verbose upload I see when I set a random IP address for a test. You will see that Visual Micro calls the espota.exe that is supplied with the toolchain. It might well be doing some extra stuff but you can use the .exe too.


Code (]Uploading 'Sketch38' to 'ESP32 Dev Module' using '192.168.8.122'
Uploader started for board ESP32 Dev Module
Upload method will be: bootloader
Uploading via Bootloader
Port Properties (network)
C:\Users\[your name):

\AppData\Local\arduino15\packages\esp32\hardware\esp32\1.0.6\tools\espota.exe -i "192.168.8.122" -p "3232" "--auth=" -f "C:\Users\[your name]\AppData\Local\Temp\VMBuilds\Sketch38\ESP32_~1\Release/Sketch38.ino.bin"



VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.