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.

What is your Linux distro and kernel version?


-- 
Xiaofan http://mcuee.blogspot.com
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to