On Mon, May 21, 2012 at 9:50 PM, Xiaofan Chen <[email protected]> wrote:
> Just got a STM32F0Discovery today from ST Singapore
> and then of course I want to test it with latest OpenOCD.
>
> Here is the result under Mac OS X and it seems to work fine.
>
Seems to work fine under Windows as well. I just built OpenOCD
git with MinGW under Windows, with libusbx-1.0.11 binary.
C:\work\openocd\openocd_mingw\bin>openocd.exe -f board\stm32f0discovery.cfg
Open On-Chip Debugger 0.6.0-dev-hg (2012-05-21-21:49)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
1000 kHz
srst_only separate srst_nogate srst_open_drain
Info : clock speed 1000 kHz
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000000] [000016ec] libusbx: warning [init_device] could not get node connect
ion information for device '\\.\USB#VID_0000&PID_0000#5&2D0620DE&0&1': [87] The
parameter is incorrect.
Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : accepting 'telnet' connection from 4444
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x0800087c msp: 0x20000408
8000 kHz
Info : device id = 0x20006440
Info : flash size = 64kbytes
Info : device id = 0x20006440
Info : flash size = 64kbytes
flash 'stm32f1x' found at 0x08000000
dump_image filename address size
in procedure 'dump_image'
dumped 65536 bytes in 1.796886s (35.617 KiB/s)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20000408
verified 65536 bytes in 0.890631s (71.859 KiB/s)
stm32x mass erase complete
dumped 65536 bytes in 1.796886s (35.617 KiB/s)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20000408
verified 65536 bytes in 0.906256s (70.620 KiB/s)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x2000003e msp: 0x20000408
wrote 65536 bytes from file dump.bin in 2.875018s (22.261 KiB/s)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20000408
verified 65536 bytes in 0.906256s (70.620 KiB/s)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x0800087c msp: 0x20000408
shutdown command invoked
Open On-Chip Debugger
> init
> reset init
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x0800087c msp: 0x20000408
> adapter_khz 8000
8000 kHz
> flash probe 0
device id = 0x20006440
flash size = 64kbytes
device id = 0x20006440
flash size = 64kbytes
flash 'stm32f1x' found at 0x08000000
> dump_image dump.bin 0x8000000
dump_image filename address size
in procedure 'dump_image'
> dump_image dump.bin 0x8000000 65536
dumped 65536 bytes in 1.796886s (35.617 KiB/s)
> verify_image dump.bin 0x8000000
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20000408
verified 65536 bytes in 0.890631s (71.859 KiB/s)
> stm32f1x mass_erase 0
stm32x mass erase complete
> dump_image empty.bin 0x8000000 65536
dumped 65536 bytes in 1.796886s (35.617 KiB/s)
> verify_image empty.bin 0x8000000
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20000408
verified 65536 bytes in 0.906256s (70.620 KiB/s)
> flash write_image dump.bin 0x8000000
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x2000003e msp: 0x20000408
wrote 65536 bytes from file dump.bin in 2.875018s (22.261 KiB/s)
> verify_image dump.bin 0x8000000
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20000408
verified 65536 bytes in 0.906256s (70.620 KiB/s)
> reset run
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x0800087c msp: 0x20000408
> shutdown
shutdown command invoked
Connection to host lost.
--
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