On Sun, May 13, 2012 at 9:58 PM, Xiaofan Chen <[email protected]> wrote:
> 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 my Mac Mini running Mac OS X, OpenOCD
>> works fine with the stlink v1, tested with
>> STM32VL Discovery board.
>>

Got it work under Linux as well.

mcuee@GX620Ubuntu:~/Desktop/build/openocd/stlink$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04 LTS
Release:        12.04
Codename:       precise

mcuee@GX620Ubuntu:~/Desktop/build/openocd/stlink$ cat openocd.cfg
source [find board/stm32vldiscovery.cfg]
init
reset init
adapter_khz 8000
poll off
dump_image dump.bin 0x08000000 131072
verify_image dump.bin 0x08000000
stm32f1x mass_erase 0
flash write_image dump.bin 0x08000000
verify_image dump.bin 0x08000000
load_image dump.bin 0x20000000 bin 0x20000000 20480
shutdown

mcuee@GX620Ubuntu:~/Desktop/build/openocd/stlink$ openocd -f openocd.cfg
Open On-Chip Debugger 0.6.0-dev-00549-g47cf0aa (2012-05-10-21:06)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
1000 kHz
Info : clock speed 1000 kHz
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
8000 kHz
dumped 131072 bytes in 3.393654s (37.717 KiB/s)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x2000003a msp: 0xfffffffc
verified 131072 bytes in 2.208609s (57.955 KiB/s)
Info : device id = 0x10016420
Info : flash size = 128kbytes
stm32x mass erase complete
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x2000003e msp: 0xfffffffc
wrote 131072 bytes from file dump.bin in 4.517791s (28.332 KiB/s)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x2000003a msp: 0xfffffffc
verified 131072 bytes in 2.227814s (57.455 KiB/s)
20480 bytes written at address 0x20000000
downloaded 20480 bytes in 0.350868s (57.001 KiB/s)
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