This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF51822 Resets on weird situations...

I was developing an green house system for plants which was based on nRF51822 SoC. The system was fully completed and working fine except one problem which was reset of nRF51822.

I could not figure out what was causing this reset problem. Following are the major components in my circuit:

  1. 5 Relays
  2. External RTC
  3. Some Analog Sensors
  4. UART Nextion Display

And following are the situations when nRF51 gets reset.

  1. A relay was driving a motor. When ever motor switched on it caused reset. 
  2. The second situation was very weird. The system was powered by a 12V, 4A power supply. When ever an electric appliance (220V) switches on anywhere in the house, nRF51 resets. But the interesting thing is it does not happen if we disable the UART peripheral in our system which off course we could not do because it was must for our design. But we tested by disabling it and nRF51 never reset.

I also developed some other systems which were powered by USB but still sometimes the chip resets if UART peripheral is enabled.

Please help me in this issue.

I was using the following module in my system.

Aliexpress.com

Parents
  • Can you read the NRF_POWER->RESETREAS register to determine the reset reason.

    If none of the reset sources are flagged, this indicates that the chip was reset from the on-chip reset generator, which will indicate a power-on-reset or a brownout reset.

    If the reason is a brown out, I suggest adding some capacitors between VCC and GND. 

  • Hi,

    I checked the reset reason register also. It says the power on reset is generated!

    It not about the unstable input voltage i guess. Because it never happened when UART is not enabled.

    If enabled, the system works fine in normal conditions. Lets say i connect something like my laptop charger in any power socket in the room. The nRF51 resets. There is no direct connection between the nRF51 and other appliances except that the power supply(which is powering nRF51 system) is connected in the same place where we switch appliances.

    If we do not use the UART at all. This problem do not appear.

  • A power on reset is also generated on a brown-out, as the quote from the nordic site says. So this could still be a brown-out. A poorly designed power supply could be sensitive to minor changes on the input power caused by plugging in plug in a socket. 

    Does just initialising the UART trigger the issue, or does it only trigger when there is actual communication? 

Reply
  • A power on reset is also generated on a brown-out, as the quote from the nordic site says. So this could still be a brown-out. A poorly designed power supply could be sensitive to minor changes on the input power caused by plugging in plug in a socket. 

    Does just initialising the UART trigger the issue, or does it only trigger when there is actual communication? 

Children
Related