EmbeddedRelated.com
Forums
Memfault Beyond the Launch

RCM3200 & RCM3000 with DC 8.10

Started by Matt Linder October 30, 2003
Hi all,

Anyone use an RCM3200 or RCM3000 with dc 8.10 ?

These are the errors I get when only doing Ctrl-Y(bios recompile)

line 1 : ERROR ERROR : Undefined (but used) global label dkStackAddress
line 1 : ERROR ERROR : Undefined (but used) global label dkReturnAddress

Any ideas?

Oddly enough 8.01 works ok.

Matt Linder



Perhaps you're using the wrong LIB.DIR file. --- In rabbit-semi@rabb..., "Matt Linder" <mlinder@m...>
wrote:
> Hi all,
>
> Anyone use an RCM3200 or RCM3000 with dc 8.10 ?
>
> These are the errors I get when only doing Ctrl-Y(bios recompile)
>
> line 1 : ERROR ERROR : Undefined (but used) global label
dkStackAddress
> line 1 : ERROR ERROR : Undefined (but used) global label
dkReturnAddress
>
> Any ideas?
>
> Oddly enough 8.01 works ok.
>
> Matt Linder




Or, the wrong rabbitbios.c file !!!
Check the configuration of your compiler. The project files store
the user settings on lib.dir and bios.

Rudi
www.x-graph.be
--- In rabbit-semi@rabb..., "Steve" <seecwriter@y...> wrote:
>
> Perhaps you're using the wrong LIB.DIR file. > --- In rabbit-semi@rabb..., "Matt Linder" <mlinder@m...>
> wrote:
> > Hi all,
> >
> > Anyone use an RCM3200 or RCM3000 with dc 8.10 ?
> >
> > These are the errors I get when only doing Ctrl-Y(bios recompile)
> >
> > line 1 : ERROR ERROR : Undefined (but used) global
label
> dkStackAddress
> > line 1 : ERROR ERROR : Undefined (but used) global
label
> dkReturnAddress
> >
> > Any ideas?
> >
> > Oddly enough 8.01 works ok.
> >
> > Matt Linder




This occurs when debug single stepping has been disabled, and has been
fixed in DC 8.20 (which I believe is a free patch update from 8.10). If
you prefer to keep 8.10, the fix is as follows:

1) Open RabbitBios.c in an editor and search for "dkBLDebugInit::" (there
should only be one occurrence, at about line 2173).

2) In order to prevent references to the dkStackAddress and dkReturnAddress
variables when they are not defined, edit the routine as below to add the
two "DK_ENABLE_ASMSINGLESTEP" conditional compilation wrappers:

#asm xmem
; initialize portions of debug kernel that need to be done at
; the bios level
dkBLDebugInit::
bool hl
ld l,h
ld (dkLastAsmStart),hl
ld (dkLastAsmEnd),hl
ld (dkExitHook),hl
ld (dkSingleStepHook),hl
ld (dkPrologHook),hl
ld (dkEpilogHook),hl
ld (dkSetStdioTimerHook),hl
ld (dkCheckStdioTimeOutHook),hl
#if (DK_ENABLE_ASMSINGLESTEP == 1)
ld (dkStackAddress+__dkaddress+offset),hl
ld (dkReturnAddress+__dkaddress+offset),hl
#endif
xor a
ld (dkAckToSend),a
ld (dkLocks),a
ld (dkStatusFlags),a
ld (dkPrologCount),a
ld (dkCharData),a
ld (dkCharReady),a
#if (DK_ENABLE_ASMSINGLESTEP == 1)
ld (dkStackAddress+__dkaddress+xpc),a
ld (dkReturnAddress+__dkaddress+xpc),a
#endif
ld (dkStepFlags),a
ld (dkStatusFlags),a
lret
#endasm At 10:59 AM 10/30/03, you wrote:
>Hi all,
>
> Anyone use an RCM3200 or RCM3000 with dc 8.10 ?
>
>These are the errors I get when only doing Ctrl-Y(bios recompile)
>
>line 1 : ERROR ERROR : Undefined (but used) global label
>dkStackAddress
>line 1 : ERROR ERROR : Undefined (but used) global label
>dkReturnAddress
>
>Any ideas?
>
>Oddly enough 8.01 works ok.
>
>Matt Linder >
>
>To unsubscribe from this group, send an email to:
>rabbit-semi-unsubscribe@rabb... >
>">http://docs.yahoo.com/info/terms/



Memfault Beyond the Launch