Hi everyone,
I have a STM32F4 Discovery board and a Segger J-Link (v4.50f).
I want to connect to the Discovery board using OpenOCD with SWD protocol.
To do this, I have made the following changes
1> Modified scipts/target/stm32f4x.cfg. Replaced "jtag newtap" with "swd
newdap" as mentioned in the OpenOCD user guide.
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id
$_CPUTAPID
to
swd newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id
$_CPUTAPID
2> Modified scripts/board/stm32f4discovery.cfg
source [find interface/stlink-v2.cfg] -> to -> source [find
interface/jlink.cfg]
source [find target/stm32f4x_stlink.cfg]-> to -> source [find
target/stm32f4x.cfg]
Now running openocd gives the following error
D:/openocd-0.6.1/openocd-0.6.1/bin>openocd-0.6.1.exe -f
..\scripts\board\stm32f4discovery.cfg
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
Runtime Error: D:/openocd-0.6.1/openocd-0.6.1/bin/../scripts/target/stm32f4x
.cfg:42: invalid command name "swd"
in procedure 'script'
at file "embedded:startup.tcl", line 58
at file "..\scripts\board\stm32f4discovery.cfg", line 6
at file "D:/openocd-0.6.1/openocd-0.6.1/bin/../scripts/target/stm32f4x.cfg
line 42
Can someone please help me get J-Link working with the STM32Discovery board
using SWD protocol?
Thanks,
Jaydip
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel