Hi,

I'm trying to build a config file for the IAR ST Butterfly Minі eval
board. This is what I have so far, but it doesn't work quite yet:

Index: src/target/board/iar_st_butterfly_mini.cfg
===================================================================
--- src/target/board/iar_st_butterfly_mini.cfg  (Revision 0)
+++ src/target/board/iar_st_butterfly_mini.cfg  (Revision 0)
@@ -0,0 +1,11 @@
+#
+# IAR ST Butterfly Mini eval board
+#
+# http://www.iar.com/stmini
+#
+
+set BSTAPID 0x06412041
+
+source [find interface/jlink.cfg]
+source [find target/stm32.cfg]
+

Here's what I get:

$ ./bin/openocd -f lib/openocd/board/iar_st_butterfly_mini.cfg

./bin/openocd -f lib/openocd/board/iar_st_butterfly_mini.cfg
Open On-Chip Debugger 1.0 (2009-04-03-04:32) svn:1447M

BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS

$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
500 kHz
Info : J-Link ARM-OB STM32 compiled Jan 13 2009 17:07:17
Info : Vref = 3.300 TCK = 1 TDI = 0 TDO = 1 TMS = 1 SRST = 1 TRST = 1

Info : J-Link JTAG Interface ready
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (Manufacturer: 0x23b, 
Part: 0xba00, Version: 0x3)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.bs tap/device found: 0x06412041 (Manufacturer: 0x020, 
Part: 0x6412, Version: 0x0)
Info : JTAG Tap/device matched
Warn : Block read error address 0xe000ed00, count 0x1
Warn : no telnet port specified, using default port 4444
Warn : no gdb port specified, using default port 3333
Warn : no tcl port specified, using default port 6666
Error: AHBAP: dp_select 0x10, ap_csw 0xa2000002, ap_tar 0xe000edf0
Error: SWJ-DP OVERRUN - check clock or reduce jtag speed
Error: AHBAP: dp_select 0x10, ap_csw 0xa2000002, ap_tar 0xe000ed20
Error: SWJ-DP OVERRUN - check clock or reduce jtag speed
Error: AHBAP: dp_select 0x10, ap_csw 0xa2000002, ap_tar 0xe000ed20
Error: SWJ-DP OVERRUN - check clock or reduce jtag speed
Error: AHBAP: dp_select 0x10, ap_csw 0xa2000002, ap_tar 0xe000ed20
Error: SWJ-DP OVERRUN - check clock or reduce jtag speed
Error: AHBAP: dp_select 0x10, ap_csw 0xa2000002, ap_tar 0xe000ed20
Error: SWJ-DP OVERRUN - check clock or reduce jtag speed
Error: AHBAP: dp_select 0x10, ap_csw 0xa2000002, ap_tar 0xe000ed20
Error: SWJ-DP OVERRUN - check clock or reduce jtag speed
[etc. etc.]


$ lsusb -v
Bus 003 Device 019: ID 1366:0101  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x1366 
  idProduct          0x0101 
  bcdDevice            1.00
  iManufacturer           1 SEGGER
  iProduct                2 J-Link
  iSerial                 3 123456
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
Device Status:     0x0001
  Self Powered



I tried to set "jtag_speed 0" in stm32.cfg, but that didn't help. Also, I 
applied
the recent jlink patch from the mailing list, no difference either.

Any ideas where to look?


Uwe.
-- 
http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to