Flash tool under Windows App

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Flash tool under Windows App

Postby Deouss » Thu Aug 02, 2018 3:34 pm

I want to write a flash tool just like esptool.py but using .net because it seems easy)
So I am looking for detailed steps necessary to perform correct flashing.
If anyone could help here I'd appreciate much.
I will opensource full code

Thanks

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Flash tool under Windows App

Postby kolban » Thu Aug 02, 2018 4:51 pm

Howdy,
Here is the spec of the flashing protocol ...

https://github.com/espressif/esptool/wi ... l-Protocol

here is an attempt I did in JavaScript

https://github.com/nkolban/esp32-snippe ... ptool_libs

and don't forget that esptool.py is going to be your friend as a reference.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Flash tool under Windows App

Postby Deouss » Thu Aug 02, 2018 5:06 pm

I noticed when looked inside intestines of esptool.py that it initializes a lot of params and gets quite load of info from chip.
But it looks like it performs very simple basic flashing at the end. Also replaces the bootloader with hardcoded stub.
I'm not sure what compression is used

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: Flash tool under Windows App

Postby ESP_Sprite » Fri Aug 03, 2018 2:12 am

Compression is standard zlib-based compression.

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Flash tool under Windows App

Postby Deouss » Fri Aug 03, 2018 3:38 am

Yes I see it says gzip - .net has that but still wondering around to find SLIP classes )
I actually never heard of slip. esptool has function to read it bur python is very strange language - reminds me of deformed vb or vbscript.
I am not sure if all code is for esp32 because I see esp8266 functions as well
I read it is possible to upload code and execute it - cool

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: Flash tool under Windows App

Postby ESP_Sprite » Fri Aug 03, 2018 8:14 am

SLIP is a protocol originally used to encapsulate IP packets, and is almost trivial to implement yourself. It's described in RFC1055.

Who is online

Users browsing this forum: Bing [Bot] and 118 guests