what am I doing wrong ??? ESP32 flashing
- uhi22
- Posts: 1115
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 204 times
- Been thanked: 609 times
Re: what am I doing wrong ??? ESP32 flashing
This is the part of the console output which shows the download of the software. This looks good, but more interesting would be to see what comes afterwards. In https://github.com/jsphuebner/esp32-web ... n_notes.md I noted
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
-
- Posts: 168
- Joined: Thu Dec 07, 2023 9:32 pm
- Location: Kosova
- Has thanked: 18 times
- Been thanked: 3 times
Re: what am I doing wrong ??? ESP32 flashing
if i make e full clean and erase flash, and then i make a build, then it looks like this
then upload the filesystem on the Serialmonitor looks like this but still no wifi
If I build again, it will look like this
then the upload worksthen upload the filesystem on the Serialmonitor looks like this but still no wifi

- uhi22
- Posts: 1115
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 204 times
- Been thanked: 609 times
Re: what am I doing wrong ??? ESP32 flashing
Strange. You could add some further instrumentation in the code, to find out where it stops. Go to the setup() function, and find the DBG_OUTPUT_PORT.println("No RTC found, defaulting to sequential file names");
This still works, we see the output in the console.
Add below this further lines like
DBG_OUTPUT_PORT.println("step 1"); Serial.flush();
The Serial.flush makes sure that the serial data is really transmitted, before the next step is done. Example:
This still works, we see the output in the console.
Add below this further lines like
DBG_OUTPUT_PORT.println("step 1"); Serial.flush();
The Serial.flush makes sure that the serial data is really transmitted, before the next step is done. Example:
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
-
- Posts: 168
- Joined: Thu Dec 07, 2023 9:32 pm
- Location: Kosova
- Has thanked: 18 times
- Been thanked: 3 times
Re: what am I doing wrong ??? ESP32 flashing
It looks like sd_mmc is causing problems
I've now commented out that part, but it just doesn't continue- uhi22
- Posts: 1115
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 204 times
- Been thanked: 609 times
Re: what am I doing wrong ??? ESP32 flashing
Nobody needs this, just delete the SD card things completely 
(Johu will beat me for this sentence
)

(Johu will beat me for this sentence

Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
-
- Posts: 168
- Joined: Thu Dec 07, 2023 9:32 pm
- Location: Kosova
- Has thanked: 18 times
- Been thanked: 3 times
Re: what am I doing wrong ??? ESP32 flashing
I was also wondering why an SD in a controller board, but I think the firmware should be universally applicable
-
- Posts: 168
- Joined: Thu Dec 07, 2023 9:32 pm
- Location: Kosova
- Has thanked: 18 times
- Been thanked: 3 times
Re: what am I doing wrong ??? ESP32 flashing
I think the esp32, just stop there, unfortunately I don't know why
- uhi22
- Posts: 1115
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 204 times
- Been thanked: 609 times
Re: what am I doing wrong ??? ESP32 flashing
Maybe the SD card driver is not happy with something. Just remove everything related to SD card from the code and try again.
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
-
- Posts: 168
- Joined: Thu Dec 07, 2023 9:32 pm
- Location: Kosova
- Has thanked: 18 times
- Been thanked: 3 times
Re: what am I doing wrong ??? ESP32 flashing
I have removed everything related to SD card, now i have wifi and can open the web interface,
but now I don't have any values, probably deleted too much in the code, unfortunately I'm not familiar with it
but now I don't have any values, probably deleted too much in the code, unfortunately I'm not familiar with it
- johu
- Site Admin
- Posts: 6711
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 368 times
- Been thanked: 1541 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
Will check later if the correct uarts are selected.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- johu
- Site Admin
- Posts: 6711
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 368 times
- Been thanked: 1541 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
sigh...
the uart-backend branch was outdated. Now it has the correct UARTs specified. Please pull again and then remove the SD card code again....
the uart-backend branch was outdated. Now it has the correct UARTs specified. Please pull again and then remove the SD card code again....
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 168
- Joined: Thu Dec 07, 2023 9:32 pm
- Location: Kosova
- Has thanked: 18 times
- Been thanked: 3 times
Re: what am I doing wrong ??? ESP32 flashing
Unfortunately I don't know how to do that, I don't know enough about Arduino
- johu
- Site Admin
- Posts: 6711
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 368 times
- Been thanked: 1541 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
You did it before but can't do it again?
Download esp32-web-interface.ino here https://github.com/jsphuebner/esp32-web-interface and replace the one you used before. Remove the SD-card code as you did before
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 261
- Joined: Sun Feb 20, 2022 4:23 am
- Location: N. Wiltshire. UK
- Has thanked: 22 times
- Been thanked: 130 times
Re: what am I doing wrong ??? ESP32 flashing
It might be the mismatch in stop bits between the stm32 terminal and the ESP32. I've only used the ESP8266 with uart but had to modify the stop bits to 2 for the initial 115200 baud rate.
-
- Posts: 168
- Joined: Thu Dec 07, 2023 9:32 pm
- Location: Kosova
- Has thanked: 18 times
- Been thanked: 3 times
Re: what am I doing wrong ??? ESP32 flashing
I think there is still an bug in it, if I install the stm32 firmware, then I no longer have WiFi, if I delete the firmware again, WiFi is available again immediately
OK, I changed that
uart_config_t uart_config = {
.stop_bits = UART_STOP_BITS_2,
and that
uart_read_bytes(INVERTER_PORT, &c, 2, UART_TIMEOUT);
works and values are displayed, and changes are also applied, but when I switch it off and switch it on again, then no wifi again, until you have deleted the st32 firmware, then wifi is back immediately
OK, I changed that
uart_config_t uart_config = {
.stop_bits = UART_STOP_BITS_2,
and that
uart_read_bytes(INVERTER_PORT, &c, 2, UART_TIMEOUT);
works and values are displayed, and changes are also applied, but when I switch it off and switch it on again, then no wifi again, until you have deleted the st32 firmware, then wifi is back immediately
-
- Posts: 14
- Joined: Wed Oct 23, 2024 11:37 am
- Has thanked: 1 time
Re: what am I doing wrong ??? ESP32 flashing
Hey guys, I do also have problems with the ESP32 both on the SDU Board an the ESP32 CanLite Board. I can flash the ESP without problems but after the reboot there is no WIFI network. I tried everything i found online but without success
UPDATE: I got it working but I cant really figure out why. After flashing the ESP32 with the Arduino Tool I am able to connect to the Wifi network, now I only need to find out why it was not possible with platformio
UPDATE: I got it working but I cant really figure out why. After flashing the ESP32 with the Arduino Tool I am able to connect to the Wifi network, now I only need to find out why it was not possible with platformio
- johu
- Site Admin
- Posts: 6711
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 368 times
- Been thanked: 1541 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
Did you leave the programming jumper on?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 14
- Joined: Wed Oct 23, 2024 11:37 am
- Has thanked: 1 time
Re: what am I doing wrong ??? ESP32 flashing
Yes i did leave the programming jumper on. Flashing succeded with both tools, but only after the flash with the arduino software i am able to see the wifi network. I followed this guide regarding the platformio:
https://github.com/jsphuebner/Tesla-Fro ... ll/1/files
https://github.com/jsphuebner/Tesla-Fro ... ll/1/files
- johu
- Site Admin
- Posts: 6711
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 368 times
- Been thanked: 1541 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
The last step is to remove the jumper, otherwise it will keep booting into the loader
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 877
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 546 times
- Been thanked: 53 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
Sorry people. I gave up on my ESP8266 and went to a ESP32S3 pico. I have managed to upload the code from https://github.com/jsphuebner/esp32-web-interface.git
Using Arduino IDE, I uploaded it (with and without removing all SD card functions).
I can connect to the ESP board, but no parameters come up.
I have tried connecting it to my Prius Gen2 Boards, but it's identicle.
I have searched all over the place, but cannot get any further.
Thanks in advance for pointers.
Using Arduino IDE, I uploaded it (with and without removing all SD card functions).
I can connect to the ESP board, but no parameters come up.
I have tried connecting it to my Prius Gen2 Boards, but it's identicle.
I have searched all over the place, but cannot get any further.
Thanks in advance for pointers.
- Attachments
-
- ESP32-without-SD_card-functions.txt
- (16.67 KiB) Downloaded 818 times
- johu
- Site Admin
- Posts: 6711
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 368 times
- Been thanked: 1541 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
Flash file system!
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 877
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 546 times
- Been thanked: 53 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
Thanks Johu.
1. went to https://github.com/jsphuebner/esp32-web ... n_notes.md
2. I went to https://github.com/palmerr23/ESP32-OTA-and-File-Manager
3. I downloaded the Code in Zip format
4. Unzip and created new folder ESP32_OTA_FILESYS
5. I openned the ESP32_OTA_FILESYS.ino in Arduino
6. Following your instructions, I made sure I had exactly the same settings as you 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
IS THIS CORRECT??????
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. I now see the ESP and can connect to it, but the ESP doesn't connect to my wifi (which is 2.4 Ghz)
13. I then went to http://esp32ota.local/ and followed instructions to format FS - That worked as per instructions.
I4. Went back to .\esp32-webinterface\esp32-web-interface\data and downloaded ALL 30 files via the OTA
15. Went Back to Arduino & Uploaded the ESP32-without-SD_card-functions.txt ( which is esp32-web-interface-uart-backend MODIFIED)
16.I found the ESP again over WiFi and connected to it - The User Interface comes up, but no Spot Values ( that's OK because I haven't connected to my Adapter Board yet)
17. I try to put in my WiFi credentials ( it knows the SSID), but the Password is Blank. I put in my Password and ENTER
I go back to Main Page - Still no Spot Values
18. I notice NO Firmware is uploaded at the Bottom of Main Page, so I followed instructions "A shorter way to change files is, to use in http://inverter.local/ the "Files" tab in the left menu".
I see the ESP32_sine file in the FILES section of the Interface, but on Main Page it still doesn't show firmware version....
19. I attempt to Update the Firmware from the Main Page Menu - It says the Upload is Complete - with the Orange Bar, but it never changes status.
I tried by carrying out the "ESP32 BOOT & RESET" and then not- no difference.
20. I connected the ESP32 to my Adapter board , swapping the TX/RX each time, but no difference.
NOTE: There is a permanent message "Communication problem between ESP & STM"
I feel like Iam missing a fundamental element....and hope to use this post in the future to document the process in the Wiki...so any pointers are appreciated.
1. went to https://github.com/jsphuebner/esp32-web ... n_notes.md
2. I went to https://github.com/palmerr23/ESP32-OTA-and-File-Manager
3. I downloaded the Code in Zip format
4. Unzip and created new folder ESP32_OTA_FILESYS
5. I openned the ESP32_OTA_FILESYS.ino in Arduino
6. Following your instructions, I made sure I had exactly the same settings as you 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
IS THIS CORRECT??????
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. I now see the ESP and can connect to it, but the ESP doesn't connect to my wifi (which is 2.4 Ghz)
13. I then went to http://esp32ota.local/ and followed instructions to format FS - That worked as per instructions.
I4. Went back to .\esp32-webinterface\esp32-web-interface\data and downloaded ALL 30 files via the OTA
15. Went Back to Arduino & Uploaded the ESP32-without-SD_card-functions.txt ( which is esp32-web-interface-uart-backend MODIFIED)
16.I found the ESP again over WiFi and connected to it - The User Interface comes up, but no Spot Values ( that's OK because I haven't connected to my Adapter Board yet)
17. I try to put in my WiFi credentials ( it knows the SSID), but the Password is Blank. I put in my Password and ENTER
I go back to Main Page - Still no Spot Values
18. I notice NO Firmware is uploaded at the Bottom of Main Page, so I followed instructions "A shorter way to change files is, to use in http://inverter.local/ the "Files" tab in the left menu".
I see the ESP32_sine file in the FILES section of the Interface, but on Main Page it still doesn't show firmware version....
19. I attempt to Update the Firmware from the Main Page Menu - It says the Upload is Complete - with the Orange Bar, but it never changes status.
I tried by carrying out the "ESP32 BOOT & RESET" and then not- no difference.
20. I connected the ESP32 to my Adapter board , swapping the TX/RX each time, but no difference.
NOTE: There is a permanent message "Communication problem between ESP & STM"
I feel like Iam missing a fundamental element....and hope to use this post in the future to document the process in the Wiki...so any pointers are appreciated.
-
- Posts: 877
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 546 times
- Been thanked: 53 times
- Contact:
Re: what am I doing wrong ??? ESP32 flashing
I was so happy getting this far.....and then - after swapping TX/RX, rebooting, Uploading files via Web-Interface, and I can't remember what else, I decided to go back and load the OTA-FILESYS.
Now I have no more ESP module visible.
Restarted Arduino & computer - no difference.
I suppose an erase of all files via Arduino would be my next step?
Now I have no more ESP module visible.
Restarted Arduino & computer - no difference.
I suppose an erase of all files via Arduino would be my next step?