what am I doing wrong ??? ESP32 flashing
-
- Posts: 875
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 535 times
- Been thanked: 52 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
One Day later, I managed to retsore the Web interface back with the Red Warning message
When I am in Auto Reload Mode, the connection between ESP & computer keeps dropping out and reloading.
What am I missing?
When I am in Auto Reload Mode, the connection between ESP & computer keeps dropping out and reloading.
What am I missing?
- manny
- Posts: 114
- Joined: Sun Jan 23, 2022 4:15 pm
- Location: Netherlands
- Has thanked: 27 times
- Been thanked: 81 times
Re: what am I doing wrong ??? ESP32 flashing
Maybe a power supply problem for the dropping out?
if you are using different hardware? are the uart pin mapped / coded to the right ones?
if you are using different hardware? are the uart pin mapped / coded to the right ones?
Citroen Saxo electrique [first drive]
- Volvo ERAD motor, XC90 inverter/DCDC (custom OI board)
- PSA battery (50kWh)
- Foccci and MG ZS charger 6.6kW
- Zombie VCU
-
- Posts: 875
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 535 times
- Been thanked: 52 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
For the moment, I am using the output USB port of my computer for power directly to my ESP32S3 USB C programme port.
I have Pins 16 and 17 as TX & RX. For the moment I am not even connected to my Adapter Board.
I can Upload/Delete files through the update Buttons, so I started uplaoding all the DATA files again. For now, I still keep getting the USB message of device not recognised each time the UI refreshes. The files seem to replace the previous ones that were initially downloaded, and adds them at the bottom of the list- don't know if that really helps.
If I try to upload a firmware (foc.bin), the UI says Download Complete, but is frozen in this state.
Edit - I also noticed he ESP is not connecting to my WIfI Network, I have to connect manually. Don't know if this helps iether.
I have Pins 16 and 17 as TX & RX. For the moment I am not even connected to my Adapter Board.
I can Upload/Delete files through the update Buttons, so I started uplaoding all the DATA files again. For now, I still keep getting the USB message of device not recognised each time the UI refreshes. The files seem to replace the previous ones that were initially downloaded, and adds them at the bottom of the list- don't know if that really helps.
If I try to upload a firmware (foc.bin), the UI says Download Complete, but is frozen in this state.
Edit - I also noticed he ESP is not connecting to my WIfI Network, I have to connect manually. Don't know if this helps iether.
- uhi22
- Posts: 1101
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 199 times
- Been thanked: 607 times
Re: what am I doing wrong ??? ESP32 flashing
Really a pity. Some ESP are more crappy then others, maybe you can try whether an other one feels better. Power supply may be one issue. They need a lot of current for WiFi, and if the capacitors are too small they run into strange effects. Maybe add some 100n ceramic Cs and 100uF elcap.
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
-
- Posts: 875
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 535 times
- Been thanked: 52 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
What is strange is that the first time I managed to download the data files, there was no drop out each time the UI reloaded parameters. Looking at the Files Tab, there doesn't seem to be "other" files stored on the board.
- johu
- Site Admin
- Posts: 6674
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 359 times
- Been thanked: 1517 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
Powering the module from USB can work if USB provides stable voltage. The message you quote seems to indicate it is not. So power it with a lab supply. Which module are we talking about anyway (picture)?
Also I much recommend staying on the well trotten path of platformio. With that set up all you need is
Of course I recommend using Linux as Windows makes the platformio/python part even harder. Can be a simple USB media live linux distro
Also I much recommend staying on the well trotten path of platformio. With that set up all you need is
Code: Select all
pio run --target upload
pio run --target uploadfs
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 875
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 535 times
- Been thanked: 52 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
I tried python & commands through windows , but that is also not an easy beginner setup.
I connected the Esp32 to the 3.3v pins for the original ESP8266 on prius adapter board. The connection does not reboot doing it this way, however I still get the Red warning message.
I have tried to connect the TX\RX (pins 16 &17l on the ESP32 to the TX|RX (pins 2 & 4) on ESP8266 breakout on the adapter board, but no difference.
I'm thinking of going the hardwire way, but that again is another deep dive plunging down rabbit holes scénario.....
Frustration, because I feel I'm close to solving this issue, and would like to document so we have a concise up to date solution that can go into the wiki.
- uhi22
- Posts: 1101
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 199 times
- Been thanked: 607 times
Re: what am I doing wrong ??? ESP32 flashing
I had some frustrating experiences with such jumper wires and in the meanwhile I'm back to soldering. Sure with good quality connectors there is no issue, but the cheap jumpers which I got were best placed into the trash bin.
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
- johu
- Site Admin
- Posts: 6674
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 359 times
- Been thanked: 1517 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
Same here.
Also at this point I want to stress that reflashing never actually solves a problem. If you have a working device once it will not change afterwards. Most people who think they solved a problem by reflashing also changed something else along with this.
If something works intermittently electrical issues like poor wiring or power supply are key culprit
Also at this point I want to stress that reflashing never actually solves a problem. If you have a working device once it will not change afterwards. Most people who think they solved a problem by reflashing also changed something else along with this.
If something works intermittently electrical issues like poor wiring or power supply are key culprit
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 875
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 535 times
- Been thanked: 52 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
The jumpers are soldered into the board, but I could replace them if there's a doubt.
My issue at the moment is around connection between Esp & STM.
If there is doubt about the ESP board, is there a "simple" way to say put the web interface on my arduino due and connect that to my adapter board?
My issue at the moment is around connection between Esp & STM.
If there is doubt about the ESP board, is there a "simple" way to say put the web interface on my arduino due and connect that to my adapter board?
- Bigpie
- Posts: 1765
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 81 times
- Been thanked: 421 times
Re: what am I doing wrong ??? ESP32 flashing
The soldering on the waveshare board pins doesn't look great. Id start there. GP16 and GP17 you can see around the pins
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
FOCCCI CCS
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
FOCCCI CCS
-
- Posts: 875
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 535 times
- Been thanked: 52 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
Oh well. I went to unsolder and replace the wires with proper automotive pins. Looks like I cooked one of the pinouts on the board! The 3.3V. I'll just bin it for all the time spent. Will order a new one 
-
- Posts: 875
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 535 times
- Been thanked: 52 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
I went over the pins again, as it was really bugging me. There seems to have been goo splashes, and the circuit board looks to not be damaged. So replaced all 4 wires with proper automotive cables and pins. Connected up with the same Esp-Stm coms message. Could the fact that the adapter board has a very old firmware as apposed to the Esp be causing adaptability issues?
- manny
- Posts: 114
- Joined: Sun Jan 23, 2022 4:15 pm
- Location: Netherlands
- Has thanked: 27 times
- Been thanked: 81 times
Re: what am I doing wrong ??? ESP32 flashing
are you sure that the uart is on pins 16 and 17 ?
Citroen Saxo electrique [first drive]
- Volvo ERAD motor, XC90 inverter/DCDC (custom OI board)
- PSA battery (50kWh)
- Foccci and MG ZS charger 6.6kW
- Zombie VCU
- Bigpie
- Posts: 1765
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 81 times
- Been thanked: 421 times
Re: what am I doing wrong ??? ESP32 flashing
Code: Select all
#define INVERTER_RX 3
#define INVERTER_TX 1
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
FOCCCI CCS
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
FOCCCI CCS
-
- Posts: 875
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 535 times
- Been thanked: 52 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
This is where I took info.
"Hardware
The web interface has been initially designed to run on ESP32-WROOM-32E boards.
The connection to the inverter are on Pin16 (Rx line connect to inverter Tx line) and Pin17 (Tx line connect to inverter Rx line)."
So I will go and check if Esp32S3 dev are the same pinouts
"Hardware
The web interface has been initially designed to run on ESP32-WROOM-32E boards.
The connection to the inverter are on Pin16 (Rx line connect to inverter Tx line) and Pin17 (Tx line connect to inverter Rx line)."
So I will go and check if Esp32S3 dev are the same pinouts
- manny
- Posts: 114
- Joined: Sun Jan 23, 2022 4:15 pm
- Location: Netherlands
- Has thanked: 27 times
- Been thanked: 81 times
Re: what am I doing wrong ??? ESP32 flashing
The pins were changed to 1 and 3.
https://github.com/jsphuebner/esp32-web ... b11195abb7
Probably to line up with the Voltlog CanLite hardware.
https://github.com/voltlog/CanLite/blob ... e-revD.pdf
Your board does not have a pin 3. So probably be easier to change the code to pins 16 and 17.
https://github.com/jsphuebner/esp32-web ... b11195abb7
Probably to line up with the Voltlog CanLite hardware.
https://github.com/voltlog/CanLite/blob ... e-revD.pdf
Your board does not have a pin 3. So probably be easier to change the code to pins 16 and 17.
Citroen Saxo electrique [first drive]
- Volvo ERAD motor, XC90 inverter/DCDC (custom OI board)
- PSA battery (50kWh)
- Foccci and MG ZS charger 6.6kW
- Zombie VCU
-
- Posts: 875
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 535 times
- Been thanked: 52 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
Thanks for the reply. I'll check that out and report back.
-
- Posts: 875
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 535 times
- Been thanked: 52 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
Thankyou @Bigpie & @manny for the final pointers ! Pins 16&17 are moved to 1&3, and on different boards.
This highlights again the need for up to date links & info "for dummies like myself". I'll put these findings with links into the wiki as it ties up with other threads.
This highlights again the need for up to date links & info "for dummies like myself". I'll put these findings with links into the wiki as it ties up with other threads.
-
- Posts: 875
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 535 times
- Been thanked: 52 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
As promised - a link for the WIKI for this setup - Waveshare ESP32S3 Pico (without SD Card option) using Arduino
1. go to https://github.com/jsphuebner/esp32-web ... n_notes.md
Folow instructions to download the Web Interface files and open .ino file in Arduino.
2. go to https://github.com/palmerr23/ESP32-OTA-and-File-Manager
3. Download the Code in Zip format
4. Unzip and create new folder ESP32_OTA_FILESYS
5. Open the ESP32_OTA_FILESYS.ino in Arduino
6. Follow instructions, with exactly the same settings as noted.
7. Verify in Arduino that the sketch is OK
8. Put wifi credentials in the code where I have put ****
//#define MYWIFI // allow credentials to be stored in a file
#ifdef MYWIFI
#include "mywifi.h"
#else
const char* ssid = "******";
const char* password = "******";
#endif
9. On esp32S3 - Press and hold the BOOT button down. Press ONCE the RESET button. Release BOOT button
10. Upload Sketch in Arduino
11. Diconnect ESP32 and reconnect (to enter Normal mode)
12. ESP visible in WiFi, but the ESP doesn't connect to wifi (which is 2.4 Ghz)?
13. Go back to http://esp32ota.local/ and follow instructions to format FS as per instructions in Point 1.
I4. Go back to .\esp32-webinterface\esp32-web-interface\data and download ALL 30 files via the OTA
15. Go Back to Arduino & Upload the ESP32-without-SD_card-functions.txt ( which is esp32-web-interface-uart-backend MODIFIED)
EDIT - MODIFY CODE FOR RX &TX PINS TO 16 & 17 !!
16. Reset ESP32S3
17. Connect ESP32S3 Pins to Initial Connector for ESP8266 on Adapter board: NOTE - Pinouts are inversed when looking at Adapter Board
1: 3.3v on ESP32 to Pin 1
2: Ground on ESP32 to Pin 2
3: GPIO 16 on ESP32 to Pin 3
4: GPIO☺7 on ESP32 to PIN 4
18. Apply 12v to adapter board & User Interface should be visible.
1. go to https://github.com/jsphuebner/esp32-web ... n_notes.md
Folow instructions to download the Web Interface files and open .ino file in Arduino.
2. go to https://github.com/palmerr23/ESP32-OTA-and-File-Manager
3. Download the Code in Zip format
4. Unzip and create new folder ESP32_OTA_FILESYS
5. Open the ESP32_OTA_FILESYS.ino in Arduino
6. Follow instructions, with exactly the same settings as noted.
7. Verify in Arduino that the sketch is OK
8. Put wifi credentials in the code where I have put ****
//#define MYWIFI // allow credentials to be stored in a file
#ifdef MYWIFI
#include "mywifi.h"
#else
const char* ssid = "******";
const char* password = "******";
#endif
9. On esp32S3 - Press and hold the BOOT button down. Press ONCE the RESET button. Release BOOT button
10. Upload Sketch in Arduino
11. Diconnect ESP32 and reconnect (to enter Normal mode)
12. ESP visible in WiFi, but the ESP doesn't connect to wifi (which is 2.4 Ghz)?
13. Go back to http://esp32ota.local/ and follow instructions to format FS as per instructions in Point 1.
I4. Go back to .\esp32-webinterface\esp32-web-interface\data and download ALL 30 files via the OTA
15. Go Back to Arduino & Upload the ESP32-without-SD_card-functions.txt ( which is esp32-web-interface-uart-backend MODIFIED)
EDIT - MODIFY CODE FOR RX &TX PINS TO 16 & 17 !!
16. Reset ESP32S3
17. Connect ESP32S3 Pins to Initial Connector for ESP8266 on Adapter board: NOTE - Pinouts are inversed when looking at Adapter Board
1: 3.3v on ESP32 to Pin 1
2: Ground on ESP32 to Pin 2
3: GPIO 16 on ESP32 to Pin 3
4: GPIO☺7 on ESP32 to PIN 4
18. Apply 12v to adapter board & User Interface should be visible.
- Attachments
-
- ESP32-without-SD_card-functions.txt
- Change RX & TX pins in code to 16 & 17
- (16.67 KiB) Downloaded 16 times