HOWTO: Flashing ESP8266

Discussion about various user interfaces such as web interface, displays and apps
nkiernan
Posts: 540
Joined: Mon Feb 24, 2020 8:59 pm
Location: Ireland
Has thanked: 318 times
Been thanked: 69 times

Re: HOWTO: Flashing ESP8266

Post by nkiernan »

Whereabouts are you PatrcioEV-ATX?
User avatar
Boxster EV
Posts: 474
Joined: Fri Jul 26, 2019 9:32 pm
Location: UK
Has thanked: 52 times
Been thanked: 46 times

Re: HOWTO: Flashing ESP8266

Post by Boxster EV »

PatrcioEV-ATX wrote: Thu Apr 15, 2021 2:04 am I bought a partial built GS450h board and have added all needed components. Unfortunately, I didn't research the wifi module enough before hand and thought it would just need to be sourced and plugged in. Stupid, I know. I've read through this thread and tried so many times to get my Olimex 8266 module to work, but I can't even get it flashed. I am a COMPLETE novice to what is required and would have just bought the kit with the wifi module programmed had I realized it needed it (totally my own fault). I know the wifi interface isn't needed to make my project run, but I'd hate to not have it because I can't figure this part out. So.....

1. Anyone here willing to write a step by step, start to finish, "for idiots" version of how to get this module programmed to work with the GS4540h VCU (big ask, I know)?

2. Anyone willing to program one for me (for a fee of course!)?
Are you trying to flash it using Arduino IDE or via the STlink method?

If via Arduino, I found Arbers posts in this thread most helpful. Also the first USB TTL didn't work for me so I ordered one from another supplier on ebay. This is the one I used:

https://www.ebay.co.uk/itm/310931472288

If you're in the UK and really get stuck, I can send you a pre-programmed esp8266 wifi dev module
Porsche 986 powered by a Tesla large drive unit. Backwards. Build documented here and Instagram @tesla_porsche here.
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 3 times

Re: HOWTO: Flashing ESP8266

Post by joromy »

PatrcioEV-ATX wrote: Thu Apr 15, 2021 2:04 am I am a COMPLETE novice to what is required and would have just bought the kit with the wifi module programmed had I realized it needed it
2. Anyone willing to program one for me (for a fee of course!)?
You don't need to buy it together with a kit, Johannes are selling them programmed and ready, for less than a program fee :)
https://openinverter.org/shop/index.php ... duct_id=56
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
konstantin8818
Posts: 290
Joined: Sun Jan 19, 2020 2:33 pm
Location: Minsk, Belarus
Has thanked: 2 times
Been thanked: 8 times

Re: HOWTO: Flashing ESP8266

Post by konstantin8818 »

PatrcioEV-ATX wrote: Thu Apr 15, 2021 2:04 am 1. Anyone here willing to write a step by step, start to finish, "for idiots" version of how to get this module programmed to work with the GS4540h VCU (big ask, I know)?
I've released manual how to program ESP8266-12E via FTDI232. But it is in Russian=)
User avatar
PatrcioEV-ATX
Posts: 192
Joined: Sun Dec 13, 2020 5:25 pm
Location: Austin, TX, USA
Has thanked: 42 times
Been thanked: 66 times

Re: HOWTO: Flashing ESP8266

Post by PatrcioEV-ATX »

@ nkiernan - Austin, TX (ATX)
@boxster ev - I've tried both
@joromy - this would be great, but Johannes confirmed it doesn't work with Damien's GS450h VCU.
@konstantin8818 - спасибо но мой русский очень плохой

I've emailed EVBMW to see if he'll sell me a programmed wfi module.
1998 Ford ZX2 - DC EV conversion(sold) http://evalbum.com/2093
2012 Nissan Leaf (sold)
2016 Mercedes B250e (sold)
2023 Volvo C40

Current: 1964 Rambler Classic 660 w/ GS450h set up. 36kwh Tesla batteries from B250e.
https://www.instagram.com/rambler_660e/
User avatar
PatrcioEV-ATX
Posts: 192
Joined: Sun Dec 13, 2020 5:25 pm
Location: Austin, TX, USA
Has thanked: 42 times
Been thanked: 66 times

Re: HOWTO: Flashing ESP8266

Post by PatrcioEV-ATX »

No takers? I've not received any response from Damien either.
1998 Ford ZX2 - DC EV conversion(sold) http://evalbum.com/2093
2012 Nissan Leaf (sold)
2016 Mercedes B250e (sold)
2023 Volvo C40

Current: 1964 Rambler Classic 660 w/ GS450h set up. 36kwh Tesla batteries from B250e.
https://www.instagram.com/rambler_660e/
Berdi
Posts: 18
Joined: Fri Jul 19, 2019 11:42 am
Location: Georgia

Re: HOWTO: Flashing ESP8266

Post by Berdi »

Я выпустил руководство по программированию ESP8266-12E через FTDI232. Но это по русски =)
I've released manual how to program ESP8266-12E via FTDI232. But it is in Russian=)
[/quote]

Konstantin your video Excellent Manual !!! Thank you very much!!!
User avatar
PatrcioEV-ATX
Posts: 192
Joined: Sun Dec 13, 2020 5:25 pm
Location: Austin, TX, USA
Has thanked: 42 times
Been thanked: 66 times

Re: HOWTO: Flashing ESP8266

Post by PatrcioEV-ATX »

PatrcioEV-ATX wrote: Thu Apr 22, 2021 4:13 pm No takers? I've not received any response from Damien either.
Update, was never able to get the olimex module to work, but a neighbor was able to easily program a different ESP module. For anyone struggling (or just doesn't want to struggle!) with programming an ESP module for the Lexus GS450h project, Damien now sells pre-programmed modules:

https://www.evbmw.com/index.php/evbmw-w ... fi-progged

Well worth the money, imo.
1998 Ford ZX2 - DC EV conversion(sold) http://evalbum.com/2093
2012 Nissan Leaf (sold)
2016 Mercedes B250e (sold)
2023 Volvo C40

Current: 1964 Rambler Classic 660 w/ GS450h set up. 36kwh Tesla batteries from B250e.
https://www.instagram.com/rambler_660e/
User avatar
janosch
Posts: 323
Joined: Tue Jun 30, 2020 9:23 am
Location: London, UK
Has thanked: 89 times
Been thanked: 81 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by janosch »

Hello,

people seem to have had problems with programming these lately.
I took posts from arber, johu and others in this thread and put them in a wiki page. I hope it helps someone.

I also added a pre-compiled binary for the web-interface, so people should even be able to flash their Olimex without installing the arduino IDE.
Feel free to update the page and add to it.

https://openinverter.org/wiki/Olimex_MOD-WIFI-ESP8266
Screenshot from 2021-05-05 14-44-23.png
Attachments
FSBrowser.ino.modwifi.bin
(381.36 KiB) Downloaded 544 times
Peakon28
Posts: 26
Joined: Sun Dec 06, 2020 8:37 pm
Has thanked: 6 times
Been thanked: 1 time

Re: HOWTO: Flashing ESP8266

Post by Peakon28 »

I programmed a couple of modules including Olimex and Wemos D1 mini. I had an issue which turned out to be a cable. So I decided to make a video about it:
opelmanta
Posts: 10
Joined: Sun May 23, 2021 3:00 pm
Been thanked: 5 times

Re: HOWTO: Flashing ESP8266

Post by opelmanta »

Sorry to ask but flashes olimex successfully, uploaded data, can see ESP-03F92E wifi but unfortunately cannot connect to it. Managed to connect once but had an unidentified network so could not access 192.168.4.1. Any idea why?
Isaac96
Posts: 656
Joined: Sat Oct 05, 2019 6:50 pm
Location: Northern California, USA
Been thanked: 1 time
Contact:

Re: HOWTO: Flashing ESP8266

Post by Isaac96 »

I'm trying to make my own interface for Chademo controller (slightly modifying the GS450h interface).

I have some Wemos D1 clones (the sort which are all over ebay) which are not working well. I am able to write a sketch and get serial communication, but no webpages are showing up. I have the SPIFFS updater installed and have verified that it is seeing the right files.

These Wemos D1 boards have a ESP-12F module. I've selected "NodeMCU 1.0 (ESP-12E)" as that seems closest to the hardware.
Does anyone know if this is correct? I am continuing to try other options but I would much appreciate some assistance.
Thanks!
-Isaac
Isaac96
Posts: 656
Joined: Sat Oct 05, 2019 6:50 pm
Location: Northern California, USA
Been thanked: 1 time
Contact:

Re: HOWTO: Flashing ESP8266

Post by Isaac96 »

Never mind, I got it! Selected "Generic ESP8266", 4mb flash, and 26mhz flash. Upload succeeded and I can see the page now.
Time for modification now. Yay.
User avatar
muehlpower
Posts: 637
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 117 times

Re: HOWTO: Flashing ESP8266

Post by muehlpower »

I tried to flash a MOD-WIFI-ESP8266 all day. I read the whole tread and the wiki and watched the video from Peakon28. The problem is always the same. I can transfer the sketch and upload the SPIFs. When I then scan for WiFi with the PC, I only find the preset ESP-XX.XX.XX, no inverter. I use the method described by arber333 and Peakon28. My messages look like those from Peakon28 and VIN
okashira
Posts: 17
Joined: Sun Sep 08, 2019 8:45 pm
Been thanked: 1 time

Re: HOWTO: Flashing ESP8266

Post by okashira »

Same problem. I followed instruction to a T. Flashing goes fine in arduino IDE. After I solder back the GPIO0, the only wifi network to show up is ESP-XXXXX.
I'm getting sick of soldering this jumper over and over.
okashira
Posts: 17
Joined: Sun Sep 08, 2019 8:45 pm
Been thanked: 1 time

Re: HOWTO: Flashing ESP8266

Post by okashira »

Isaac96 wrote: Mon Jun 14, 2021 6:15 am Never mind, I got it! Selected "Generic ESP8266", 4mb flash, and 26mhz flash. Upload succeeded and I can see the page now.
Time for modification now. Yay.
I don't think this did it. I also tried to use Generic ESP8266 with your settings. I get the same ESP_03F77D network. Is there anything else you changed?
I am using the standard Olimex MOD-WIFI-ESP8266.
Isaac96
Posts: 656
Joined: Sat Oct 05, 2019 6:50 pm
Location: Northern California, USA
Been thanked: 1 time
Contact:

Re: HOWTO: Flashing ESP8266

Post by Isaac96 »

I'm using Wemos D1 chips, not sure if there are differences.
When you flash, choose "Erase Flash: Sketch + Wifi Settings" -- that may or may not help.
pilt
Posts: 15
Joined: Tue Jul 14, 2020 9:03 pm
Been thanked: 4 times

Re: HOWTO: Flashing ESP8266

Post by pilt »

Hi okashira and muehlpower,

I am also trying to flash Olimex MOD-WIFI-ESP8266, but have the same problem as you.

I changed some of the code and now I can connect to the module. My change to be able to connect was to change line 420 from WiFi.begin(); to WiFi.softAP("inverter","inverter123"); and line 416 to WiFi.mode(WIFI_AP)

It also seems the file system does not always load when you use the sketch data upload in the arduino software. I had to try about 4 times to get the SPIFFS data on the ESP. It always shows transfer is ok, but no files exisit on the device!

Also handy hint for everyone, you do not need to solder the jumpers on the Olimex board! If you hold the button when you connect the USB of the FTDI chip it to the PC you can flash it with no soldering:)
JockE28
Posts: 38
Joined: Tue Sep 15, 2020 4:05 pm
Has thanked: 8 times
Been thanked: 1 time

Re: HOWTO: Flashing ESP8266

Post by JockE28 »

Image

Have 5 of these laying around. Anyone managed to get these working?
User avatar
Bigpie
Posts: 1711
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 77 times
Been thanked: 372 times

Re: HOWTO: Flashing ESP8266

Post by Bigpie »

They don't have enough storage space to fit the web interface files on
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
blasaab
Posts: 8
Joined: Sat Nov 20, 2021 6:17 am

Re: HOWTO: Flashing ESP8266

Post by blasaab »

JockE28 wrote: Thu Oct 28, 2021 10:48 am Image

Have 5 of these laying around. Anyone managed to get these working?
I think i made it today with that chip
Attachments
Screenshot_20211206-205753.png
Ampchamp
Posts: 10
Joined: Tue Jan 15, 2019 1:53 pm
Location: Karlsruhe, Germany

Re: HOWTO: Flashing ESP8266

Post by Ampchamp »

@pilt: How do you check, if there is sketch data uploaded on the ESP?
You wrote, that sometimes (or often) no files exist on the device.
I wonder, how I could check this; is there a possibility to dump the complete memory to check the content?

I have a similar problem as many here: I use a ESP-01 (as shown in the picture of JockE28) and from my understanding, they do have enough memory.
All the files (including the src directory) only have app. 250kB

First I upload the data directory using "sketch data upload" and message is "transfer ok".
After that I upload "FSBRowser.ino" using the arrow button from the toolbar. Also here everything seems to work.

Then, I can find the ESP in Wifi but couldn't get access to 194.168.4.1
Seems as if the module isn't responding.

Thx, Fabian.
Ampchamp
Posts: 10
Joined: Tue Jan 15, 2019 1:53 pm
Location: Karlsruhe, Germany

Re: HOWTO: Flashing ESP8266

Post by Ampchamp »

Hello all!

Update: I managed to get my ESP work. 8-)
It wasn't a problem with the ESP but with my cellphone...

After hours of different flashing trials and without any connection to my cellphone, I finally tried to connect with my laptop.
Result: Tadah! Site was loaded and after connecting to my inverter board also the gauges and the logging worked.
I havent't tried the update function yet, but I'm very confident, that also these will work.

Conclusion: In the end, it wasn't so difficult to get the ESP programmed.
And I can confirm, that ESP-01 or ESP-01S have enough memory for the code (was doubted before).

What is still open: I do not know, why the site isn't loaded with my cellphone.
Has someone an idea? What IP-address should the connection have and what the gateway? (192.168.4.10 and 192.168.4.1 didn't work)

And second: How can I dump the complete memory of the ESP module with Arduino IDE?

CU, Fabian.
User avatar
EV_Builder
Posts: 1200
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 17 times
Been thanked: 35 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by EV_Builder »

Maybe the cell phone keeps 3G/4G/5G open because no internet is found on the network of the ESP device. So an option like (auto choose) etc. should be disabled maybe in the phone.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
chentron
Posts: 106
Joined: Mon Feb 22, 2021 3:25 pm
Location: Spain
Has thanked: 42 times
Been thanked: 5 times

Re: HOWTO: Flashing ESP8266

Post by chentron »

I got flash my weimos with the instruction in the first page from Arber (thank you Arber) , but only after I rename in my linux the folder to data (not Data).
now waiting for the hardware to fix my olimex bricked when trying to update to bootloader 4.
Post Reply