Hi Xiaofan,

You asked me what the result of Spencer's patch was under Mac OS X.  I
tested it against my system this evening and as you will see below, it
caused a number of startup faults.  It also appears to make the j-link
dongle completely unresponsive thereafter.

I guess the bigger question is this.  Did the Windows version ever suffer
from the intermittent startup problem or was this exclusively a problem with
Linux/Mac systems?

If Windows doesn't need the usb_reset and doesn't suffer from the
intermittent issue, doesn't it make more sense to put a conditional around
it that excludes that step for windows rather then forcing the device search
again?


Info : J-Link initialization started / target CPU reset initiated
Error: J-Link command 0xde failed (-13)
Error: J-Link command 0xdc failed (-13)
Error: J-Link command 0x01 failed (-13)
Error: J-Link command EMU_CMD_VERSION failed (-13)

Info : J-Link JTAG Interface ready
Error: J-Link command 0xdd failed (-13)
Error: J-Link command 0xdf failed (-13)
Error: J-Link setting speed failed (-13)
Error: usb_bulk_write failed (requested=6, result=-13)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Error: usb_bulk_write failed (requested=6, result=-13)
Error: jlink_tap_execute, wrong result -107 (expected 1)
.
.
.


Gary



Gary Carlson

Gary Carlson, MSEE
Principal Engineer
Carlson-Minot Inc.




On 7/7/09 8:18 PM, "Gary Carlson" <[email protected]> wrote:

> Xiaofan,
> 
> Your statement is correct.  Underlying the fancy GUI of Mac OS X is really a
> variant of the BSD UNIX operating system.  So it is not terribly surprising
> that both Linux and Mac behave similar in this case.  Based on past
> development experiences I have generally observed a problem cross-over rate
> of about 75% between the two systems.
> 
> Windows unfortunately is a different story!  :)
> 
> I haven't tried Spencer's patch yet.  Unfortunately I had to veer off this
> effort for most of the day to go deal with another problem on a different
> project.  I will hopefully get a chance to try it later this evening.
> 
> Gary
> 
> 
> 
> Gary Carlson
> 
> Gary Carlson, MSEE
> Principal Engineer
> Carlson-Minot Inc.
> 
> 
> 
> 
> On 7/7/09 8:03 PM, "Xiaofan Chen" <[email protected]> wrote:
> 
>> On Wed, Jul 8, 2009 at 10:59 AM, Gary Carlson<[email protected]>
>> wrote:
>>> Hi Xiaofan,
>>> 
>>> The second part of the patch is most certainly critical to Linux and Mac OS
>>> X systems.  I am less sure about Windows since I don't have anything to
>>> test.  If the usb_reset instruction is removed, you will find that the
>>> intermittent start-up failures that went away with the patch will be back.
>>> 
>>> Other then the "reset halt" command being broken, my V8 debugger works well
>>> and I have experienced no startup failures since.  As for the "reset halt"
>>> problem I am trying to find out what is causing that.
>>> 
>> 
>> I see. So Mac OS X behaves similar to Linux.
>> 
>> In any case, Spen's patch should work for Linux and Mac OS X
>> along with Windows. It is a proper practice to reopen the USB device
>> after a usb_reset(). Have you tried out his patch?
>> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Openocd-development mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/openocd-development







_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to