bootstrapping ARM7TDMI-Custom-Hardware without gdb-stubs

William A. Gatliff bgat@billgatliff.com
Fri Apr 5 11:50:00 GMT 2002


Peter:


Newlib's CRT0 is newlib/libc/sys/arm/crt0.S:

        /*  Issue Angel SWI to read stack info */
        mov     r0, #AngelSWI_Reason_HeapInfo
        adr     r1, .LC0        /*  point at ptr to 4 words to receive data */
        swi     AngelSWI_ARM    /*  We are always in ARM mode for startup */

Looks like you've configured for ARM_RDI_MONITOR (that's the only
configuration that has swi as the third instruction).  But apparently,
you aren't running Angel on your target?  Or, you've nuked your
exception  vector table.

You could rebuild newlib without ARM_RDI_MONITOR defined, or you could
just link in your own start function to replace newlib's.  Use the
newlib source as a guide.


HTH,


b.g.



On Fri, Apr 05, 2002 at 01:34:41AM +0200, Peter Wermeling wrote:
> 
> 
> Hello all,
> 
> I try to bootstrap my own hardware ARM7TDMI from Samsung(S3C44BOX) and dont
> have runnung gdbstubs on it.
> In the start function, the 3rd instruction is an SWI123456 and there go's my
> programm off.
> How can I tell gcc and ld to build for a naked target without any stubs  or
> how can I make stubs for it?
> I can download via JTAG , debug with the OCD-GDB and also flashwrite via it.
> My target has fixed Chipselects without remapping, so it has ever flash at
> 0x0 -the vector-table.
> I have some experiance and results with the original armtools, in cross-gcc
> I'm newbie.
> 
> thanks for help
> 
> regards
> 
> Peter Wermeling
> 
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
> 

-- 
Bill Gatliff
bgat@billgatliff.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list