From: Magnus L. <lu...@ml...> - 2008-07-26 00:38:37
|
Hi I think it can be useful to compare the Cortex-M3 code which implements the arm_v7m architecture to the targets that descends from the armv_7_9. The usage and dependency looks as follows: target.c - General target framwork, common to all targets armv7m.c - Basic architecture methods - specific to armv7m targets cortex_m3.c - Target specific metods - specific to the cortexm3 cores cortex_swjdp.c - Debug interface methods - the swjdp debug model uséd in, but not exclusive to, the cortex m3 jtag.c - General JTAG framework, common to all JTAG based target debuggers They all implements the methods in the target.c interface, and they all use jtag.c to communicate with the the target debug hardware. They share methods to handle target endienaess, data word sizes and the external interfaces to gdb, The specific processors with onboard flash need flash interfaces, but this is no different from arm targets. So adding a non arm target is not more difficult than this..... And a lot of small details ... but thats just the fun part. Regards Magnus Brian Hutchinson wrote: > I'll check it out to try an come up to speed with the project. Any > other pointers are welcome if anyone thinks of things I should look at. > > Regards, > > Brian > > On Fri, Jul 25, 2008 at 1:29 PM, Øyvind Harboe > <oyv...@zy... <mailto:oyv...@zy...>> wrote: > > On Fri, Jul 25, 2008 at 7:26 PM, Brian Hutchinson > <b.h...@gm... <mailto:b.h...@gm...>> wrote: > > I'll check out the MIPS branch. I'll have to look around at all > the devices > > I have here at home and see if any of them are MIPS based. I > don't think > > they are. Off the top of my head, they are all ARM 7/9, MPC860, > x86, or > > Broadcom. The x86 Soekris board looks like the easiest to play > with to > > learn on. > > > The reason I mentioned the MIPS branch is that it is an example of > how to > add non-ARM target... If you want to make a patch for some other CPU, > I'd like to see that against trunk and if it looks like danger of > collateral > damage is limited, then I'd like to apply a non-ARM example to trunk, > even if it is work in progress. > > > > -- > Øyvind Harboe > http://www.zylin.com/zy1000.html > ARM7 ARM9 XScale Cortex > JTAG debugger and flash programmer > > > ------------------------------------------------------------------------ > > _______________________________________________ > Openocd-development mailing list > Ope...@li... > https://lists.berlios.de/mailman/listinfo/openocd-development > |