Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 14:37 11 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : random reset

Author Message
isochronic
Guru

Joined: 21/01/2012
Location: Australia
Posts: 689
Posted: 01:31am 21 Jun 2018
Copy link to clipboard 
Print this post

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 Zealand
Posts: 9751
Posted: 01:42am 21 Jun 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 446
Posted: 02:13am 21 Jun 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 689
Posted: 03:00am 21 Jun 2018
Copy link to clipboard 
Print this post


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: Australia
Posts: 1013
Posted: 03:02am 21 Jun 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 689
Posted: 03:11am 21 Jun 2018
Copy link to clipboard 
Print this post

OA47-
Excellento !!! that makes perfect sense, I will nail things down a bit,
Thanks
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 08:19am 21 Jun 2018
Copy link to clipboard 
Print this post

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
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025