On 5 March 2012 20:08, Shaun <shaunmenz...@gmail.com> wrote:
> Hi Spencer,
>
> Thanks for your reply. I played all over the weekend and managed to get it up
> and running. I x-compiled using Cygwin again and that worked well (Ubuntu had 
> an
> issue with libsub hence using Cygwin). Everything worked well with the 
> following
> comments:
>
> I launch OpenOCD with the following:
> -f stlink-v2.cfg -f stm32f1x_stlink.cfg -f stm32_program.cfg
>
> But i get errors with
> Runtime Error: stm32_program.cfg:10: invalid command name "verify_ircapture"
> in procedure 'script'
> at file "embedded:startup.tcl", line 58
> at file "stm32_program.cfg", line 10
>
> So I comment out verify_ircapture (and also change jtag_khz to adapter_khz for
> good measurea and I set WORKAREASIZE 0x8000 in the stm32f1_stlink.cfg
> ).
>
> Everything appears to go well and the test code is uploaded:
> target state: halted
> target halted due to debug-request, current mode: Thread
> xPSR: 0x61000000 pc: 0x2000003e msp: 0x20010000
> wrote 75648 bytes from file ../Debug/STM32F103E.elf in 2.211126s (33.411 
> KiB/s)
> shutdown command invoked
>
> I then launch the GDB Server but got the following:
> Runtime Error: stm32_gdb.cfg:6: invalid command name "swj_mode"
> in procedure 'script'
> at file "embedded:startup.tcl", line 58
> at file "stm32_gdb.cfg", line 6
>
> So I coment out swj_mode and GDB Server successfully launches.
>
> Thanks again for your help, If i'm honest I found the documentation a little
> confusing but i'm sure it'll start making sense after a couple of reads.
>

Glad you have it working.

Not sure of the contents of your stm32_program.cfg script but the
stlink does not behave the same as the other OpenOCD compatible
dongles.

It uses a much higher level comms layer and as such cannot use any
jtag related cmds.

Cheers
Spen

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to