Re: [Openocd-development] Adding M0 support
Hi Kevin, could you submit a patch that renames cortex-m3.c => cortex-m.c and then a patch with your Cortex M0 work on top of cortex-m.c? Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] Adding M0 support
What I just posted has the M0 as a complete copy and paste of the M3 code, so the entire thing is duplicated. However, that was more because we wanted to test the M0 code but still be able to work with the M3. The M3 is almost a perfect super set of the M0, so I don't think it would be hard to avoid duplicating everything. However, there are a couple of parts where it would be unavoidable, specificly the Thumb assembly functions. There are also are some more sutle differences (reset handleing, registers, tracing support, interrupts) but none of them are too dramatic. Thanks, Kevin Kiningham On Fri, Jun 10, 2011 at 4:56 PM, Øyvind Harboe wrote: > What would it take to convert cortex-m3.c to cortex-m.c and avoid > code duplication like we had for cortex-a8/9.c? > > Is there a lot of code duplication here? I haven't looked. > > -- > Øyvind Harboe > > Can Zylin Consulting help on your project? > > US toll free 1-866-980-3434 / International +47 51 87 40 27 > > http://www.zylin.com/zy1000.html > ARM7 ARM9 ARM11 XScale Cortex > JTAG debugger and flash programmer > ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] Adding M0 support
What would it take to convert cortex-m3.c to cortex-m.c and avoid code duplication like we had for cortex-a8/9.c? Is there a lot of code duplication here? I haven't looked. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] Adding M0 support
As I remember, I have tested the CM0 in OpenOCD, because Versaloon supports SWD in OpenOCD. Below is the difference I found: For CM3: adi_dp_info.memaccess_tck = 8; adi_dp_info.tar_autoincr_block = (1 << 12); For CM0: adi_dp_info.memaccess_tck = 8; adi_dp_info.tar_autoincr_block = (1 << 10); I can do some tests this week on LPC1114 under OpenOCD. 2011/6/10 Øyvind Harboe > Hi Kevin, > > from the maintainers I can say that we're very much interested in > such contributions. By posting it to the list, we hopefully also can > get others to pitch in! > > -- > Øyvind Harboe > > Can Zylin Consulting help on your project? > > US toll free 1-866-980-3434 / International +47 51 87 40 27 > > http://www.zylin.com/zy1000.html > ARM7 ARM9 ARM11 XScale Cortex > JTAG debugger and flash programmer > ___ > Openocd-development mailing list > Openocd-development@lists.berlios.de > https://lists.berlios.de/mailman/listinfo/openocd-development > -- Best Regards, SimonQian http://www.SimonQian.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] Adding M0 support
Hi Kevin, from the maintainers I can say that we're very much interested in such contributions. By posting it to the list, we hopefully also can get others to pitch in! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
[Openocd-development] Adding M0 support
Hi, I've been working on adding cortex-M0 support and I was wondering if there was any interest in adding it to the official repo? Especially with SWD support coming soon, it seems like this would be a good time to add it. My code right now is very similar to the M3 stuff, except for a couple of changes to the reset and interrupt code. Unfortunately, I'm not terribly familiar with the openocd source, so I'm sure that what I've written so far will have to be improved. The code (at least for my purposes) does work quite well however, so hopefully any bugs will be minor. Thanks, Kevin Kiningham ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development