Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb -> OcdLibRemote -> Raven | Wiggler -> LittleEndian Arm
@ 2003-09-16 16:38 John Devereux
  2003-09-17 14:02 ` Peter Reilley
  0 siblings, 1 reply; 3+ messages in thread
From: John Devereux @ 2003-09-16 16:38 UTC (permalink / raw)
  To: gdb


Hi,

Firstly, apologies if this is off-topic for the list.

GDB loads the application into the chip with the wrong endianness!
 
So the instruction opcodes are all scrambled up and the program is
garbage. I have tried all four combinations of "set endian" and the
"monitor" equivalent, they seem to make no difference. (You can make
the program APPEAR correct like this, but it is still wrongly loaded
into the chip and does not run).

I am using a "raven" type JTAG device with the Sharp LH79520 (a
"little-endian" ARM variant).
 
I can load and run programs fine using the Macraigor OCD Commander
application. Once loaded like this, I can even use GDB to step through
the application. It is just the loading phase which is going wrong.
 
Can anyone shed some light on this? Is anyone doing this with a
"little-endian" ARM?
 
I have currently using V5.3 of arm-elf-gdb, tried on both linux and
windows.

Some more information:

GDB uses OCDlibremote to talk to the hardware. The loading process is
incorrectly inverting the "endianness", for instructions, *but not for
data !!!*

How is this even possible? I suppose either gdb or OCDlibremote must
be doing some "interpretation", somehow. This happens even when the
input file is in a raw s-record format.

Could somebody please confirm that they have had this configuration
working:

gdb -> OcdLibremote -> Raven | Wiggler -> LittleEndian ARM

Help!

Thanks,

-- 

John Devereux


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-20 19:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-16 16:38 gdb -> OcdLibRemote -> Raven | Wiggler -> LittleEndian Arm John Devereux
2003-09-17 14:02 ` Peter Reilley
2003-09-20 19:46   ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox