OTA does not work on AI Thinker ESP32-CAM board
OTA does not work on AI Thinker ESP32-CAM board
Hi,
I am new in this Forum an hope to find someone who runs successfully OTA on AI Thinker ESP32-CAM board.
My code should not be wrong: I use "BasicOTA" of the examples in Arduino-IDE.
With that code OTA works perfect on "WEMOS Lolin 32" board.
But NOT on "AI Thinker ESP32-CAM" board.
Compiling via Arduino-IDE ist ok, but upload gives error "sending invitation to ..."
Obviously the board does not answer via WiFi (but does via serial port).
Cannot be a problem of my WLAN, because WEMOS works.
Anyone with an idea?
I am new in this Forum an hope to find someone who runs successfully OTA on AI Thinker ESP32-CAM board.
My code should not be wrong: I use "BasicOTA" of the examples in Arduino-IDE.
With that code OTA works perfect on "WEMOS Lolin 32" board.
But NOT on "AI Thinker ESP32-CAM" board.
Compiling via Arduino-IDE ist ok, but upload gives error "sending invitation to ..."
Obviously the board does not answer via WiFi (but does via serial port).
Cannot be a problem of my WLAN, because WEMOS works.
Anyone with an idea?
Re: OTA does not work on AI Thinker ESP32-CAM board
I have the same problem. Already searched like crazy on the internet for a solution. But till now , no solution ...
I would be very thankful if someone has found a solution for this.
I would be very thankful if someone has found a solution for this.
Re: OTA does not work on AI Thinker ESP32-CAM board
It seems to be that the problem is not the board itself but the WiFi-component that is soldered to the board:
The "Espressif ESP32-WROOM-32" works fine with OTA, while the "ESP32-S AI-Thinker" does NOT.
Does anybody know about a difference between the 2 components?
The OTA upload is not interrupted by an error, it does NOT start, while compilation is ok.
The "Espressif ESP32-WROOM-32" works fine with OTA, while the "ESP32-S AI-Thinker" does NOT.
Does anybody know about a difference between the 2 components?
The OTA upload is not interrupted by an error, it does NOT start, while compilation is ok.
Re: OTA does not work on AI Thinker ESP32-CAM board
I got the normal "ArduinoOTA / BasicOTA" to work with a Ai Thinker ESP32-CAM module.
Instead of selecting "Ai Thinker ESP32-CAM module" under Tools/Board in the Arduino IDE i selected Nano32.
I had to edit the "boards.txt" and add the line "nano32.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue" to the definition for nano32 to get full functionallity.
Instead of selecting "Ai Thinker ESP32-CAM module" under Tools/Board in the Arduino IDE i selected Nano32.
I had to edit the "boards.txt" and add the line "nano32.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue" to the definition for nano32 to get full functionallity.
Re: OTA does not work on AI Thinker ESP32-CAM board
Thank You, Erkiman!
I did exactly what You proposed and now BasicOTA works perfect on Ai Thinker ESP32-CAM board !
Because I always like to understand what I´m doing: could You explain that new line in "boards.txt" or give a link to the source of that information?
I did exactly what You proposed and now BasicOTA works perfect on Ai Thinker ESP32-CAM board !
Because I always like to understand what I´m doing: could You explain that new line in "boards.txt" or give a link to the source of that information?
Re: OTA does not work on AI Thinker ESP32-CAM board
I had the same problem with OTA on ESP32 Cam, only the error was abort () was called at PC 0x4013fb01 on core 1sailaway pos wrote:Wed Mar 25, 2020 2:45 pmBecause I always like to understand what I´m doing: could You explain that new line in "boards.txt" or give a link to the source of that information?
I found out that for this board there is only one partition for firmware 3MB size .But for OTA you need at least two partition.
It is better not to change configs board.txt,you can change the partition scheme from the Tools > of Arduino IDE.
Board: "ESP32 Dev Module" ,
Partition Scheme: "Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)"
And you need to put PSRAM: "Enabled" ( that's what it is defines -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue)
Re: OTA does not work on AI Thinker ESP32-CAM board
I have used OTA on an esp32cam board but found that for it to work I have to select "ESP32 dev module" instead of "AI Thinker ESP32-Cam" in the Arduino IDE.
also make sure "Partition Scheme" is set to "default 4mb with spiffs" and PSRam is enabled.
also make sure "Partition Scheme" is set to "default 4mb with spiffs" and PSRam is enabled.
Re: OTA does not work on AI Thinker ESP32-CAM board
I am having an issue here as well. I have several of these boards and somehow got one of them to work using the suggestion above (ESP32 DevModule board with the recommended settings). Here is the strange thing: Other boards that I have previously used with the standard ESP32-CAM upload do not work with this. You can flash them fine, but whenever the board tries to read a file from the SPIFFS it crashes.
Upon flashing the board back to the original ESP32-CAM board, the files are able to be read again. Also, I can upload with the ESP32 Dev module with the same HugeApp No OTA settings and it will work fine (but no OTA).
This tells me there is some strange association with the way the files were originally written to the partition. Flashing the board does not overwrite the partition scheme. I am wondering if there is any type of way i can completely wipe this board and start from scratch so the disk is just as it would be from the factory?
Putting the serial monitor in debug mode I can see the SPIFFS mount fine. I can reproduce this by using any test sketch that calls SPIFFS which I know 100% work - so its not code related.
Upon flashing the board back to the original ESP32-CAM board, the files are able to be read again. Also, I can upload with the ESP32 Dev module with the same HugeApp No OTA settings and it will work fine (but no OTA).
This tells me there is some strange association with the way the files were originally written to the partition. Flashing the board does not overwrite the partition scheme. I am wondering if there is any type of way i can completely wipe this board and start from scratch so the disk is just as it would be from the factory?
Putting the serial monitor in debug mode I can see the SPIFFS mount fine. I can reproduce this by using any test sketch that calls SPIFFS which I know 100% work - so its not code related.
Re: OTA does not work on AI Thinker ESP32-CAM board
I was able to fix my own issue. I simply formatted the board by using the esptool tool like so:
esptool.py erase_flash
I was then presented with a clean disk, was able to upload my sketch using the method described above, and have OTA + SPIFFS.
esptool.py erase_flash
I was then presented with a clean disk, was able to upload my sketch using the method described above, and have OTA + SPIFFS.
-
- Posts: 1
- Joined: Thu Mar 11, 2021 6:03 pm
Re: OTA does not work on AI Thinker ESP32-CAM board
In "boards.txt" "esp32cam.build.partitions=huge_app" -> "esp32cam.build.partitions=default"
Who is online
Users browsing this forum: Majestic-12 [Bot] and 52 guests