what am I doing wrong ??? ESP32 flashing
- uhi22
- Posts: 646
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 93 times
- Been thanked: 426 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
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: 646
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 93 times
- Been thanked: 426 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
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: 646
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 93 times
- Been thanked: 426 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
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
Re: what am I doing wrong ??? ESP32 flashing
I think the esp32, just stop there, unfortunately I don't know why
- uhi22
- Posts: 646
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 93 times
- Been thanked: 426 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
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: 5831
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1045 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: 5831
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1045 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
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: 5831
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1045 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: 220
- Joined: Sun Feb 20, 2022 4:23 am
- Location: N. Wiltshire. UK
- Has thanked: 17 times
- Been thanked: 108 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.
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