Continuation of rootcause finding towards the crashing of my VIA EDEN 500MHz 1core 32bit cpu on TC17.1 as started in this thread:
https://forum.tinycorelinux.net/index.php?topic=28078.0My system is still crashing from time to time. But its is very likely a hardware issue not related to TC17 for which reason it is now closed as TC17 issue.
Short summary of where I am:
- 1.5 weeks ago my system crashed 2x in a row.
- Than I extended an existing nanosleep() delay in my application from 3x 0 to 3x100ms per second by configuration item (no recompile) after which the system did not crash for 5 days.
- Under assumption it is "load" dependent I included a 2x 4700uF capacitor on 5V power line and brought delay back to 3x0ms per second after which it did run without crash for 5 days.
- As ultimate proof this is power related I removed the capacitors "during run" (they were mounted on a screw terminal) under assumption it should crash within 24 hours. but... no crash
- I now started an additional "continuous loop stress program (code at bottom). This brought cpu-load from 10% to 90% and added 0.6% (=10%) power consumption.
Let's see whether there is crash again in 24hrs.
@Rich, I tried your python program. It however fails:
tc@huis:~/python$ ./SimplePi.sh
./CalcPi.sh: line 4: bc: not found
./CalcPi.sh: line 6: bc: not foundSo I just keep running my own stress program for now. Can change that later. Better to run "something" than nothing
Stress program I'm running (C code):
int Stress()
{ int i;
float d1[200], d2[200];
while (1)
{ for (i=0; i<100; i++)
{ d1[i] = 1.111*i; }
for (i=0; i<100; i++)
{ d2[i] = d1[i]/ 1.111; }
for (i=0; i<100; i++)
{ d1[i] = d2[i] * 1.111; }
}
return 1;
}It has some calculations (*1.111 and /1.111) and some memory-swaps