# Node reboot loop

**URL:** <https://www.thethingsnetwork.org/forum/t/node-reboot-loop/28435>\
**Category:** Hardware\
**Created:** [July 25, 2019, 8:50pm UTC](https://www.thethingsnetwork.org/forum/t/node-reboot-loop/28435 "2019-07-25T20:50:39Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![cjhdev](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cjhdev/32/35697_2.png) [@cjhdev](https://www.thethingsnetwork.org/forum/u/cjhdev)\
**Post date:** [July 31, 2019, 2:48pm UTC](https://www.thethingsnetwork.org/forum/t/node-reboot-loop/28435/21 "2019-07-31T14:48:42Z")

</div>

You can ask the MCU the reason for reset:

![atmel_status_reg](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/2/2/220dd662e0e5e106e320eb4b0ddb23277e0457c4.png)

In addition to turning off/down the BOD, you could try reducing the transmit power on the radio to see if that makes a difference. Firmware bugs can also cause a sudden reset.

I don’t recommend soldering random capacitors to the end of the antenna.

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [July 31, 2019, 3:16pm UTC](https://www.thethingsnetwork.org/forum/t/node-reboot-loop/28435/22 "2019-07-31T15:16:34Z")

</div>

> [@LuckyV](#):
>
> at the end I placed the 104 capacitor (0.1 uF) between the end of the helical antenna and ground

This is wrong on so many levels…

At the frequencies involved one must also consider the inductance of the leads of your capacitor, and the PCB traces. It would take fairly expensive RF geometric modeling software to figure out exactly what you’ve done, but it is a thoroughly bad idea.

Your success at this point is pretty much pure coincidence - you have an _actual_ issue (perhaps with a noisy power supply) and you do not currently know what it is.

---

<div class="post-metadata">

**Author:** ![Sandgroper](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sandgroper/32/46619_2.png) [@Sandgroper](https://www.thethingsnetwork.org/forum/u/Sandgroper)\
**Post date:** [July 31, 2019, 4:36pm UTC](https://www.thethingsnetwork.org/forum/t/node-reboot-loop/28435/23 "2019-07-31T16:36:26Z")

</div>

> [@Miwo](#):
>
> How does the power from the antenna reflect onto VCC? How are the internal connections in the RFM95 causing reflection to induce something back on VCC?

Did you try my suggested modifications to your code?

The default state of I/O is input mode. The standard input protection circuitry on an input has an effective diode pull-up to VCC. RF input on an unterminated input is passed by the input protection diode to the VCC. High values of RF and/or insufficient bypass on the inputs and power supply decoupling will cause all sorts of problems. This is why I suggested setting all unused pins to outputs.

---

<div class="post-metadata">

**Author:** ![LuckyV](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/luckyv/32/35697_2.png) [@LuckyV](https://www.thethingsnetwork.org/forum/u/LuckyV)\
**Post date:** [July 31, 2019, 4:46pm UTC](https://www.thethingsnetwork.org/forum/t/node-reboot-loop/28435/24 "2019-07-31T16:46:55Z")

</div>

> [@cslorabox](#):
>
> Your success at this point is pretty much pure coincidence - you have an _actual_ issue (perhaps with a noisy power supply) and you do not currently know what it is.

I tried to say so at the beginning. But because it is so far the only working solution, I am using what I have… With my next board I can try the things that @Sandgroper proposed.

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [July 31, 2019, 8:38pm UTC](https://www.thethingsnetwork.org/forum/t/node-reboot-loop/28435/25 "2019-07-31T20:38:49Z")

</div>

> [@Sandgroper](#):
>
> The default state of I/O is input mode. The standard input protection circuitry on an input has an effective diode pull-up to VCC.

No, that would make it unusable. The VCC clamp diode is a pull _down_ for out of range pin voltage, it’s the GND clamp diode that could be viewed as a pull up.

> [@](#):
>
> RF input on an unterminated input is passed by the input protection diode to the VCC.

Probably not. Go ahead and calculate the voltage needed to forward bias the diode compared to the available RF power levels. Then calculate the amount of power able to be delivered into the supply rail.

If this were a broadcast transmitter you might have a point…

---

<div class="post-metadata">

**Author:** ![Sandgroper](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sandgroper/32/46619_2.png) [@Sandgroper](https://www.thethingsnetwork.org/forum/u/Sandgroper)\
**Post date:** [July 31, 2019, 10:17pm UTC](https://www.thethingsnetwork.org/forum/t/node-reboot-loop/28435/26 "2019-07-31T22:17:00Z")

</div>

I am not wrong. Page 58 of the Atmega328p datasheet ([http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7810-Automotive-Microcontrollers-ATmega328P\_Datasheet.pdf](http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7810-Automotive-Microcontrollers-ATmega328P_Datasheet.pdf)) shows the I/O Pin Equivalent circuit for this processor clearly showing the protection diode to the power rail. This is why you also see cheap level converters from 12 volt to +5v of the processor using a simple series resistor as opposed to a traditional level converter with the series resistor limiting the input current.

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [July 31, 2019, 10:18pm UTC](https://www.thethingsnetwork.org/forum/t/node-reboot-loop/28435/27 "2019-07-31T22:18:37Z")

</div>

> [@Sandgroper](#):
>
> I am not wrong.

No, you are wrong. There is a diode of course, but as I explained, the direction is opposite of what you claimed.

You erroneously claimed “The standard input protection circuitry on an input has an effective diode pull-up to VCC.”

Because a diode would be a very “stiff” pullup, having a diode in that direction would make the pin essentially unusable - you wouldn’t be able to internally or externally drive the pin more than a diode drop below VCC without overstressing and cooking the diode.

In actual fact the IO clamp diode is oriented the other way, it is a “pull down” preventing the voltage on the pin from exceeding VCC by more than a diode drop.

The other diode prevents the voltage from dropping more than a diode drop below ground.

---

<div class="post-metadata">

**Author:** ![Sandgroper](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sandgroper/32/46619_2.png) [@Sandgroper](https://www.thethingsnetwork.org/forum/u/Sandgroper)\
**Post date:** [July 31, 2019, 10:26pm UTC](https://www.thethingsnetwork.org/forum/t/node-reboot-loop/28435/28 "2019-07-31T22:26:53Z")

</div>

So two things happen with the input protection diodes. The input protection diode to VDD will result in the VDD increasing. You see this effect when you power off the processor by removing the power to the regulator and yet the processor can still run because it is being powered via voltages being present on the input pins. How much it raises VDD depends on many factors but it is easy to test.

The pull down diode (from input to ground) has the opposite effect, a negative signal below the ground rail, will drive the ground rail lower.

If the power supply impedance to the processor power pins is not low enough the power rails will effective be modulated by the RF signal. There is nothing clean about this.

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [July 31, 2019, 10:29pm UTC](https://www.thethingsnetwork.org/forum/t/node-reboot-loop/28435/29 "2019-07-31T22:29:51Z")

</div>

> [@Sandgroper](#):
>
> The input protection diode to VDD will result in the VDD increasing.

As I pointed out several posts ago, that would only be true if the diode actually becomes forward biased. Given the absolute maximum ratings are half a volt outside the rails, that’s going to require something like 500-600 mV amplitude at the _receiving_ side of the coupling - or several _volts_ if the pin wasn’t already DC biased to the rail.

> [@](#):
>
> You see this effect when you power off the processor by removing the power to the regulator and yet the processor can still run because it is being powered via voltages being present on the input pins. How much it raises VDD depends on many factors but it is easy to test.

For a DC source like an externally driven I/O, sure, but you are proposing coupled RF, which is unlikely to be coupling enough energy to raise the rail much at all.

If this were a high power transmitter, you might have a point. But at the power levels actually supported, it’s a bit unlikely.

> [@](#):
>
> If the power supply impedance to the processor power pins is not low enough the power rails will effective be modulated by the RF signal. There is nothing clean about this.

If the supply biasing doesn’t create a low impedance at RF, then your digital circuitry is itself a radio jammer splattering harmonics of clock fractions all over the place.

---

<div class="post-metadata">

**Author:** ![slaven96](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/slaven96/32/44306_2.png) [@slaven96](https://www.thethingsnetwork.org/forum/u/slaven96)\
**Post date:** [August 9, 2019, 9:45pm UTC](https://www.thethingsnetwork.org/forum/t/node-reboot-loop/28435/30 "2019-08-09T21:45:37Z")

</div>

I have same problem on my board. I developed my board, and one board sometimes go to reboot loop. I found out that this happens when there is no antena attached to this SMA connector, or antenna is small and bad. Try to solder another antenna.

![IMG_20190719_232035](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/9/7/97887f2095809950fd1aa0f6abcb4760ba1591a0.jpeg) ![IMG_20190805_184751](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/8/1/81322439f12190a6d26c70249f3f3f9086e480c4.jpeg)

[Previous page](https://www.thethingsnetwork.org/forum/t/node-reboot-loop/28435.md?page=1)
