HOWTO: Flashing ESP8266
Re: HOWTO: Flashing ESP8266
Most forums are the same its usually the same dozen people talking in code which is hard for the outsider to get in.
Always reminds me of IKEA , you know what you want, you cant really find it, you just hope you'll bump into a store rep that day to guide you
Always reminds me of IKEA , you know what you want, you cant really find it, you just hope you'll bump into a store rep that day to guide you
- jason_arnold
- Posts: 21
- Joined: Wed Sep 11, 2019 4:42 pm
- Location: Canada
- Has thanked: 1 time
- Been thanked: 2 times
Re: HOWTO: Flashing ESP8266
Dima, I'd like to have a go at running your latest variant of the web interface, but the mklittlefs tool your PS script calls is no longer available, so I'm unable to compile my own .bin for the file system - any chance you have one ready to share?
Re: HOWTO: Flashing ESP8266
@dima I flashed your most recent update, have a solid green light afterwards and no inverter SSID, something I did wrong?
Re: HOWTO: Flashing ESP8266
Disregard. Using precompiled .bin didn't work as anticipated, but building with Arduino from the sketch worked.
Re: HOWTO: Flashing ESP8266
Maybe I spoke too soon. It worked, but now I get a "not compressed" message. I've tried running the script again and selecting "compress javascript -y" when prompted. Anyone have this happen as well?
Re: HOWTO: Flashing ESP8266
SO weird.. It'll work for a short period, let me click around the interface briefly, then restart and 404 all pages but update. I can upload the littlefs once again and it'll do the same, attempt to work then says uncompressed and redirects to update.. Maybe I just have a bad Olimex? Anyone that's been through these things before, would certainly appreciate your input.
- qmedia2651
- Posts: 56
- Joined: Tue Oct 06, 2020 4:13 am
- Location: Orlando Florida, USA
Re: HOWTO: Flashing ESP8266
you can us a Wimos D1 Mini I've been working on a shield for the LDU to use the Wimos instead of the Olimex. I have the gerber files and PCB file for Fritz. It Works waiting for my parts to populate my board. Working on my 1991 Mercedes 300CE EV Conversion with a Tesla LDU. All Nissan Leaf battery pack fits in the front, this car came with a M104 6cyl cast iron engine about 900 lbs. Less than the battery pack.
[img]
[img]
- bexander
- Posts: 835
- Joined: Tue Jun 16, 2020 6:00 pm
- Location: Gothenburg, Sweden
- Has thanked: 63 times
- Been thanked: 89 times
Re: HOWTO: Flashing ESP8266
To get it to work using Arduino IDE, I had to do first a "normal" upload (Sketch -> Upload) and then sketch data upload (Tools -> ESP8266 Sketch Data Upload).
Re: HOWTO: Flashing ESP8266
Hi all,
I think I've managed to flash to ESP8266 however I'm unable to see it when searching for an SSID, Should the SSID be broadcasting automatically after the flashing process? should I be able to to access the ESP Wifi Web page prior to connecting to the Inverter controller?
I think I've managed to flash to ESP8266 however I'm unable to see it when searching for an SSID, Should the SSID be broadcasting automatically after the flashing process? should I be able to to access the ESP Wifi Web page prior to connecting to the Inverter controller?
- johu
- Site Admin
- Posts: 5789
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 157 times
- Been thanked: 1023 times
- Contact:
Re: HOWTO: Flashing ESP8266
The default SSID is ESP_XXXX (where XXXX is part of the MAC address). If thats not showing something went wrong with the flash process.
No, you can't access anything before connecting
No, you can't access anything before connecting
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Re: HOWTO: Flashing ESP8266
Hi Johannes, Thanks for getting back to me on this, and great work with all of this by the way. Are you saying that, after the upload, if i just apply 3.3v to the MOD-WIFI-ESP8266, I should have a broadcasting ESP_XXXX SSID? Thanks again
Re: HOWTO: Flashing ESP8266
I've managed to get it working. After flashing the successfully which should look like the log below, GPIO0 MUST be soldered back to 1 in order to see an active SSID to broadcast a WIFI AP.
This is the logs after successful flash from MAC Os
[SPIFFS] data : /Users/ladmin/Documents/Arduino/FSBrowser/data
[SPIFFS] size : 1000
[SPIFFS] page : 256
[SPIFFS] block : 8192
/wifi-updated.html
/gauges.html
/ajax-loader.gif
/index.html
/inverter.js
/remote.html
/chart.min.js.gz
/syncofs.html
/gauge.min.js.gz
/log.js
/index.js
/jquery.core.min.js.gz
/README.md
/chartjs-annotation.min.js.gz
/wifi.html
/log.html
/style.css
/gauges.js
/jquery.knob.min.js.gz
/refresh.png
[SPIFFS] upload : /var/folders/pf/g5203ncd4r17pkc3gm4tzk7r0000gn/T/arduino_build_495601/FSBrowser.spiffs.bin
[SPIFFS] address : 0x100000
[SPIFFS] reset : --before no_reset --after soft_reset
[SPIFFS] port : /dev/cu.usbserial-A50285BI
[SPIFFS] speed : 115200
[SPIFFS] python : /Users/ladmin/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3
[SPIFFS] uploader : /Users/ladmin/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/upload.py
esptool.py v2.8
Serial port /dev/cu.usbserial-XXXXXXX
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: xx:xx:xx:xx:xx:xx
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 2MB
Compressed 1024000 bytes to 118444...
Wrote 1024000 bytes (118444 compressed) at 0x00100000 in 10.5 seconds (effective 783.4 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: HOWTO: Flashing ESP8266
How did you solve this one? I'm getting it. I've got a Bluepill with STM32-car on there, it responds ok to requests for 'json' using a usb-ttl but when I connect up the Wemos D1 and hit the index.html I get an error. '/cmd?cmd=json' givesjnsaff 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��)
Code: Select all
j��)
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Re: HOWTO: Flashing ESP8266
This tell you wrong TTL speed. Check speed with 'http://192.168.4.1/baud'
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: HOWTO: Flashing ESP8266
'http://192.168.4.1/baud' just shows
fastUart off
Bluepill has
and ESP8266
fastUart off
Bluepill has
Code: Select all
#define USART_BAUDRATE 115200
usart_set_baudrate(TERM_USART, USART_BAUDRATE);
Code: Select all
void setup(void){
Serial.begin(115200);
Serial.setTimeout(100);
SPIFFS.begin();
.
.
.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Re: HOWTO: Flashing ESP8266
Strange, sounds like inverter has 'fastuart' but ESP does not know about it.
You can always set ESP8266:
And try again, maybe Blue-Pill cannot operate at 921600
You can always set ESP8266:
Code: Select all
bool fastUartAvailable = false;
- bexander
- Posts: 835
- Joined: Tue Jun 16, 2020 6:00 pm
- Location: Gothenburg, Sweden
- Has thanked: 63 times
- Been thanked: 89 times
Re: HOWTO: Flashing ESP8266
I have got a Blue-Pill and Olimex WiFi-module to work together so should not be a limitation in the Blue-Pill or the firmaware.
- Bigpie
- Posts: 1595
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 304 times
Re: HOWTO: Flashing ESP8266
Apparently there's a lot of fake chips on these bluepills. https://www.cnx-software.com/2020/03/22 ... m32-fakes/
I think it's safe to say I have a fake.
I think it's safe to say I have a fake.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Re: HOWTO: Flashing ESP8266
i've managed to flash the module, re solder GPIO0 and it all works.vin wrote: ↑Wed Oct 28, 2020 12:00 am Hi all,
I think I've managed to flash to ESP8266 however I'm unable to see it when searching for an SSID, Should the SSID be broadcasting automatically after the flashing process? should I be able to to access the ESP Wifi Web page prior to connecting to the Inverter controller?
Re: HOWTO: Flashing ESP8266
Hi All
I am trying to flush ESP8266 but getting error when I am trying to compile Arduino code.
Arduino: 1.8.13 (Windows 10), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (2M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"
In file included from C:\FSBrowser\FSBrowser.ino:69:0:
sketch\src/arm_debug.h:130:49: error: 'StreamString' has not been declared
void hexDump(uint32_t addr, unsigned count, StreamString &data);
^
C:\FSBrowser\FSBrowser.ino: In lambda function:
FSBrowser:624:46: error: no matching function for call to 'ARMDebug::hexDump(uint32_t&, uint32_t&, StreamString&)'
swd.hexDump(addrNext, addrCount, data);
^
C:\FSBrowser\FSBrowser.ino:624:46: note: candidate is:
In file included from C:\FSBrowser\FSBrowser.ino:69:0:
sketch\src/arm_debug.h:130:10: note: void ARMDebug::hexDump(uint32_t, unsigned int, int&)
void hexDump(uint32_t addr, unsigned count, StreamString &data);
^
sketch\src/arm_debug.h:130:10: note: no known conversion for argument 3 from 'StreamString' to 'int&'
exit status 1
no matching function for call to 'ARMDebug::hexDump(uint32_t&, uint32_t&, StreamString&)'
I am trying to flush ESP8266 but getting error when I am trying to compile Arduino code.
Arduino: 1.8.13 (Windows 10), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (2M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"
In file included from C:\FSBrowser\FSBrowser.ino:69:0:
sketch\src/arm_debug.h:130:49: error: 'StreamString' has not been declared
void hexDump(uint32_t addr, unsigned count, StreamString &data);
^
C:\FSBrowser\FSBrowser.ino: In lambda function:
FSBrowser:624:46: error: no matching function for call to 'ARMDebug::hexDump(uint32_t&, uint32_t&, StreamString&)'
swd.hexDump(addrNext, addrCount, data);
^
C:\FSBrowser\FSBrowser.ino:624:46: note: candidate is:
In file included from C:\FSBrowser\FSBrowser.ino:69:0:
sketch\src/arm_debug.h:130:10: note: void ARMDebug::hexDump(uint32_t, unsigned int, int&)
void hexDump(uint32_t addr, unsigned count, StreamString &data);
^
sketch\src/arm_debug.h:130:10: note: no known conversion for argument 3 from 'StreamString' to 'int&'
exit status 1
no matching function for call to 'ARMDebug::hexDump(uint32_t&, uint32_t&, StreamString&)'
Subscribe on YouTube: https://www.youtube.com/user/peakon28
Re: HOWTO: Flashing ESP8266
This is new revision with SWD mod
"src" folder must be inside C:\FSBrowser\
"sketch"? Do you have other .ino files open? Only "FSBrowser.ino" should be open, close others.
"src" folder must be inside C:\FSBrowser\
"sketch"? Do you have other .ino files open? Only "FSBrowser.ino" should be open, close others.
Re: HOWTO: Flashing ESP8266
Yes I have src folder inside FSBrowser, actually tried both- inside FSBrowser and in Data folder
Subscribe on YouTube: https://www.youtube.com/user/peakon28
Re: HOWTO: Flashing ESP8266
I have updated esp8266 board package up to version 2.7.4 and sketch compiled correctly and I managed to upload sketch to Olimex board and program SPIFFS.
next test it on the board
next test it on the board
Subscribe on YouTube: https://www.youtube.com/user/peakon28
- TheSilverBuick
- Posts: 187
- Joined: Mon Jun 08, 2020 5:01 pm
- Location: Nevada, United States
- Has thanked: 3 times
- Been thanked: 1 time
Re: HOWTO: Flashing ESP8266
Hmm, nice! I've been struggling with a python error of some kind. Been trying to trouble shoot it myself for the last two or so weeks, but have not gotten anywhere. Maybe tonight I'll post up the error. It acts like it cannot find the COM, but its set right and the green data communication light on the Olimex chip lights up when its attempting the flash.
Need to learn. Starting from the basics.
Re: HOWTO: Flashing ESP8266
Post your error if it is similar to what I have experienced I will let you know how I solved it.
Subscribe on YouTube: https://www.youtube.com/user/peakon28