# Random reboot... Custom driver (solved)

**URL:** <https://wled.discourse.group/t/random-reboot-custom-driver-solved/2098>\
**Category:** Hardware\
**Created:** [January 18, 2021, 6:37pm UTC](https://wled.discourse.group/t/random-reboot-custom-driver-solved/2098 "2021-01-18T18:37:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![madnat](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/madnat/32/1044_2.png) [@madnat](https://wled.discourse.group/u/madnat)\
**Post date:** [January 18, 2021, 6:37pm UTC](https://wled.discourse.group/t/random-reboot-custom-driver-solved/2098/1 "2021-01-18T18:37:03Z")

</div>

Hi experts, I’ve just had my first prototypes of a custom driver arrive - and based on much of the information I have gathered from this project, and you fine experts.

I am having a problem with the ESP8266 rebooting periodically - there doesnt seem to be a specific reason or time interval.

Here is the schematic

 ![WLED Driver](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/b/bf1848574bbbe8c97431ab4d716e2e1be65b9ecb.jpeg).

Are there defects in my design that would cause the ESP8266 to reboot. When it is operational - works beautifully. Reboots can occur after several minutes (max approx 9 minutes), or very short - 10 seconds.

Thank you for any feedback.

---

<div class="post-metadata">

**Author:** ![madnat](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/madnat/32/1044_2.png) [@madnat](https://wled.discourse.group/u/madnat)\
**Post date:** [January 18, 2021, 7:58pm UTC](https://wled.discourse.group/t/random-reboot-custom-driver-solved/2098/2 "2021-01-18T19:58:51Z")

</div>

My guess is the C2 and C3 combo is not right - I’d value some suggestions on whether I’m on the right track, or not.

---

<div class="post-metadata">

**Author:** ![madnat](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/madnat/32/1044_2.png) [@madnat](https://wled.discourse.group/u/madnat)\
**Post date:** [January 21, 2021, 11:58am UTC](https://wled.discourse.group/t/random-reboot-custom-driver-solved/2098/3 "2021-01-21T11:58:53Z")

</div>

I have made some progress researching this problem. I dont think it is a circuit related issue, but how the build needs to be compiled for my custom board.

I have recompiled with more accurate settings and getting better performance/reliability - but still experience crashes.

I have turned on debugging and can see tha the crash occurs:  
[11:56:48]Fatal exception 0(IllegalInstructionCause):  
[11:56:48]epc1=0x402803a0, epc2=0x00000000, epc3=0x00000000, excvaddr=0x000000ad, depc=0x00000000  
[11:56:48]  
[11:56:48]--------------- CUT HERE FOR EXCEPTION DECODER ---------------  
[11:56:48]  
[11:56:48]Exception (0):  
[11:56:48]epc1=0x402803a0 epc2=0x00000000 epc3=0x00000000 excvaddr=0x000000ad depc=0x00000000  
[11:56:48]  
[11:56:48]\>\>\>stack\>\>\>  
[11:56:48]  
[11:56:48]ctx: sys  
[11:56:48]sp: 3fffeb10 end: 3fffffb0 offset: 0190

I am also presented with a HEX dump. Any advice on where/how I can determine what causes the crash?

---

<div class="post-metadata">

**Author:** ![madnat](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/madnat/32/1044_2.png) [@madnat](https://wled.discourse.group/u/madnat)\
**Post date:** [February 1, 2021, 9:36am UTC](https://wled.discourse.group/t/random-reboot-custom-driver-solved/2098/4 "2021-02-01T09:36:44Z")

</div>

I solved this issue. It was due to using an under rated 3.3V power regulator (250mA). I upgraded to a regulator that enabled a max current of 600mA. My module is now stable.
