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.
mymacmini:stm32f0discovery xiaofanc$ openocd -f board/stm32f0discovery.cfg
Open On-Chip Debugger 0.6.0-dev-00577-g87a9ee3 (2012-05-21-20:33)
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
...
mymacmini:stm32f0discovery xiaofanc$ telnet localhost 4444
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
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 6000
6000 kHz
> flash probe 0
device id = 0x20006440
flash size = 64kbytes
device id = 0x20006440
flash size = 64kbytes
flash 'stm32f1x' found at 0x08000000
> adapter_khz 8000
8000 kHz
> dump_image dump.bin 0x8000000 65536
dumped 65536 bytes in 1.398191s (45.773 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.801915s (79.809 KiB/s)
> stm32f0x mass_erase 0
invalid command name "stm32f0x"
> stm32f1x mass_erase 0
stm32x mass erase complete
> dump_image empty.bin 0x8000000 65536
dumped 65536 bytes in 1.401201s (45.675 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.806905s (79.315 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.017494s (31.723 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.808074s (79.201 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 closed by foreign host.
--
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