I just bought an Olimex ARM-USB-OCD and used the supplied CD to install eclipse, openOCD, codesourcery, etc, and it doesn’t seem to be allowing me to debug my STM32F103RET6 on my custom board.
I know I don’t have any problems with my target board or the ARM-USB-OCD itself, because the eval version of Crossworks can connect to the target fine.
I follow the instructions in the HOW_TO_INSTALL.txt on the CD,
-
launch eclipse
-
open the given stm32f103-stk project
-
Build the project
-
Run → External Tools → OpenOCD for STM32
and I get the following in Console tab:
Open On-Chip Debugger 1.0 (2008-10-15-13:12) svn:exported
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Info: options.c:50 configuration_output_handler(): jtag_speed: 10, 10
Info: options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-10-15-13:12) svn:exported
Info: jtag.c:1369 jtag_examine_chain(): JTAG device found: 0x3ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info: jtag.c:1369 jtag_examine_chain(): JTAG device found: 0x06414041 (Manufacturer: 0x020, Part: 0x6414, Version: 0x0)
Info: jtag.c:1369 jtag_examine_chain(): JTAG device found: 0x3ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info: jtag.c:1369 jtag_examine_chain(): JTAG device found: 0x06414041 (Manufacturer: 0x020, Part: 0x6414, Version: 0x0)
Error: jtag.c:927 jtag_add_reset(): BUG: transition of req_tlr_or_trst and req_srst in the same jtag_add_reset() call is undefined
I realised this error isn’t necessarily fatal, so I then continue on with:
- Run → Debug Configurations → Zylin Embedded debug (Cygwin) → stm32f103-stk → Debug
and a error box pops up which says “Execution is suspended because of error”, with details “cont, The program is not being run”. In the console appears:
Warning: /cygdrive/C/gccfd/projects/stm32f103-stk: No such file or directory.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No source file named main.out.
No registers.
target remote localhost:3333
Remote connection closed
monitor soft_reset_halt
"monitor" command not supported by this target.
monitor flash erase_sector 0 0 3
"monitor" command not supported by this target.
monitor flash write_image main.bin 0x0
"monitor" command not supported by this target.
break main
1breakpointkeepy 0x00000014in main at main.c:43
Breakpoint 1 at 0x14: file main.c, line 43.
cont
The program is not being run.