I'm trying to use OpenOCD with an STM32W108B as part of the STM32W108B-KEXT kit. The boards are equipped with JTAG cables and I have an Olimex ARM-USB-TINY-H cable.
There was a Sparkfun forum post [0] and a couple of mailing list messages about the STM32W, but there doesn't seem to be an appropriate .cfg file in the tcl/target folder of the git tree. I tried to follow the Sparkfun forum post to modify the stm32f1x.cfg file, but I'm not sure if what I have done is correct Attached is my first stab at adding stm32w108x.cfg to the source tree. It seems to detect the device, but I am unable to establish a connection from gdb, so I think I must have something wrong. Any help would be greatly appreciated. Sample output when connecting and trying to connect via gdb: http://pastebin.com/avYdJh0G The abbreviated connection looks like: luke@LenovoW510:~/Dropbox/mmd/firmware$ openocd -f ./scripts/openocd.cfg Open On-Chip Debugger 0.6.0-dev-00082-gbfe634a-dirty (2012-01-18-10:06) Licensed under GNU GPL v2 For bug reports, read http://openocd.berlios.de/doc/doxygen/bugs.html Info : only one transport option; autoselect 'jtag' 1000 kHz adapter_nsrst_delay: 100 jtag_ntrst_delay: 100 Warn : stm32w108.bs: nonstandard IR value cortex_m3 reset_config sysresetreq Info : max TCK change to: 30000 kHz Info : clock speed 1000 kHz Info : JTAG tap: stm32w108.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3) Info : JTAG tap: stm32w108.bs tap/device found: 0x169a862b (mfg: 0x315, part: 0x69a8, ver: 0x1) Info : stm32w108.cpu: hardware has 6 breakpoints, 4 watchpoints I'm not sure if I need all the other BS TAP's that are in stm32f1x.cfg, but when I tried to add one more I got errors about the instruction length and instruction capture's being incorrect. But perhaps putting all of this in one file would be ok, if there is away to account for the different irlen and ircapture settings? Can anybody help me figure this out? It seems like the documentation for the STM32w isn't as extensive as it is for the STM32f1 series of chips, so I'm having a hard time. Thanks, ~Luke [0] -- http://forum.sparkfun.com/viewtopic.php?f=18&t=23411 -- "Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin, Historical Review of Pennsylvania, 1759
stm32w108x.cfg
Description: Binary data
------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
