Search found 7 matches

by chan_24
Fri Oct 15, 2010 2:36 am
Forum: NetBurner Software
Topic: UCOS_ENTER_CRITICAL()
Replies: 17
Views: 9951

Re: UCOS_ENTER_CRITICAL()

Hi,

Thanks for your input. The problem was with the printf() function. Just not to reproduce the issue we commented out some of the prints we suspected on and it turned out to be correct. Also we checked that the stack was corrupted for the running task.

Thanks,
Chandan
by chan_24
Sun Oct 03, 2010 11:58 pm
Forum: NetBurner Software
Topic: UCOS_ENTER_CRITICAL()
Replies: 17
Views: 9951

Re: UCOS_ENTER_CRITICAL()

Tod,
Thanks for your reply. I think you are right that, the memory has got corrupted before the crash.
Do you know any command to check free space on RAM ?
by chan_24
Mon Sep 27, 2010 2:26 am
Forum: NetBurner Software
Topic: UCOS_ENTER_CRITICAL()
Replies: 17
Views: 9951

Re: UCOS_ENTER_CRITICAL()

Did you change the default Ticks per second?

Do you have any user written interrupts that are watching timers?

Some thing in your code overflowing at 2560000 seconds?

The default value of Ticks per second is not altered. #define TICKS_PER_SECOND (20)
I will check and let you know if we have ...
by chan_24
Mon Sep 27, 2010 2:20 am
Forum: NetBurner Software
Topic: UCOS_ENTER_CRITICAL()
Replies: 17
Views: 9951

Re: UCOS_ENTER_CRITICAL()

What's the history? Is this a new app and it just hit its first 40 days and crashed. Is it an existing app that just started showing this behavior? If so did you make any changes recently? Are you using printf/sprintf or cout/ostringstream? In my experience, most traps trace back to a memory ...
by chan_24
Fri Sep 24, 2010 3:14 am
Forum: NetBurner Software
Topic: UCOS_ENTER_CRITICAL()
Replies: 17
Views: 9951

Re: UCOS_ENTER_CRITICAL()

No there are no user written interrupts.

This issue happens if the hardware is running continuously for around 40 days. Hence to check this out, initialized the TimeTick value to 39 days and after 14 hours the same issue happened.

But initializing the TimeTick to 39 days, 14 Hours did not cause ...
by chan_24
Thu Sep 23, 2010 5:03 am
Forum: NetBurner Software
Topic: UCOS_ENTER_CRITICAL()
Replies: 17
Views: 9951

Re: UCOS_ENTER_CRITICAL()

The system reboots when UCOS_ENTER_CRITICAL section is called by OSTimeTick() function, which is periodically called by BIOS.

Paul,
As mentioned above, the hardware reboots and according to the Trap information, the last successful instruction executed is UCOS_ENTER_CRITICAL() [OSTimeTick].
Also ...
by chan_24
Wed Sep 22, 2010 5:54 am
Forum: NetBurner Software
Topic: UCOS_ENTER_CRITICAL()
Replies: 17
Views: 9951

UCOS_ENTER_CRITICAL()

Upon trying to execute UCOS_ENTER_CRITICAL() the hardware reboots with the following trap information.

------Trap information-----------------------------
Exception Frame/A7 =021A8AC4
Trap Vector =Access Error (2)
Format =03
Status register SR =2504
Fault Status =0C
Faulted PC =020ED4B4 ...