On Sun, May 13, 2012 at 8:57 PM, Xiaofan Chen <[email protected]> wrote:
> On Wed, May 2, 2012 at 6:55 PM, Spencer Oliver <[email protected]> wrote:
>> On 2 May 2012 11:39, Xiaofan Chen <[email protected]> wrote:
>>> On Wed, May 2, 2012 at 6:10 PM, Spencer Oliver <[email protected]> wrote:
>>>> On 2 May 2012 10:33, Xiaofan Chen <[email protected]> wrote:
>>>>>
>>>>> Thanks. With regard to STLink V1, is it supported by
>>>>> OpenOCD? If yes, then which OS? I remember that
>>>>> it will be not possible to support STLink V1 under
>>>>> Mac OS X.
>>>>>
>>>>
>>>> Yes the V1 is supported.
>>>> Do not see a reason why it should not work, taking into account the
>>>> broken mass storage implementation of the V1.
>>>
>>> Thanks. I assume that under Mac OS X, the following
>>> codeless kext is needed, right?
>>> https://github.com/texane/stlink/tree/master/stlinkv1_macosx_driver
>>>
>>
>> guess so i do not have access to Mac OSX
>
> Yes the codeless kext works fine under Mac OS X 10.7.4.
>
>>> Under Windows, then we need to replace the Mass Storage
>>> driver with WinUSB.
>>>
>>
>> we now emulate the mass storage cmds using libusb for the V1.
>> for V2 we use libusb 1.0 with winusb backend.
>
> Under my Mac Mini running Mac OS X, OpenOCD
> works fine with the stlink v1, tested with
> STM32VL Discovery board.
>

But then when I tried the standalone ST-Link V1 and the IAR
STM32 Starterkit STM32-SK, it failed.

mymacmini:stm32 xiaofanc$ openocd -f interface/stlink-v1.cfg -f
target/stm32f1x.cfg
Open On-Chip Debugger 0.6.0-dev-00550-g4257cb7 (2012-05-13-21:38)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
1000 kHz
1000 kHz
adapter_nsrst_delay: 100
Runtime Error: 
/usr/local/Cellar/open-ocd/HEAD/share/openocd/scripts/target/stm32f1x.cfg:27:
invalid command name "jtag_ntrst_delay"
in procedure 'script'
at file "embedded:startup.tcl", line 58
at file 
"/usr/local/Cellar/open-ocd/HEAD/share/openocd/scripts/target/stm32f1x.cfg",
line 27


-- 
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