|
From: Jon F. <jf...@em...> - 2014-07-22 19:17:32
|
I am sorry to bother everybody. I suspect this has an easy answer, but I cannot find it. I am using an STM32F105, with the ST-LINK/V2, on a custom-designed PCB. I cannot get it to configure properly with the included script files. I've created my own script, but the same error appears. I have tried with 0.8.0 and 0.7.0. I am calling OpenOCD in a Windows 7 command prompt (from the project directory): >C:\OpenOCD\openocd-0.8.0\bin\openocd-0.8.0.exe -d -f openocd_tag.cfg -l openocdlog.txt The following command in the script file fails: jtag newtap stm32f1x cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477 With this response: User : 61 23 command.c:666 command_run_line(): Runtime Error: openocd_embedrf_tag.cfg:14: jtag newtap stm32f1x cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477: command requires more arguments in procedure 'script' at file "embedded:startup.tcl", line 58 in procedure 'jtag' called at file "openocd_tag.cfg", line 14" Thanks for any guidance you can give me. -------- My script file: set _CHIPNAME stm32f1x set _WORKAREASIZE 0x1000 set _ENDIAN little set _TRANSPORT hla_jtag set _CPUTAPID 0x3ba00477 set _BSTAPID 0x06418041 interface hla hla_layout stlink hla_device_desc "ST-LINK/V2" hla_vid_pid 0x0483 0x3748 transport select $_TRANSPORT jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID jtag newtap $_CHIPNAME bs -irlen 5 -expected-id $_BSTAPID set _TARGETNAME $_CHIPNAME.cpu set _FLASHNAME $_CHIPNAME.flash target create $_TARGETNAME cortex_m -endian $_ENDIAN -chain-position $_TARGETNAME $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0 flash bank $_FLASHNAME stm32f1x 0x08000000 0 0 0 $_TARGETNAME adapter_khz 1000 adapter_nsrst_delay 100 jtag_ntrst_delay 100 ------ And, finally, the end of the debug output log: Debug: 54 22 command.c:366 register_command_handler(): registering 'ocd_jtag'... Debug: 55 23 command.c:366 register_command_handler(): registering 'ocd_jtag'... Debug: 56 23 command.c:366 register_command_handler(): registering 'ocd_jtag'... Debug: 57 23 command.c:366 register_command_handler(): registering 'ocd_jtag'... Debug: 58 23 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap stm32f1x cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477 Debug: 59 23 command.c:145 script_debug(): command - usage ocd_usage jtag newtap stm32f1x cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477 User : 61 23 command.c:666 command_run_line(): Runtime Error: openocd_embedrf_tag.cfg:14: jtag newtap stm32f1x cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477: command requires more arguments in procedure 'script' at file "embedded:startup.tcl", line 58 in procedure 'jtag' called at file "openocd_embedrf_tag.cfg", line 14 Thanks again. |