Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: mcuelenaere on February 12, 2008, 04:01:52 PM

Title: ARM emulator/debugger
Post by: mcuelenaere on February 12, 2008, 04:01:52 PM
I'm looking for an ARM emulator/debugger, but couldn't find any specific to my needs.
If possible, it should run on Windows although Linux is also fine.

I already looked at SkEye, but it seems it doesn't have a good debugger (GDB compatibility is included but I don't think this will work with a non-ELF binary?)

What I really need is some step by step debugging/disassembling so I can find out what my code does (I'm inspecting the OF of the Creative Zen Vision:M)

Does somebody know anything that could fit my needs? :)
Title: Re: ARM emulator/debugger
Post by: saratoga on February 12, 2008, 04:28:39 PM
Its been talked about a lot, but we really don't have one setup to work with rockbox.  The closest thing is Toni's emulator, which actually emulates the entire Sandisk Sansa, but only imperfectly.  Its on the tracker, and I've proposed improving it as a possible GSOC2008 project.

If you come up with a good way to run ARM code (perhaps using an emulated ARM linux environment), I'd actually be very interested in looking at it.
Title: Re: ARM emulator/debugger
Post by: mcuelenaere on February 12, 2008, 04:56:16 PM
Well, SkyEye (http://skyeye.sourceforge.net/index.shtml) should emulate the ARM 926EJ-S (http://skyeye.svn.sourceforge.net/viewvc/skyeye/skyeye-v1/trunk/arch/arm/common/mmu/arm926ejs_mmu.c?revision=381&view=markup) (which is needed by the TMS320DM320) and the setup (http://skyeye.wiki.sourceforge.net/UM4) doesn't seem to be that hard; but you'll have to change the source (http://skyeye.wiki.sourceforge.net/SkyeyeDev) to get some good results I believe..

About Toni's emulator: does it have some kind of debugging function available and can you run ARM code on it which doesn't use any of the Sansa internals?
Title: Re: ARM emulator/debugger
Post by: saratoga on February 16, 2008, 11:51:56 AM


About Toni's emulator: does it have some kind of debugging function available and can you run ARM code on it which doesn't use any of the Sansa internals?

No, its simply an attempt to run the Sandisk firmware or rockbox for the e200 on an x86 PC.  Though its fairly simple and you could modify it.  SkyEye looks interesting though.  It might be a better starting point.