HOWTO: Flashing ESP8266
Re: HOWTO: Flashing ESP8266
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.
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.
Re: HOWTO: Flashing ESP8266
post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
Re: HOWTO: Flashing ESP8266
post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
Re: HOWTO: Flashing ESP8266
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
make C:/FSB <-copy only FSBrowser.ino
make C:/FSB/Data <- Copy all files except FSBrowser.ino
Re: HOWTO: Flashing ESP8266
post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
Re: HOWTO: Flashing ESP8266
You can try removing not essential files from /Data folder.
Code: Select all
gauge.min.js.gz
gauges.html
gauges.js
- 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
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.
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:Custom command 'json' getsCode: Select all
Unknown command sequence e��K� Unknown command sequence
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!Code: Select all
Unknown command sequence j��)
Re: HOWTO: Flashing ESP8266
post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
Re: HOWTO: Flashing ESP8266
post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
Re: HOWTO: Flashing ESP8266
post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
- SciroccoEV
- Posts: 369
- Joined: Thu Oct 10, 2019 1:50 pm
- Location: Luton UK
- Been thanked: 15 times
-
- Posts: 871
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 278 times
- Been thanked: 165 times
Re: HOWTO: Flashing ESP8266
post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
-
- Posts: 871
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 278 times
- Been thanked: 165 times
Re: HOWTO: Flashing ESP8266
...
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
Re: HOWTO: Flashing ESP8266
post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
-
- Posts: 871
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 278 times
- Been thanked: 165 times
Re: HOWTO: Flashing ESP8266
TX goes to RX.
RX goes to TX.
Maybe try rebooting them.
Other than that I'm coming up blank.
RX goes to TX.
Maybe try rebooting them.
Other than that I'm coming up blank.
-
- Posts: 656
- Joined: Sat Oct 05, 2019 6:50 pm
- Location: Northern California, USA
- Been thanked: 1 time
- Contact:
Re: HOWTO: Flashing ESP8266
How about serial link speed?
If you were to connect a USB/TTL converter then you could check the serial link speeds, and see if any data shows up. The STM32 sends "2D" upon powerup or reset, and if you send 'json' it should spit out lots of stuff. Newline character is required.
I believe my STM32 talks at 115200baud (although my ESP died rather randomly and exhibits similar symptoms) so that could be a good starting point.
I will need to work on a ESP for myself soon enough. Best of luck in the meantime!
-Isaac
If you were to connect a USB/TTL converter then you could check the serial link speeds, and see if any data shows up. The STM32 sends "2D" upon powerup or reset, and if you send 'json' it should spit out lots of stuff. Newline character is required.
I believe my STM32 talks at 115200baud (although my ESP died rather randomly and exhibits similar symptoms) so that could be a good starting point.
I will need to work on a ESP for myself soon enough. Best of luck in the meantime!
-Isaac
Re: HOWTO: Flashing ESP8266
post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
-
- Posts: 871
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 278 times
- Been thanked: 165 times
Re: HOWTO: Flashing ESP8266
Hmm, I'm not sure I'm much help past this point because I didn't use the Olimex board.
What's your procedure you're following, and where is it failing or not getting results?
What's your procedure you're following, and where is it failing or not getting results?
Re: HOWTO: Flashing ESP8266
I can suggest to "put on your programmer's hat on" and try to troubleshoot beyond ESP. Try to connect TX/RX directly into USB-TTL dongle (CH340/PL2303 ...of course with proper drivers installed). Open "putty" https://the.earth.li/~sgtatham/putty/la ... taller.msi and see if you can connect to Blue-Pill (selecting right COM and speed)
Re: HOWTO: Flashing ESP8266
post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
-
- Posts: 11
- Joined: Sat Sep 28, 2019 8:00 am
- Location: Devon, United Kingdom
Re: HOWTO: Flashing ESP8266
I have the same issue. Using Olimex Mod and Arduino IDE to flash. All seems to go ok but on the 192.168.4.1 page I get "file not found". What did you do to fix this?
-
- Posts: 871
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 278 times
- Been thanked: 165 times
Re: HOWTO: Flashing ESP8266
I have a feeling this is one of those things where the instructions either aren't being followed, or, aren't correct for the very first time someone sets something up.
Else, a procedure should work exactly the same for everyone.
David - What procedure are you following? Link to it so we can know exactly what you did.
Getting File not Found when you go to the IP doesn't tell us much troubleshooting-wise other than that there's nothing at that IP. This could be because you did literally nothing, or that you got 99% of the way.
It could be something as simple as, you're connected to the wifi in your home rather than connecting to the ESP8266. You haven't given us anything to help you with.
Else, a procedure should work exactly the same for everyone.
David - What procedure are you following? Link to it so we can know exactly what you did.
Getting File not Found when you go to the IP doesn't tell us much troubleshooting-wise other than that there's nothing at that IP. This could be because you did literally nothing, or that you got 99% of the way.
It could be something as simple as, you're connected to the wifi in your home rather than connecting to the ESP8266. You haven't given us anything to help you with.
-
- Posts: 11
- Joined: Sat Sep 28, 2019 8:00 am
- Location: Devon, United Kingdom
Re: HOWTO: Flashing ESP8266
Thanks for your reply Matt.
I have a Olimex Mod board and been trying to program with the Arduino IDE . I've got the boards loaded in the IDE. I've connected the board to USP-TTL as per instructions on page 1, moved solder bridge to 0.
Created folders with ino and data. as per arbers instructions on page 3.
If I open the ino file and with the correct board and port selected I can program the Olimex, everything appears ok. It gets to resetting the board and just sits there.
Then I've tried either waiting a while and trying the ESP data upload tool or manually resetting the board by powering it down and then trying. Either way it appears to load the SPIFF and gives completed messages.
I'll try again and take some screen shots.
I have a Olimex Mod board and been trying to program with the Arduino IDE . I've got the boards loaded in the IDE. I've connected the board to USP-TTL as per instructions on page 1, moved solder bridge to 0.
Created folders with ino and data. as per arbers instructions on page 3.
If I open the ino file and with the correct board and port selected I can program the Olimex, everything appears ok. It gets to resetting the board and just sits there.
Then I've tried either waiting a while and trying the ESP data upload tool or manually resetting the board by powering it down and then trying. Either way it appears to load the SPIFF and gives completed messages.
I'll try again and take some screen shots.
-
- Posts: 11
- Joined: Sat Sep 28, 2019 8:00 am
- Location: Devon, United Kingdom
Re: HOWTO: Flashing ESP8266
Sketch uses 356800 bytes (34%) of program storage space. Maximum is 1044464 bytes.
Global variables use 28496 bytes (34%) of dynamic memory, leaving 53424 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.6
2.6
esptool.py v2.6
Serial port COM11
Connecting....
Chip is ESP8266EX
Features: WiFi
MAC: 5c:cf:7f:8d:b8:d3
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 512000
Changed.
Configuring flash size...
Auto-detected Flash size: 2MB
Compressed 360960 bytes to 255263...
Writing at 0x00000000... (6 %)
Writing at 0x00004000... (12 %)
Writing at 0x00008000... (18 %)
Writing at 0x0000c000... (25 %)
Writing at 0x00010000... (31 %)
Writing at 0x00014000... (37 %)
Writing at 0x00018000... (43 %)
Writing at 0x0001c000... (50 %)
Writing at 0x00020000... (56 %)
Writing at 0x00024000... (62 %)
Writing at 0x00028000... (68 %)
Writing at 0x0002c000... (75 %)
Writing at 0x00030000... (81 %)
Writing at 0x00034000... (87 %)
Writing at 0x00038000... (93 %)
Writing at 0x0003c000... (100 %)
Wrote 360960 bytes (255263 compressed) at 0x00000000 in 5.4 seconds (effective 531.5 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
[SPIFFS] data : C:\FSB\FSBrowser\data
[SPIFFS] size : 1004
[SPIFFS] page : 256
[SPIFFS] block : 8192
/ajax-loader.gif
/chart.min.js.gz
/gauge.min.js.gz
/gauges.html
/gauges.js
/index.html
/index.js
/inverter.js
/log.html
/log.js
/README.md
/refresh.png
/style.css
/wifi-updated.html
/wifi.html
[SPIFFS] upload : C:\Users\David\AppData\Local\Temp\arduino_build_792348/FSBrowser.spiffs.bin
[SPIFFS] address : 0x100000
[SPIFFS] reset : ck
[SPIFFS] port : COM11
[SPIFFS] speed : 512000
[SPIFFS] python : python3.exe
[SPIFFS] uploader : C:\Users\David\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\tools\upload.py
Then on my phone I am changing to the ESP wifi and attempting to go to 192.168.1.4 and get "FileNotFound"