On Wed, May 23, 2012 at 6:39 AM, Andreas Fritiofson
<[email protected]> wrote:
> On Tue, May 22, 2012 at 4:43 PM, Xiaofan Chen <[email protected]> wrote:
>> On Mon, May 21, 2012 at 9:14 AM, Xiaofan Chen <[email protected]> wrote:
>>> On Mon, May 21, 2012 at 6:32 AM, salvador <[email protected]> wrote:
>>>> There is a problem with the ftdi driver related to  drscan. The last bit
>>>> is never read.
>>>> The problem is in  ftdi_execute_scan(), at line 427 ( bit_offset++; ).
>>>> This will generate an offset of 32 in a drscan32, so bit 31 is never
>>>> updated.
>>>
>>> Not so sure this has something to do with the segfault I found
>>> when testing under Mac OS X. I will try again with this mod.
>>
>> Unfortunately my TI/Luminary Ek-LM3S1968 was broken
>> accidentally today so that I can not finish the tests.
>>
>> Anyway, the mod does not seem to help much since gcc-4.6
>> works with or without the mod. LLVM with mod no
>> longer segfault but may still hang. clang with mod
>> also may still hang.
>
> As far as I can tell this really is a quite severe bug. Really strange
> that it worked so well before. I can't notice a difference after
> fixing it, so I hope the fix is valid. Please try the updated
> patchset, now in gerrit. I've reorganized the patches a bit and merged
> the small fixups into the main patches.

I just tried the updated patchset and it works fine for the
STM32 target using Amontec JTAGkey2.

I will try to borrow a TI/Luminary demo board now that
my board is dead (the USB connector was broken off).

mymacmini:stm32 xiaofanc$ ~/bin/bin/openocd -f openocd.cfg
Open On-Chip Debugger 0.6.0-dev-00591-gc5b4ab4 (2012-05-23-07:56)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
cortex_m3 reset_config sysresetreq
Info : clock speed 1000 kHz
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020,
part: 0x6410, ver: 0x1)
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
1000 kHz
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020,
part: 0x6410, ver: 0x1)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800272c msp: 0x20000810
8000 kHz
dumped 131072 bytes in 0.343124s (373.043 KiB/s)
verified 131072 bytes in 0.257510s (497.068 KiB/s)
Info : device id = 0x20036410
Info : flash size = 128kbytes
stm32x mass erase complete
wrote 131072 bytes from file dump.bin in 3.540809s (36.150 KiB/s)
verified 131072 bytes in 0.257520s (497.049 KiB/s)
20480 bytes written at address 0x20000000
downloaded 20480 bytes in 0.047005s (425.487 KiB/s)
1000 kHz
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020,
part: 0x6410, ver: 0x1)
shutdown command invoked

-- 
Xiaofan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to