On 19 January 2012 23:42, Luke <[email protected]> wrote: > 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 >
It has been a while but it should work. I would check your cfg first - seems to be a few errors. jtag newtap $_CHIPNAME bs -irlen 4 -ircapture 0x0e -irmask 0xf -expected-id $_BSTAPID10 \ remove the line continuation char and ircapture and irmask should not be required, eg. # Wireless set _BSTAPID 0x169a862b jtag newtap $_CHIPNAME bs -irlen 4 -expected-id $_BSTAPID Also if i remember correctly the flash controller is not exactly the same as the stm32f1x, may be worth checking the em357 driver. The em35x family are the same device as the stm32w. Before even attempting gdb, you need to validate that you can control the device, use the telnet interface to check the basic functionality. 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 [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
