• AVR Freaks

Hot!PIC24 keeps resetting until the power is turned off

Author
minhtuan99bk
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2018/12/13 05:15:57
  • Location: 0
  • Status: offline
2020/03/24 19:39:33 (permalink)
0

PIC24 keeps resetting until the power is turned off

Hi all, I'm using PIC24FJ128GA406 and I have an problem with this MCU.
- Sometimes my device (using this MCU) keeps resetting continuously.
- In this case, I try to reset this MCU by using MCLR pin or Externnal watchdog IC, but it didn't help.
- I turn off the MCU's power, then turn it on and it works normally.
I don't why this problem happens, please help me.
Thank you.
#1

8 Replies Related Threads

    GeorgePauley
    Moderator
    • Total Posts : 1221
    • Reward points : 0
    • Joined: 2009/12/01 13:59:30
    • Location: Chandler AZ
    • Status: offline
    Re: PIC24 keeps resetting until the power is turned off 2020/03/25 06:11:48 (permalink)
    0
    Is your watchdog timer expiring?
    #2
    ric
    Super Member
    • Total Posts : 26159
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC24 keeps resetting until the power is turned off 2020/03/25 12:43:15 (permalink)
    +2 (2)
    How is the PIC powered?
    We've had another thread here just recently where an overloaded linear regulator was jumping in and out of thermal overload.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #3
    minhtuan99bk
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2018/12/13 05:15:57
    • Location: 0
    • Status: offline
    Re: PIC24 keeps resetting until the power is turned off 2020/03/25 20:40:48 (permalink)
    0
    GeorgePauley
    Is your watchdog timer expiring?


    No, watchdog timer not expiring, I am sure that is true.
    ric
    How is the PIC powered?
    We've had another thread here just recently where an overloaded linear regulator was jumping in and out of thermal overload.
     


    I have carefully checked the power supply with vol meter and oscilloscope, no problem occurred.
    By the way, thank GeorgePauley & ric
     
    Any idea?
    #4
    ric
    Super Member
    • Total Posts : 26159
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC24 keeps resetting until the power is turned off 2020/03/25 20:52:17 (permalink)
    0
    Does "resetting continuously" mean it simply doesn't run at all, or that it runs for a bit, resets, runs for a bit more, and resets again?
    Is the chip getting hot?
    It's starting to sound like latchup. Can you show your schematic?
    Do you have any PIC pins connected directly to signals which leave your board?
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #5
    NKurzman
    A Guy on the Net
    • Total Posts : 18424
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PIC24 keeps resetting until the power is turned off 2020/03/25 21:00:41 (permalink)
    +1 (1)
    How do you know it’s not the watchdog.
    Are you checking the RCON flags?
    Have you tried running it on a debugger?
    Do you have an unhandled interrupt?
    Have you included traps to ensure you’re not getting an exception?

    And you’re sure it’s not a bug in your code?
    #6
    minhtuan99bk
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2018/12/13 05:15:57
    • Location: 0
    • Status: offline
    Re: PIC24 keeps resetting until the power is turned off 2020/03/29 19:23:28 (permalink)
    0
    ric
    Does "resetting continuously" mean it simply doesn't run at all, or that it runs for a bit, resets, runs for a bit more, and resets again?
    Is the chip getting hot?
    It's starting to sound like latchup. Can you show your schematic?
    Do you have any PIC pins connected directly to signals which leave your board?
     


    Thank RIC.
    Does "resetting continuously" mean it simply doesn't run at all, or that it runs for a bit, resets, runs for a bit more, and resets again? => runs for a bit more, and resets again (I noticed the function "main loop" was executed)
    Is the chip getting hot? => no
    NKurzman
    How do you know it’s not the watchdog.
    Are you checking the RCON flags?
    Have you tried running it on a debugger?
    Do you have an unhandled interrupt?
    Have you included traps to ensure you’re not getting an exception?
    And you’re sure it’s not a bug in your code?

    Thank NKurzman.
    How do you know it’s not the watchdog. => I config watchdog timer about 8s & my device reset after ~3 seconds from power on.
    Are you checking the RCON flags?  I can'tsad: sad
    Have you tried running it on a debugger? I can'tsad: sad
    => The device is installed in high position and difficult to access places, this problem only occurs when the device has been operating for a while (random about 1 month to 2 year) with a very small quantity (~0.1%).
    When the device is brought back to the lab for testing, it works normally (after turning off the power) and cannot reproduce the bug, so it is difficult to trap it.

    Do you have an unhandled interrupt? => No, it's my mistake
    Have you included traps to ensure you’re not getting an exception? => No, it's my mistake
    And you’re sure it’s not a bug in your code? => May be, I will add unhandled interrupt for my code.
    But, I want to localize and find the exact location of the bug to handle this problem thoroughly, hope you help.
    Sorry for my bad english.
    #7
    pcbbc
    Super Member
    • Total Posts : 1649
    • Reward points : 0
    • Joined: 2014/03/27 07:04:41
    • Location: 0
    • Status: offline
    Re: PIC24 keeps resetting until the power is turned off 2020/03/29 21:51:35 (permalink)
    0
    Are you checking the RCON flags?  I can't

    Why not?
     
    If you cannot check directly when installed you could save them to EEPROM, and then check the EEPROM when the device is retrieved from “high position and difficult to access places”.
     
    But, I want to localize and find the exact location of the bug to handle this problem thoroughly, hope you help.

    Then find the cause of the reset then by checking RCON. That will at least give you an idea where to look.
     
    How is the device powered? If the same device works 100% correctly in the lab then the cause of the reset must be environmental:
    a) Is the device powered differently in the lab?
    b) Are there different input stimulus in the lab?
    c) Is there potential for overheating in the field?
    d) Is there potential for EMF interference in the field?
    #8
    ric
    Super Member
    • Total Posts : 26159
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC24 keeps resetting until the power is turned off 2020/03/29 22:08:09 (permalink)
    0
    If it's mounted in a "high position", how well protected is it against a lightning strike?
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #9
    Jump to:
    © 2020 APG vNext Commercial Version 4.5