|
Forum Index : Microcontroller and PC projects : random reset
| Author | Message | ||||
| isochronic Guru Joined: 21/01/2012 Location: AustraliaPosts: 689 |
I'm stumped.. I have got logging to an auxiliary SD card running fine, it is writing 1 or 2 meg files by slow increments second by second, no worries. But it shows up a problem - overnight the parent system (pic32mx128b) is apparently restarting sometimes, at random times. The power is from batteries with no mains or USB connected and should be clean as. The reset pin is tied high via a reset resistor circuit/button; if I manually reset it it goes to a prompt as it is supposed to do. Some random time after a few hours, a restart occurs and the variables etc reinitialise, but it does not go back to the user prompt. I thought it may be a memory leak in my program, but it happens at random and sometimes not at all. WTF ?????? Maybe I have to shield all the wiring :(. Any ideas welcome. |
||||
Grogster![]() Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9751 |
The 128 runs a very old version of MMBASIC now. Have you tried a 170 chip in it's place? Unfortunately, I doubt you will get that much support for the poor old 128 chip now. ![]() I am prepared to be corrected on that though! ![]() Smoke makes things work. When the smoke gets out, it stops! |
||||
| Azure Guru Joined: 09/11/2017 Location: AustraliaPosts: 446 |
I am not familiar with the PIC32MX128, what version of MMBasic did it run and what was the system called? |
||||
| isochronic Guru Joined: 21/01/2012 Location: AustraliaPosts: 689 |
errgh ! sorry that should have been pic32mx170b .. ie pretty standard. Not running MMBasic, just my own programs. It is probably a bug somehow but ... why the random timing ? |
||||
| OA47 Guru Joined: 11/04/2012 Location: AustraliaPosts: 1013 |
Chronic, a couple of years ago I was chasing a similar issue with the MX128 that was resetting randomly. The problem turned out to be an occasional higher level on the analog input (>3V3) which caused the reset. Not sure what your set up is...… OA47 |
||||
| isochronic Guru Joined: 21/01/2012 Location: AustraliaPosts: 689 |
OA47- Excellento !!! that makes perfect sense, I will nail things down a bit, Thanks |
||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3308 |
The capacitor on Vcap has also caused random resets. Preferably it should be a ceramic with a high quality dielectric. Geoff Graham - http://geoffg.net |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |