what am I doing wrong ??? ESP32 flashing

Discussion about various user interfaces such as web interface, displays and apps
User avatar
uhi22
Posts: 601
Joined: Mon Mar 14, 2022 3:20 pm
Location: Ingolstadt/Germany
Has thanked: 91 times
Been thanked: 412 times

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

Post 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
User avatar
medo
Posts: 31
Joined: Thu Dec 07, 2023 9:32 pm
Location: Germany
Has thanked: 1 time

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

Post by medo »

there is nothing in it
Screenshot (230).png
User avatar
medo
Posts: 31
Joined: Thu Dec 07, 2023 9:32 pm
Location: Germany
Has thanked: 1 time

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

Post 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 :(
User avatar
uhi22
Posts: 601
Joined: Mon Mar 14, 2022 3:20 pm
Location: Ingolstadt/Germany
Has thanked: 91 times
Been thanked: 412 times

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

Post 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
User avatar
medo
Posts: 31
Joined: Thu Dec 07, 2023 9:32 pm
Location: Germany
Has thanked: 1 time

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

Post 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
User avatar
uhi22
Posts: 601
Joined: Mon Mar 14, 2022 3:20 pm
Location: Ingolstadt/Germany
Has thanked: 91 times
Been thanked: 412 times

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

Post by uhi22 »

Nobody needs this, just delete the SD card things completely :-)
(Johu will beat me for this sentence ;-) )
User avatar
medo
Posts: 31
Joined: Thu Dec 07, 2023 9:32 pm
Location: Germany
Has thanked: 1 time

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

Post by medo »

I was also wondering why an SD in a controller board, but I think the firmware should be universally applicable
User avatar
medo
Posts: 31
Joined: Thu Dec 07, 2023 9:32 pm
Location: Germany
Has thanked: 1 time

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

Post by medo »

I think the esp32, just stop there, unfortunately I don't know why
User avatar
uhi22
Posts: 601
Joined: Mon Mar 14, 2022 3:20 pm
Location: Ingolstadt/Germany
Has thanked: 91 times
Been thanked: 412 times

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

Post 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.
User avatar
medo
Posts: 31
Joined: Thu Dec 07, 2023 9:32 pm
Location: Germany
Has thanked: 1 time

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

Post 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
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1023 times
Contact:

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

Post by johu »

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
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1023 times
Contact:

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

Post 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....
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
medo
Posts: 31
Joined: Thu Dec 07, 2023 9:32 pm
Location: Germany
Has thanked: 1 time

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

Post by medo »

Unfortunately I don't know how to do that, I don't know enough about Arduino
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1023 times
Contact:

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

Post 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
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
medo
Posts: 31
Joined: Thu Dec 07, 2023 9:32 pm
Location: Germany
Has thanked: 1 time

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

Post by medo »

I did that, but no data comes from the controller
royhen99
Posts: 211
Joined: Sun Feb 20, 2022 4:23 am
Location: N. Wiltshire. UK
Has thanked: 16 times
Been thanked: 101 times

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

Post 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.
User avatar
medo
Posts: 31
Joined: Thu Dec 07, 2023 9:32 pm
Location: Germany
Has thanked: 1 time

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

Post 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
Post Reply