I am using a "raven" type JTAG device with the Sharp LH79520 (a "little-endian" ARM variant).
GDB always 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 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.