This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions,
flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.
I added errorlogging to my app but it doesn't seem to work.
The results I get are always the same.
this is the code i use (nearly the same as the example):
n = (errLogInfo.ExceptionIndex > (unsigned) ERRLOG_NUM_ENTRIES)
? (unsigned) ERRLOG_NUM_ENTRIES : errLogInfo.ExceptionIndex;
// n = cnt;
if( n > ERRLOG_NUM_ENTRIES || n == 0)
n = ERRLOG_NUM_ENTRIES;
k = (errLogInfo.ExceptionIndexMod + ERRLOG_NUM_ENTRIES - n)
% ERRLOG_NUM_ENTRIES;
for(j=0;j
{
k %= (unsigned) ERRLOG_NUM_ENTRIES;
if(!errlogGetNthEntry(k))
{
printf("Entry %d (%s):\n\r", k, ErrCodeText((int)
errLogEntry.errType));
printf("%s\n\r", errlogFormatEntry());
}
else
{
printf("cheksum error\n");
}
}
I generated a few watchdog timeout errors but the result is the same
for every index, except for the entry number:
Error type=0
Address = 00:0000
Time: 01/01/1980 00:00:00
Entry 7 (Unknown exception code!):
I have ENABLE_ERROR_LOGGING defined to one and no debuggng on.
Also the header info stays the same, just like it's not updated
Status Byte: 9b
#Exceptions: 0
Index last exception: -1
#SW Resets: 2888
#HW Resets: 2747
#WD Timeouts: 2747
Any help or hints are welcome.
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )