HOWTO: Flashing ESP8266

Discussion about various user interfaces such as web interface, displays and apps
User avatar
james@N52E01
Posts: 144
Joined: Wed Sep 18, 2019 7:02 am
Has thanked: 2 times
Been thanked: 3 times

Re: HOWTO: Flashing ESP8266

Post by james@N52E01 »

Dima and Arber I tried as you both suggested but still no luck unfortunately. Just to confirm, I am not using the -DEV board, it is the MOD-WIFI-ESP8266 with the UEXT header like your picture on the original post.
MOD-WIFI-ESP8266.png
MOD-WIFI-ESP8266.png (33.59 KiB) Viewed 6473 times

With these settings you posted above and an FTDI board connected as you originally posted, have you or Arber successfully managed to flash one of these boards with the latest Arduino IDE and esptool.py v2.6?
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: HOWTO: Flashing ESP8266

Post by dima »

james@N52E01 wrote: Sat Mar 07, 2020 5:06 pm With these settings you posted above and an FTDI board connected as you originally posted, have you or Arber successfully managed to flash one of these boards with the latest Arduino IDE and esptool.py v2.6?
Yes all the time. Only difference not using expensive FTDI (You will need USB to TTL not RS232 Serial) Prolific2303 or CH340 work. (-DEV) is in brackets IDE builds for both.
olimex-ide-dev.png
User avatar
jnsaff
Posts: 176
Joined: Fri Oct 18, 2019 7:42 am
Location: Tallinn, Estonia
Has thanked: 2 times
Been thanked: 8 times

Re: HOWTO: Flashing ESP8266

Post by jnsaff »

I'm having a similar problem as well. I got the ESP8266 from Johannes so it should be fine. Then programmed the bootloader and stm32_sine.hex red led is on and green is blinking on the blue pill.

No parameters are showing but when I try to Display Error Memory I get:

Code: Select all

Unknown command sequence
e��K�
Unknown command sequence
Custom command 'json' gets

Code: Select all

Unknown command sequence
j��)
So it seems that they are communicating as from the forum search this error is something that the stm32_sine sends back. But TX may be messed up somehow? I believe my Blue Pills may be quite dodgy .. so would want to put the black pill on there instead but the pin labels are not exactly the same. Any ideas? Much appreciated!
User avatar
jnsaff
Posts: 176
Joined: Fri Oct 18, 2019 7:42 am
Location: Tallinn, Estonia
Has thanked: 2 times
Been thanked: 8 times

Re: HOWTO: Flashing ESP8266

Post by jnsaff »

I flashed another esp8266 with Dima's interface and no luck on either Blue Pill nor fully tested GS450h-VCU. On both I get the error: ' SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data:'.
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: HOWTO: Flashing ESP8266

Post by dima »

jnsaff wrote: Tue Mar 17, 2020 10:13 pm I flashed another esp8266 with Dima's interface and no luck on either Blue Pill nor fully tested GS450h-VCU. On both I get the error: ' SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data:'.
GS450h-VCU will not work with Johannes or my web-interface. You will need to flash this https://github.com/jamiejones85/ESP8266-WiFi-Interface. Blue-Pill was not tested by me.
jnsaff wrote: Mon Mar 16, 2020 9:20 pm No parameters are showing but when I try to Display Error Memory I get:

Code: Select all

Unknown command sequence
e��K�
Unknown command sequence
Custom command 'json' gets

Code: Select all

Unknown command sequence
j��)
This means wrong serial speed! 15200 is what you want.
slow67
Posts: 151
Joined: Thu Jan 30, 2020 6:52 pm
Location: Texas
Been thanked: 1 time

Re: HOWTO: Flashing ESP8266

Post by slow67 »

FYI if the sketch and the SPIFFS will all fit on a 1MB chip (like Damien's interface for the GS450h) I was able to use the super cheap ESP-01. You don't have to solder pins, just connect 2 extra pins while flashing. It made it easy practice (especially when you are modding code like me) before having to move the solder around.
pm_dawn
Posts: 36
Joined: Mon Jan 07, 2019 7:19 am
Location: Östersund/Sweden
Contact:

Re: HOWTO: Flashing ESP8266

Post by pm_dawn »

slow67 wrote: Wed Mar 25, 2020 5:37 am FYI if the sketch and the SPIFFS will all fit on a 1MB chip (like Damien's interface for the GS450h) I was able to use the super cheap ESP-01. You don't have to solder pins, just connect 2 extra pins while flashing. It made it easy practice (especially when you are modding code like me) before having to move the solder around.
How did you get the sketch and the spiffs to fit on the esp-01.
What did you change to get it to work ?

I have a esp-01 here that I try to use.

Regards
/Per
User avatar
ZooKeeper
Posts: 507
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA

Re: HOWTO: Flashing ESP8266

Post by ZooKeeper »

post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
pm_dawn
Posts: 36
Joined: Mon Jan 07, 2019 7:19 am
Location: Östersund/Sweden
Contact:

Re: HOWTO: Flashing ESP8266

Post by pm_dawn »

I followed this post:
viewtopic.php?p=5048#p5048

But for step 6 I choose the "Generic ESP8266 module"

That worked for me.

I used FTDI Cable with RTS connected. That worked perfect.

But you need to keep the enable pin high all the time.
And when flashing pull the GPIO0 low

Regards
/Per
User avatar
ZooKeeper
Posts: 507
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA

Re: HOWTO: Flashing ESP8266

Post by ZooKeeper »

post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
pm_dawn
Posts: 36
Joined: Mon Jan 07, 2019 7:19 am
Location: Östersund/Sweden
Contact:

Re: HOWTO: Flashing ESP8266

Post by pm_dawn »

Hi ZK!

I'm using win10. It worked fine.

I created a FSBrower dierctory.

extracted Johannes FSBrowser project

In the FSBrowser dir I created a Data directory.

Moved all files except the FSBrowser.ino file into

Then opened the the .ino file.

First uploaded the sketch.

Waited for the a couple of seconds after reset of ESP

Then uploaded the Spiffs.

Then removed the flash pulldown.

That worked for me.
User avatar
ZooKeeper
Posts: 507
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA

Re: HOWTO: Flashing ESP8266

Post by ZooKeeper »

post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
User avatar
ZooKeeper
Posts: 507
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA

Re: HOWTO: Flashing ESP8266

Post by ZooKeeper »

post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: HOWTO: Flashing ESP8266

Post by dima »

It sounds like your "Data" folder is empty, Johannes web interface folder structure does not reflect what is needed for Arduino IDE - ESP8266 SPIFFS Uploader.

make C:/FSB <-copy only FSBrowser.ino
make C:/FSB/Data <- Copy all files except FSBrowser.ino
User avatar
ZooKeeper
Posts: 507
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA

Re: HOWTO: Flashing ESP8266

Post by ZooKeeper »

post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: HOWTO: Flashing ESP8266

Post by dima »

ZooKeeper wrote: Tue Apr 28, 2020 8:02 pm Yup, thanks!! Olimex on the way so I have enough memory, apparently the ESP-01 does not :(
You can try removing not essential files from /Data folder.

Code: Select all

gauge.min.js.gz
gauges.html
gauges.js
User avatar
jnsaff
Posts: 176
Joined: Fri Oct 18, 2019 7:42 am
Location: Tallinn, Estonia
Has thanked: 2 times
Been thanked: 8 times

Re: HOWTO: Flashing ESP8266

Post by jnsaff »

So I solved this issue by soldering a new board and making sure I get a blue pill with a genuine STM32. Which of them was the actual culprit I don't know, but now I have the parameters in the web interface and everything works out of the box.

I know for sure that the first Blue Pills came with clone stm32 chips. I also can't rule out dodgy soldering first time round.

jnsaff wrote: Mon Mar 16, 2020 9:20 pm I'm having a similar problem as well. I got the ESP8266 from Johannes so it should be fine. Then programmed the bootloader and stm32_sine.hex red led is on and green is blinking on the blue pill.

No parameters are showing but when I try to Display Error Memory I get:

Code: Select all

Unknown command sequence
e��K�
Unknown command sequence
Custom command 'json' gets

Code: Select all

Unknown command sequence
j��)
So it seems that they are communicating as from the forum search this error is something that the stm32_sine sends back. But TX may be messed up somehow? I believe my Blue Pills may be quite dodgy .. so would want to put the black pill on there instead but the pin labels are not exactly the same. Any ideas? Much appreciated!
User avatar
ZooKeeper
Posts: 507
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA

Re: HOWTO: Flashing ESP8266

Post by ZooKeeper »

post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
User avatar
ZooKeeper
Posts: 507
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA

Re: HOWTO: Flashing ESP8266

Post by ZooKeeper »

post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
User avatar
ZooKeeper
Posts: 507
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA

Re: HOWTO: Flashing ESP8266

Post by ZooKeeper »

post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
User avatar
SciroccoEV
Posts: 369
Joined: Thu Oct 10, 2019 1:50 pm
Location: Luton UK
Been thanked: 15 times

Re: HOWTO: Flashing ESP8266

Post by SciroccoEV »

Have you clicked on refresh?
MattsAwesomeStuff
Posts: 921
Joined: Fri Apr 26, 2019 5:40 pm
Has thanked: 318 times
Been thanked: 194 times

Re: HOWTO: Flashing ESP8266

Post by MattsAwesomeStuff »

Are any of the LEDs on the blue pill blinking, or are they on solidly?
User avatar
ZooKeeper
Posts: 507
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA

Re: HOWTO: Flashing ESP8266

Post by ZooKeeper »

post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
MattsAwesomeStuff
Posts: 921
Joined: Fri Apr 26, 2019 5:40 pm
Has thanked: 318 times
Been thanked: 194 times

Re: HOWTO: Flashing ESP8266

Post by MattsAwesomeStuff »

ZooKeeper wrote: Sun May 03, 2020 10:34 pmBluePill & Olimex have solid red LEDs
...

I bet you made the same mistake I did. There is supposed to be a blinking LED if you flash the firmware successfully.

Did you flash the bootloader file before you flashed the SINE or FOC file?

See my failures (and the previous forum page), if that's true:

viewtopic.php?p=5760#p5760
User avatar
ZooKeeper
Posts: 507
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA

Re: HOWTO: Flashing ESP8266

Post by ZooKeeper »

post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
Post Reply