Page 2 of 3

Re: what am I doing wrong ??? ESP32 flashing

Posted: Tue Feb 27, 2024 10:55 am
by uhi22
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
image.png

Re: what am I doing wrong ??? ESP32 flashing

Posted: Tue Feb 27, 2024 11:02 am
by medo
there is nothing in it
Screenshot (230).png

Re: what am I doing wrong ??? ESP32 flashing

Posted: Wed Feb 28, 2024 1:37 am
by medo
if i make e full clean and erase flash, and then i make a build, then it looks like this
Screenshot (250).png
If I build again, it will look like this
Screenshot (251).png
then the upload works
Screenshot (252).png
then upload the filesystem
Screenshot (253).png
on the Serialmonitor looks like this
Screenshot (254).png
but still no wifi :(

Re: what am I doing wrong ??? ESP32 flashing

Posted: Wed Feb 28, 2024 7:40 am
by uhi22
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:
image.png

Re: what am I doing wrong ??? ESP32 flashing

Posted: Wed Feb 28, 2024 11:09 am
by medo
It looks like sd_mmc is causing problems
Screenshot (255).png
I've now commented out that part, but it just doesn't continue
Screenshot (256).png

Re: what am I doing wrong ??? ESP32 flashing

Posted: Wed Feb 28, 2024 11:22 am
by uhi22
Nobody needs this, just delete the SD card things completely :-)
(Johu will beat me for this sentence ;-) )

Re: what am I doing wrong ??? ESP32 flashing

Posted: Wed Feb 28, 2024 11:29 am
by medo
I was also wondering why an SD in a controller board, but I think the firmware should be universally applicable

Re: what am I doing wrong ??? ESP32 flashing

Posted: Wed Feb 28, 2024 12:25 pm
by medo
I think the esp32, just stop there, unfortunately I don't know why

Re: what am I doing wrong ??? ESP32 flashing

Posted: Thu Feb 29, 2024 7:53 am
by uhi22
Maybe the SD card driver is not happy with something. Just remove everything related to SD card from the code and try again.

Re: what am I doing wrong ??? ESP32 flashing

Posted: Thu Feb 29, 2024 1:05 pm
by medo
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

Re: what am I doing wrong ??? ESP32 flashing

Posted: Thu Feb 29, 2024 1:06 pm
by johu
Will check later if the correct uarts are selected.

Re: what am I doing wrong ??? ESP32 flashing

Posted: Thu Feb 29, 2024 7:50 pm
by johu
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....

Re: what am I doing wrong ??? ESP32 flashing

Posted: Thu Feb 29, 2024 8:09 pm
by medo
Unfortunately I don't know how to do that, I don't know enough about Arduino

Re: what am I doing wrong ??? ESP32 flashing

Posted: Thu Feb 29, 2024 9:13 pm
by johu
medo wrote: Thu Feb 29, 2024 8:09 pm Unfortunately I don't know how to do that, I don't know enough about Arduino
medo wrote: Thu Feb 29, 2024 1:05 pm 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
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

Re: what am I doing wrong ??? ESP32 flashing

Posted: Thu Feb 29, 2024 9:32 pm
by medo
I did that, but no data comes from the controller

Re: what am I doing wrong ??? ESP32 flashing

Posted: Thu Feb 29, 2024 10:16 pm
by royhen99
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.

Re: what am I doing wrong ??? ESP32 flashing

Posted: Thu Feb 29, 2024 10:29 pm
by medo
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

Re: what am I doing wrong ??? ESP32 flashing

Posted: Sun Nov 24, 2024 3:09 pm
by JonasErnst
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

Re: what am I doing wrong ??? ESP32 flashing

Posted: Mon Nov 25, 2024 3:26 pm
by johu
Did you leave the programming jumper on?

Re: what am I doing wrong ??? ESP32 flashing

Posted: Mon Nov 25, 2024 7:47 pm
by JonasErnst
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

Re: what am I doing wrong ??? ESP32 flashing

Posted: Mon Nov 25, 2024 8:35 pm
by johu
The last step is to remove the jumper, otherwise it will keep booting into the loader

Re: what am I doing wrong ??? ESP32 flashing

Posted: Sat Apr 26, 2025 3:45 pm
by RetroZero
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.

Re: what am I doing wrong ??? ESP32 flashing

Posted: Sun Apr 27, 2025 4:52 am
by johu
Flash file system!

Re: what am I doing wrong ??? ESP32 flashing

Posted: Wed Apr 30, 2025 5:25 pm
by RetroZero
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.
Capture d’écran (3).png
Capture d’écran (2).png

Re: what am I doing wrong ??? ESP32 flashing

Posted: Thu May 01, 2025 5:21 pm
by RetroZero
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?