# ESP32-CAM board in reboot loop

**URL:** <https://forum.core-electronics.com.au/t/esp32-cam-board-in-reboot-loop/16242>\
**Category:** Support\
**Created:** [28 January 2023 03:14 UTC](https://forum.core-electronics.com.au/t/esp32-cam-board-in-reboot-loop/16242 "2023-01-28T03:14:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaulFOF](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@PaulFOF](https://forum.core-electronics.com.au/u/PaulFOF)\
**Post date:** [28 January 2023 03:14 UTC](https://forum.core-electronics.com.au/t/esp32-cam-board-in-reboot-loop/16242/1 "2023-01-28T03:14:41Z")

</div>

Hi all

I was trying out Tim’s ESP32-CAM streaming demo guide, and ran into several hiccups, all of which I was able to resolve, except for one.

My setup is

- Latest Arduino IDE running on Ubuntu 20
- Sparkfun FTDI programmer, as recommended in the guide
- ESP32-CAM board, configured as ESP32 Wrover Module in the IDE

I’m successfully able to flash the sketch onto the board, but whenever I try to run it, I get a reboot loop. So far I’ve tried

- A 5V/2.1A power supply
- Disabling the brownout check
- A minimal webserver sketch that just responds 200 / “Hello”, so not even using the camera, to see if power draw really is the problem

Nothing so far has worked. All I get is

```auto
rst: 0xc (SW_CPU_RESET), boot 0x13 (SPI_FAST_FLASH_REBOOT)
configsip: 0, SPIWP: 0xee
clk_drv: 0x00, q_drv:0x00, d_drv: 0x00, cs0: 0x00, hd_drv: 0x00, wp_drv: 0x00
mode: DIO, clock div: 1

```

Does anybody have any insights please? I don’t see any of the Serial.println’s from the sketch at all, so I have nothing else to go by, other than the above.

---

<div class="post-metadata">

**Author:** ![Liam120347](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam120347/32/5003_2.png) [@Liam120347](https://forum.core-electronics.com.au/u/Liam120347)\
**Post date:** [28 January 2023 03:58 UTC](https://forum.core-electronics.com.au/t/esp32-cam-board-in-reboot-loop/16242/2 "2023-01-28T03:58:31Z")

</div>

Hi Paul,

Is the BOOT wire connected when flashing? Boot 0x13 means that the ESP32 wants to run the code already on the device.

---

<div class="post-metadata">

**Author:** ![PaulFOF](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@PaulFOF](https://forum.core-electronics.com.au/u/PaulFOF)\
**Post date:** [28 January 2023 04:12 UTC](https://forum.core-electronics.com.au/t/esp32-cam-board-in-reboot-loop/16242/3 "2023-01-28T04:12:32Z")

</div>

Hi Liam, thanks for responding.

Do you mean when bridging IO0 and GND? I have that in place while I’m uploading the sketch, and then remove it before pressing RST.

I noticed another setting in the IDE - “Erase All Flash Before Sketch Upload” - this is set to Disabled. Is this something I should enable?

If these sound like newbie questions, they are 🙂 I’m experienced with software, but really just starting out with MCUs and electronics, so I appreciate any help.

Kind regards  
Paul

---

<div class="post-metadata">

**Author:** ![Liam120347](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam120347/32/5003_2.png) [@Liam120347](https://forum.core-electronics.com.au/u/Liam120347)\
**Post date:** [28 January 2023 04:38 UTC](https://forum.core-electronics.com.au/t/esp32-cam-board-in-reboot-loop/16242/4 "2023-01-28T04:38:53Z")

</div>

Hi Paul,

No worries about newbie questions! ESP’s are annoying at the best of times 😆

> [@PaulFOF](#):
>
> Do you mean when bridging IO0 and GND? I have that in place while I’m uploading the sketch, and then remove it before pressing RST.

Yeah, to be sure it remains in download mode while flashing its best to keep it shorted until you get a success message after flashing.

> [@PaulFOF](#):
>
> I noticed another setting in the IDE - “Erase All Flash Before Sketch Upload” - this is set to Disabled. Is this something I should enable?

Yeah, it takes a couple of extra seconds but makes sure that all memory is cleared between programming.

---

<div class="post-metadata">

**Author:** ![PaulFOF](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@PaulFOF](https://forum.core-electronics.com.au/u/PaulFOF)\
**Post date:** [28 January 2023 05:01 UTC](https://forum.core-electronics.com.au/t/esp32-cam-board-in-reboot-loop/16242/5 "2023-01-28T05:01:11Z")

</div>

Tried those things but no dice, I’m afraid.

I also eliminated the breadboard in the mix, and have now connected my jumper leads directly between the programmer and board (I noticed that many people commented about how longer power paths can cause issues).

Only other thing I’ve seen is people have tried adding a capacitor between VCC and GND, but they were powering some other stuff from the same USB supply, whereas I’m not, so it shouldn’t be necessary.

🤔

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [31 January 2023 01:48 UTC](https://forum.core-electronics.com.au/t/esp32-cam-board-in-reboot-loop/16242/6 "2023-01-31T01:48:18Z")

</div>

Hi Paul,

Sorry to hear your ESP32 is giving you trouble! Are you able to share a photo of how you’ve got everything hooked up?

Keen to get to the bottom of this one!

---

<div class="post-metadata">

**Author:** ![PaulFOF](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@PaulFOF](https://forum.core-electronics.com.au/u/PaulFOF)\
**Post date:** [31 January 2023 02:51 UTC](https://forum.core-electronics.com.au/t/esp32-cam-board-in-reboot-loop/16242/7 "2023-01-31T02:51:23Z")

</div>

Hi James, me too! 😉

Please find attached some photos of my FTDI and ESP32. When I program it, I bridge the GND and IO0 adjacent, and then remove that jumper before I reboot. The programming stage reports as fine, as far as I can tell, it’s the running mode that’s not happy.

 ![20230131_124555](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/6/638aece242269df3ec98c932da71ed98f5e5b84a.jpeg)  
 ![20230131_124632](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/6/667b7734efae6181b8e6f52c9cfd2fb532aced91.jpeg)  
 ![20230131_124658](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/6/679f24206875eb2fc877416cac63149a22300979.jpeg)

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [31 January 2023 03:51 UTC](https://forum.core-electronics.com.au/t/esp32-cam-board-in-reboot-loop/16242/8 "2023-01-31T03:51:17Z")

</div>

Hi Paul,

I think I found your problem!

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/f/f7d5500145be34343ac12accd29f51698fb315aa.jpeg)  
See the following on the product page:  
 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/2/25d8e61a1206a218577d19d18b8cd42ff3e4ea80.png)

Try powering the ESP from a strong 5V supply and a common ground with the serial adapter, or better yet just a USB port on your PC [broken out](https://core-electronics.com.au/sparkfun-usb-c-breakout.html).

---

<div class="post-metadata">

**Author:** ![PaulFOF](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@PaulFOF](https://forum.core-electronics.com.au/u/PaulFOF)\
**Post date:** [31 January 2023 04:31 UTC](https://forum.core-electronics.com.au/t/esp32-cam-board-in-reboot-loop/16242/9 "2023-01-31T04:31:16Z")

</div>

@James I believe you’ve solved it, thankyou! I was able to see the response from the minimal webserver, so I’ll try Tim’s streaming code and see how we go. Much appreciated 🙏

---

<div class="post-metadata">

**Author:** ![PaulFOF](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@PaulFOF](https://forum.core-electronics.com.au/u/PaulFOF)\
**Post date:** [31 January 2023 04:33 UTC](https://forum.core-electronics.com.au/t/esp32-cam-board-in-reboot-loop/16242/10 "2023-01-31T04:33:14Z")

</div>

Just out of curiosity, does that mean I can use this programmer to program boards with 3V3 logic, but just not power them if they have a VCC of 5V?

---

<div class="post-metadata">

**Author:** ![Robert93820](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Robert93820](https://forum.core-electronics.com.au/u/Robert93820)\
**Post date:** [31 January 2023 06:50 UTC](https://forum.core-electronics.com.au/t/esp32-cam-board-in-reboot-loop/16242/11 "2023-01-31T06:50:56Z")

</div>

Hi James  
Paul’s last couple of replies reinforce what I have been rabbiting on about for the last few years on this forum.

If you are having problems start by making sure the power supply is OK and up to the task.  
Or  
Better still. Start with a decent power supply (not power banks) in the first place. Saves a lot of heartache and hair pulling down stream.  
Cheers Bob
