RetroBSD

2.11BSD operating system for microcontrollers
It is currently Thu Oct 17, 2019 6:28 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: A crash once a day
PostPosted: Mon Nov 16, 2015 9:17 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
I run meteo station based on retrobsd :)
Basically it runs this cron stuff:
Code:
# (Cron version -- @(#) crontab.c 2.13.1 (2.11BSD) 1999/8/9)
28,58 * * * * rtc3231rd2os > /dev/null
*/1 * * * * meteo >> /share/mycode/meteo.csv
#

Meteo is logging unix time and a few of other measurements from my i2c devices.
Code:
1447483620, 22.2, 1025.9, 0.55538
1447483681, 22.2, 1025.9, 0.55522
1447483740, 22.2, 1026.0, 0.55512
1447483801, 22.2, 1026.0, 0.55528
1447483860, 22.2, 1026.0, 0.55522
1447483920, 22.2, 1026.1, 0.55528
1447483981, 22.2, 1026.2, 0.55497

Retro runs 60/60MHz and 30MHz sdcard.
All is working fine.
Only issue I cope with is - once a day I get this:
Code:
#
*** 0x9d0005f0: exception 'Bus load/store'
*** stack frame at 80007ea4
        1 80007400        0 80007400
 800074a8 8000126c 80008000        0
        0      73e        0        3
        3        0        0        0
 80001158        0 10000000        6
 fffffffe 80003e0c      808        0
        0 80000000 80007f28        0
 9d006310        5 fffffff1 10000002
 9d0005f0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0 3e38373c 65766f4e
 7265626d 20363120 313a3930 36303a37
 6f726320 37315b6e 28203a5d 4e4f5243
 54532029 55545241 66282050 206b726f
  a296b6f      a0d        0
*** registers:
                t0 =        0   s0 =        0   t8 =        0   lo =        5
at =        1   t1 =        0   s1 = 80001158   t9 =        0   hi = fffffff1
v0 = 80007400   t2 =      73e   s2 =        0               status = 10000002
v1 =        0   t3 =        0   s3 = 10000000                cause =   80041c
a0 = 80007400   t4 =        3   s4 =        6   gp = 80000000  epc = 9d0005f0
a1 = 800074a8   t5 =        3   s5 = fffffffe   sp = 80007f28
a2 = 8000126c   t6 =        0   s6 = 80003e0c   fp =        0
a3 = 80008000   t7 =        0   s7 =      808   ra = 9d006310
panic: unexpected exception
syncing disks...
*** 0x9d001e9c: exception 'Bus load/store'
*** stack frame at 80007cb4
        1 80000000 7f01f341 9d017f2c
 10000003        0        0        0
        0      73e        0        3
        3        0        0        0
 10000003        0 9d017f2c        6
 fffffffe 80003e0c      808        0
        0 80000000 80007d38        0
 9d017680        0        9 10000002
 9d001e9c        6 fffffffe 9d017044
       14 9d017044        0        0
        0 10000000 9d017680 9d00825c
        a 9d01708c 68732f20 7f01f340
 6f63796d       48 9d01fe09        0
       48       48 9d0002bc 80007da0
 7f00c87d        1        0        1
 10000000 bf880000        0        5
        0        0        0        0
      73e        0        3        3
        0        0       48       48
        0 10000000        6 fffffffe
 80003e0c      808        0        0
 80000000 80007e24        0 9d017f28
        0        9 10000003 9d017f2c
 9d01fdf8       48        1 ffffffff
       48 80001158        0 10000000
        6 9d008e94 9d01e4fc 9d01f9f0
        0 ffffffff 9d01fb6c 9d017584
        0        0        0        0
 7f01f340        0        0        0
        0        0 80001158 9d0002bc
 80007ea4        0        0        0
        1 80007400        0 80007400
 800074a8 8000126c 80008000        0
        0      73e        0        3
        3        0        0        0
 80001158        0 10000000        6
 fffffffe 80003e0c      808        0
        0 80000000 80007f28        0
 9d006310        5 fffffff1 10000002
 9d0005f0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0        0        0
        0        0 3e38373c 65766f4e
 7265626d 20363120 313a3930 36303a37
 6f726320 37315b6e 28203a5d 4e4f5243
 54532029 55545241 66282050 206b726f
  a296b6f      a0d        0
*** registers:
                t0 =        0   s0 =        0   t8 =        0   lo =        0
at =        1   t1 =        0   s1 = 10000003   t9 =        0   hi =        9
v0 = 80000000   t2 =      73e   s2 =        0               status = 10000002
v1 = 7f01f341   t3 =        0   s3 = 9d017f2c                cause = 1080041c
a0 = 9d017f2c   t4 =        3   s4 =        6   gp = 80000000  epc = 9d001e9c
a1 = 10000003   t5 =        3   s5 = fffffffe   sp = 80007d38
a2 =        0   t6 =        0   s6 = 80003e0c   fp =        0
a3 =        0   t7 =        0   s7 =      808   ra = 9d017680
panic: unexpected exception
halted

Always the same errors. Any hint where it might come from?
PS: unix.dis attached..


Attachments:
unix_dis.zip [250.41 KiB]
Downloaded 346 times

_________________
Pukao Hats Cleaning Services Ltd.
Top
 Profile  
 
 Post subject: Re: A crash once a day
PostPosted: Tue Nov 17, 2015 12:34 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
That's interesting.
I'll take a look.


Top
 Profile  
 
 Post subject: Re: A crash once a day
PostPosted: Thu Nov 26, 2015 3:56 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
It crashed in longjmp() function, trying to switch the processes. See file startup.S, at line 411. Pointer u.u_procp turned out to be NULL. Looks like the contents of U area has been incorrectly loaded from the swap area.

I would recommend to reduce the SD card clock.


Top
 Profile  
 
 Post subject: Re: A crash once a day
PostPosted: Thu Nov 26, 2015 4:21 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Well, the lowering the clock helps, but why it does not read swap properly with higher clock sometimes?
That is the question..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: A crash once a day
PostPosted: Thu Nov 26, 2015 8:36 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
It's probably because you are over-clocking the SPI and exceeding the maximum slew rate of the IO pin and losing definition of the signals.

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission