Notifications
Clear all

ESP32 Camera Compilation Error

9 Posts
2 Users
0 Reactions
87 Views
(@brianmcm)
Member
Joined: 2 months ago
Posts: 10
Topic starter  

Happy New Year from Sugar Land!! Need some guidance on an issue with the ESP32-CAM "CameraWebServer" sketch; saving it with a new name. When I try to compile the sketch after making the necessary changes to identify my WiFi network and the "A-Thinker ESP32-CAM" board, I get "Compilation error: exit status 1". Looking at the error message there are several references to "xtensa-esp32-elf/bin/ld.exe" followed by "DRAM segment data does not fit" or "IRAM0 segment data does not fit". See attached image;

Compilation Error

Hopfully you can see the image. 

I successfully compiled and loaded the "Antenna Test" sketch to test the signal strength of the board with an external antenna attached. 

I tried to compile and load the sketch onto a ESP32-CAM board that does not have an external antenna and get the same compilation error. I reloaded the sketch from the "Examples", went through the change process again. Unfortunately, same compilation error.

Any guidance on what is needed to correct what is going on would be greatly appreciated.

Thank you,

Brian


   
Quote
Topic Tags
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@brianmcm I was testing about a dozen esp32cam boards today so I know the sketch is ok. Can you post a picture of your board? At the moment my only guess is it's not a real AI THINKER but some sort of clone. I have had a bit of a rough day, heart issues but first thing tomorrow I will have a look at my compile (does this only happen on verify or only on upload?)

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@brianmcm)
Member
Joined: 2 months ago
Posts: 10
Topic starter  

@zander 

Thank you. The boards are Aideepen ESP32 Cam boards, from Amazon; one of which was modified to use external antenna. As mentioned, using AI Thinker board manager, I was able to compile and download the Antenna Test sketch and earlier today the CamWebServer sketch. Both worked as hoped. After experimenting with a couple of ESP-WROOM boards with different “sketches “, I went back to the CAM boards for some additional test; confirming I was using the AI-THINKER board manager. It was at that time it started giving the compilation error.

Hope this information is helpful.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@brianmcm Ok. I am confused what you mean by 'AI THINKER Board Manager' AI THINKER is the name of A board that is in the ESP32 boards.

Here are the Preferences 'Additional Boards Manager URLs' showing the official esp32 boards URL 

Screenshot 2025 01 21 at 22.30.21

 I have 7 entries in mine plus the builtin AVR family for a total of 8 board familes.

Next is the Boards Manager panel on the left of the IDE. I searched on esp32 and got 3 entries. One is for the Espressif boards we commonly call esp32 or esp32cam. That is the second entry and has several dozen boards. The first entry is actually an Arduino board recently released that uses Espressive parts on the board for WiFi and Bluetooth. It has only one entry if I recall correctly. There is a 3rd section for a specific family of esp32 boards by a 3rd company that I think is now obsolete because it's included in the espressif esp32 url.

Screenshot 2025 01 21 at 22.34.33

Here is a screen grab from the Tools/Board menu (I almost always use the new searchable boards selector now) 

Screenshot 2025 01 21 at 22.42.46
Screenshot 2025 01 21 at 22.44.23

So if you don't mind, could you rephrase your post in a way so I know what part of the 3 things to do with boards you are referring to.

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@brianmcm)
Member
Joined: 2 months ago
Posts: 10
Topic starter  

@zander 

Sorry for the confusion. Basically, earlier yesterday the CameraWebServer sketch was working on my ESP32CAM boards using the AI-Thinker ESP32-CAM board from the selection. Then, I switched to some experiments using another ESP32 module, selecting the associated board from the drop down list. When I went back to additional experiments with the CAM board, switching back to the AI-Thinker manager from the list, that is when I started getting the compilation errors.

However, this morning after booting up I checked "preferences" to confirm the boards manager URL.

IDE Preferences

Then using the drop list I selected AI-Thinker and confirmed the board was connected.

AI Thinker

 Interestingly, I was able to compile the CameraWebServer sketch, downloaded it to the CAM board. Success, video streaming achieved. 

So, now I'm scratching my head wondering what I did wrong yesterday. 

Thank you so much for your help!! Now, just need to dig out from the snow we have here in Sugar Land, TX; yes very rare occurrence, LOL!


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@brianmcm Glad to hear all is well, but there are a few things you should change in the prefs. But first, what do you mean by 

switching back to the AI-Thinker manager from the list, 

there is no such thing as AI-Thinker manager

Here is a snapshot of my prefs. I also use OneDrive, BUT ALL files are marked as always residing on my SSD. This is effectively real time (close to) back up of local copies.

There have been and maybe still are arduino issues surrounding onedrive. There are also occasional issues with the temporary files when the sketch is dirty. HOWEVER I do NOT use AutoSave since I want the option to go back to the previous version if needed.

You have the wrong esp32 URL, mine is the official url.

Your prefs should be the same as mine with possible differences in the small screen grab.

BTW, I live just a few miles/Kms from Santa (actually I am at 46 22 41) but way further north than you. Last winter we had so little snow the snowmobile trails never opened and on the bigger lakes the ice was not safe. This year is better, but snow on the ground is less than a foot, 3 ft is more common.

Screenshot 2025 01 22 at 11.07.59
Screenshot 2025 01 22 at 11.15.48

 

 

This post was modified 3 weeks ago by Ron

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@brianmcm)
Member
Joined: 2 months ago
Posts: 10
Topic starter  

@zander 

Thank you so much for your assistance. Regarding my reference to Boards Manager, I must be calling it wrong. The attached image is what I'm talking about;

Boards

I appreciate your recommendations on the "preferences", especially the Sketchbook location. I thought I had corrected that to my local SSD drive; evidently not. It's now corrected.

In the last couple of days we've had a snow accumulation of 3-1/2 inches. Down here that is very rare. Needless to say, Sugar Land pretty much shuts down, LOL.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@brianmcm I see you selected ESP32-WROOM-DA. That is a module with a pointed end because it has 2 antennas hence the name Dual Antenna.

I generally use esp32 doit and search just on doit (see pic) OR esp32 dev. There you can pick a generic dev or a model dev such as ESP32C3 Dev

Screenshot 2025 01 22 at 12.00.55
Screenshot 2025 01 22 at 12.01.27

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@brianmcm)
Member
Joined: 2 months ago
Posts: 10
Topic starter  

@zander 

Thank you for pointing that out. I really appreciate all your help!! 😊 


   
ReplyQuote