Re: [OpenOCD-devel] Cortex A/M - DAP crazyness

2014-05-03 Thread Paul Fertser
On Sat, May 03, 2014 at 10:50:16AM -0700, Duane Ellis wrote: > > So if OpenOCD gains support for this kind of AP, it'll need to > > basically handle two completely different JTAG chains at the same > > time. > > Exactly correct. > > > I think that implementing that would be unreasonably hard (due

Re: [OpenOCD-devel] Cortex A & M - issue = assumed DAP access ports

2014-05-03 Thread Paul Fertser
On Sat, May 03, 2014 at 09:32:45AM -0700, Duane Ellis wrote: > On May 3, 2014, at 7:48 AM, Paul Fertser wrote: > > >>> > >> Multi level ROM tables (not currently supported), and ROM tables > >> with bugs (no HW guys have have bugs, its only us SW guys right?) > >> they may never get fixed. > >

Re: [OpenOCD-devel] Cortex-M3 - Issue: BKPT_TYPE_BY_ADDRESS()

2014-05-03 Thread Paul Fertser
On Sat, May 03, 2014 at 09:17:02AM -0700, Duane Ellis wrote: > On May 3, 2014, at 8:42 AM, Paul Fertser wrote: > > You wouldn't try to set a breakpoint on a dead/crashed system, or > > would you? > > *YES* - but that might happen later (continuing the example above) > *maybe the PC stopped inside

Re: [OpenOCD-devel] Cortex A/M - DAP crazyness

2014-05-03 Thread Duane Ellis
On May 3, 2014, at 7:42 AM, Paul Fertser wrote: That DAP with other processors via the JTAG_AP port. >>> >>> What if OpenOCD would expose JTAG_AP ports via a regular socket with a >>> JTAG-level protocol >> >> It should provide a standalone tap-struct - just like all of the >> other

Re: [OpenOCD-devel] Altera USB Blaster initialization

2014-05-03 Thread Robert Jarzmik
Daniel Glöckner writes: > Hi, > > I've recently had the opportunity to get my hands on a genuine Altera > USB Blaster revision C. Because my board needs "usb_blaster_pin pin6 s", > I noticed an issue with the initialization of the USB Blaster. > > Initialzation is currently implemented as follows

Re: [OpenOCD-devel] Cortex A & M - issue = assumed DAP access ports

2014-05-03 Thread Duane Ellis
On May 3, 2014, at 7:48 AM, Paul Fertser wrote: >>> >> Multi level ROM tables (not currently supported), and ROM tables >> with bugs (no HW guys have have bugs, its only us SW guys right?) >> they may never get fixed. > > Displaying of nested ROM tables is already available in 0.8.0, dbgbase >

Re: [OpenOCD-devel] Cortex-M3 - Issue: BKPT_TYPE_BY_ADDRESS()

2014-05-03 Thread Duane Ellis
On May 3, 2014, at 8:42 AM, Paul Fertser wrote: > On Sat, May 03, 2014 at 07:03:18AM -0700, Duane Ellis wrote: >> >> On May 3, 2014, at 12:20 AM, Paul Fertser wrote: >>> Could write a new function - something like: flash_IsThisAddressInFlash( target_pointer, ADDRESS ) this w

Re: [OpenOCD-devel] Cortex-M3 - Issue: BKPT_TYPE_BY_ADDRESS()

2014-05-03 Thread Michael Schwingen
On 03.05.2014 17:42, Paul Fertser wrote: > On Sat, May 03, 2014 at 07:03:18AM -0700, Duane Ellis wrote: >> I do - need to attach to a dead/crashed system without reset, aka: “a >> soft attach” - no reset. Because you need to figure out why things >> have crashed, various bus clocks may be disabled

Re: [OpenOCD-devel] Cortex-M3 - Issue: BKPT_TYPE_BY_ADDRESS()

2014-05-03 Thread Paul Fertser
On Sat, May 03, 2014 at 07:03:18AM -0700, Duane Ellis wrote: > > On May 3, 2014, at 12:20 AM, Paul Fertser wrote: > > > >> Could write a new function - something like: > >> flash_IsThisAddressInFlash( target_pointer, ADDRESS ) this would *NOT* > >> probe anything > >> Do you see a probl

Re: [OpenOCD-devel] Cortex A/M - DAP crazyness

2014-05-03 Thread Jens Bauer
Hi Paul. (Sorry, I've gone a bit off-topic; this email is not related to OpenOCD). On Sat, 3 May 2014 19:01:04 +0400, Paul Fertser wrote: > It doesn't work well for just > about anything, but messes with e.g. discussing patches. You're right about that! Some day, someone will probably find a fix

Re: [OpenOCD-devel] Cortex-M3 - Issue: BKPT_TYPE_BY_ADDRESS()

2014-05-03 Thread Duane Ellis
On May 3, 2014, at 12:20 AM, Paul Fertser wrote: > >> Could write a new function - something like:flash_IsThisAddressInFlash( >> target_pointer, ADDRESS ) this would *NOT* probe anything >> Do you see a problem with assuming the “flash address range” is always valid >> if not auto-prob

Re: [OpenOCD-devel] Cortex A/M - DAP crazyness

2014-05-03 Thread Paul Fertser
Hi Jens, On Sat, May 03, 2014 at 04:03:26PM +0200, Jens Bauer wrote: > On Sat, 3 May 2014 10:19:52 +0400, Paul Fertser wrote: > > 2. Whole paragraphs without line breaks (i.e. you end up with one line > > per paragraph). > > In fact, this is not a problem at the sender's side, it's really the > r

Re: [OpenOCD-devel] Cortex A & M - issue = assumed DAP access ports

2014-05-03 Thread Paul Fertser
On Sat, May 03, 2014 at 06:56:29AM -0700, Duane Ellis wrote: > On May 2, 2014, at 11:30 PM, Paul Fertser wrote: > > On Wed, Apr 30, 2014 at 01:59:36PM -0700, Duane Ellis wrote: > >> * The Cortex A code sometimes cannot discover the correct AP ports > > > > Do you have an example of when it happen

Re: [OpenOCD-devel] Cortex A/M - DAP crazyness

2014-05-03 Thread Paul Fertser
On Sat, May 03, 2014 at 06:44:24AM -0700, Duane Ellis wrote: > On May 2, 2014, at 11:19 PM, Paul Fertser wrote: > > Your MUA is apparently doing strange things: > > mac EMAIL - and I’m probably trying to be polite and screwing it up and > making it worse. I hope this one is better, no goofing ar

Re: [OpenOCD-devel] Cortex A/M - DAP crazyness

2014-05-03 Thread Jens Bauer
Hi Paul and Duane. On Sat, 3 May 2014 10:19:52 +0400, Paul Fertser wrote: > 2. Whole paragraphs without line breaks (i.e. you end up with one line > per paragraph). In fact, this is not a problem at the sender's side, it's really the receiver's problem. Only the receiver knows how many character

Re: [OpenOCD-devel] Cortex A & M - issue = assumed DAP access ports

2014-05-03 Thread Duane Ellis
On May 2, 2014, at 11:30 PM, Paul Fertser wrote: > Hi, > > On Wed, Apr 30, 2014 at 01:59:36PM -0700, Duane Ellis wrote: >> * The Cortex A code sometimes cannot discover the correct AP ports > > Do you have an example of when it happens and how? Multi level ROM tables (not currently supported)

Re: [OpenOCD-devel] Cortex A/M - DAP crazyness

2014-05-03 Thread Duane Ellis
On May 2, 2014, at 11:19 PM, Paul Fertser wrote: > Hi Duane, > > Your MUA is apparently doing strange things: mac EMAIL - and I’m probably trying to be polite and screwing it up and making it worse. I hope this one is better, no goofing around with replies > > On Fri, May 02, 2014 at 10:42:

Re: [OpenOCD-devel] OpenOCD + RaspberryPi

2014-05-03 Thread Paul Fertser
Hi, On Fri, May 02, 2014 at 04:54:31AM -0400, Berk Akinci wrote: > 1) Is there enough interest in using RaspberryPi as the whole > debugger? (no host/USB dongle necessary.) Well, apparently some people are using that, but I've no idea how many. I still haven't seen any nice buffer board (like t

Re: [OpenOCD-devel] Cortex-M3 - Issue: BKPT_TYPE_BY_ADDRESS()

2014-05-03 Thread Paul Fertser
On Fri, May 02, 2014 at 07:56:43AM -0700, Duane Ellis wrote: > Paul>> What do you think, do you see any downsides with this? > > Concerns: > > a) Masked rom - is not flash - how do you specify that range? > Example: Many M3s have a small masked rom ‘boot loader’ you want to > step through and deb