Xiaofan Chen a écrit :
On Thu, Jul 23, 2009 at 5:18 AM, Leon
Woestenberg<[email protected]> wrote:
I received a STM32-comStick today (STM32F107) but the accompanying
documentation (on CD) did not mention a JTAG port.
It has a micro-USB port (not mini, and comes without cable) and A connector.
I do not have the device. I believe that micro-USB port is the USB host/OTG port
and the A connector is the right one to use for debugging/programming.
OpenOCD seems to support the device STM32comStick.cfg but I could not
find a matching USB device.
http://www.hitex.com/index.php?id=1670
I do not have this stick. Maybe the following discussion will help.
http://forum.sparkfun.com/viewtopic.php?t=13585
Quote what Spen posted:
# comstick ftdi device
interface ft2232
ft2232_layout stm32stick
ft2232_device_desc "STM32-PerformanceStick"
ft2232_vid_pid 0x0640 0x002d # stm32 comstick
jtag_khz 500
jtag_nsrst_delay 100
jtag_ntrst_delay 100
# use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst
jtag newtap stm32 cpu -irlen 4 -ircapture 0x1 -irmask 0xf
jtag newtap stm32 bs -irlen 5 -ircapture 0x1 -irmask 0x1
jtag newtap str750 unknown -irlen 4 -ircapture 0x1 -irmask 0x0f
target create stm32.cpu cortex_m3 -endian little -chain-position stm32.cpu
stm32.cpu configure -work-area-virt 0 -work-area-phys 0x20000000
-work-area-size 0x4000 -work-area-backup 0
flash bank stm32x 0 0 0 0 0
The A plug comes up which what seems like an application specific USB device:
[ 6100.256037] usb 4-2: new full speed USB device using uhci_hcd and address 4
[ 6100.447398] usb 4-2: configuration #1 chosen from 1 choice
[ 6100.453170] usblp0: USB Bidirectional printer dev 4 if 0 alt 0
proto 2 vid 0x0640 pid 0x0033
[ 6100.470154] generic-usb 0003:0640:0033.0007: hiddev96,hidraw2: USB
HID v1.10 Device [Hitex Development Tools GmbH STM32com-Stick] on
usb-0000:00:1a.1-2/input1
[ 6100.479152] generic-usb 0003:0640:0033.0008: hiddev97,hidraw3: USB
HID v1.10 Device [Hitex Development Tools GmbH STM32com-Stick] on
usb-0000:00:1a.1-2/input2
What does "lsusb -vvv" say? It is a bit strange that hiddev driver will
pick up this device. I assume that it is based on FTDI2232.
The STM32-PerformanceStick that I have uses a FTDI chip for debugging.
Here is the information from /proc/bus/usb/devices that I get on
Mandriva 2009.1
I tested it almost a year ago and it works fine with the proprietary
driver, I haven't tried it yet with the open source driver.
Hitex may very well have several versions for their USB debugging.
There is an interest in getting something faster than the ftdi device.
>From what Leon posted, his device may not be an ftdi but some
microprocessor.
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0640 ProdID=002d Rev= 5.00
S: Manufacturer=Hitex
S: Product=STM32-PerformanceStick
S: SerialNumber=HXE02121
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=300mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
Michel
--
Tired of Microsoft's rebootive multitasking?
then it's time to upgrade to Linux.
http://home.comcast.net/~mcatudal
|
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development