Re: [Openocd-development] sw breakpoints in flash

2011-04-28 Thread Xiaofan Chen
On Tue, Apr 26, 2011 at 9:36 PM, Øyvind Harboe wrote: > On Tue, Apr 26, 2011 at 3:19 PM, Xiaofan Chen wrote: >> On Tue, Apr 26, 2011 at 9:05 PM, Øyvind Harboe >> wrote: Like this one? http://www.segger.com/cms/jlink-flash-breakpoints.html >>> >>> Yep. :-) >>> >>> They say performance

Re: [Openocd-development] sw breakpoints in flash

2011-04-26 Thread Øyvind Harboe
On Tue, Apr 26, 2011 at 3:19 PM, Xiaofan Chen wrote: > On Tue, Apr 26, 2011 at 9:05 PM, Øyvind Harboe > wrote: >>> Like this one? >>> http://www.segger.com/cms/jlink-flash-breakpoints.html >> >> Yep. :-) >> >> They say performance isn't a problem. >> >> Anyone want to put together a patch? > > S

Re: [Openocd-development] sw breakpoints in flash

2011-04-26 Thread Xiaofan Chen
On Tue, Apr 26, 2011 at 9:05 PM, Øyvind Harboe wrote: >> Like this one? >> http://www.segger.com/cms/jlink-flash-breakpoints.html > > Yep. :-) > > They say performance isn't a problem. > > Anyone want to put together a patch? Some say it is patented but I do not know what is really patented. http

Re: [Openocd-development] sw breakpoints in flash

2011-04-26 Thread Øyvind Harboe
> Like this one? > http://www.segger.com/cms/jlink-flash-breakpoints.html Yep. :-) They say performance isn't a problem. Anyone want to put together a patch? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.

Re: [Openocd-development] sw breakpoints in flash

2011-04-26 Thread Xiaofan Chen
On Tue, Apr 26, 2011 at 4:20 PM, Øyvind Harboe wrote: > Here is an idea for a new feature: sw breakpoints in flash. > > The way this feature would work would be to detect if > a breakpoint is in the flash region. If it is, a hw breakpoint > would be used until the hw breakpoints run out. > > At th

Re: [Openocd-development] sw breakpoints in flash

2011-04-26 Thread Øyvind Harboe
> Right. However, I do think these are the only way to go if you want SW > breakpoints in flash, so having support for flash patch units would be quite > handy. > Otherwise, HW breakpoints are the only alternative that really works. Are these flash patching units part of vendor IP or is it somethi

Re: [Openocd-development] sw breakpoints in flash

2011-04-26 Thread Michael Schwingen
On 04/26/2011 10:20 AM, Øyvind Harboe wrote: Here is an idea for a new feature: sw breakpoints in flash. The way this feature would work would be to detect if a breakpoint is in the flash region. If it is, a hw breakpoint would be used until the hw breakpoints run out. At that point the flash s

[Openocd-development] sw breakpoints in flash

2011-04-26 Thread Øyvind Harboe
Here is an idea for a new feature: sw breakpoints in flash. The way this feature would work would be to detect if a breakpoint is in the flash region. If it is, a hw breakpoint would be used until the hw breakpoints run out. At that point the flash sector would be rewritten with the sw breakpoint