Skip to content

Problem with connect more than one usb device #4

Description

@aaronsuns

Hi,

I have a problem with connect with more than one usb device, could you help?

$ lsusb |grep ST-LINK
Bus 002 Device 111: ID 0483:3748 SGS Thomson Microelectronics ST-LINK/V2
Bus 002 Device 112: ID 0483:3748 SGS Thomson Microelectronics ST-LINK/V2
$ ls -l /dev/ |grep usb
lrwxrwxrwx 1 root root 15 Oct 2 16:05 stlinkv2_1 -> bus/usb/002/111
lrwxrwxrwx 1 root root 15 Oct 2 16:07 stlinkv2_2 -> bus/usb/002/112
crw------- 1 root root 252, 0 Oct 1 16:36 usbmon0
crw------- 1 root root 252, 1 Oct 1 16:36 usbmon1
crw------- 1 root root 252, 2 Oct 1 16:36 usbmon2

Then I try to start st-utils:

$./st-util -d /dev/stlinkv2_1
2012-10-02T16:14:24 INFO src/stlink-common.c: Loading device parameters....
2012-10-02T16:14:24 INFO src/stlink-common.c: Device connected is: F2 device, id 0x20016411
2012-10-02T16:14:24 INFO src/stlink-common.c: SRAM size: 0x20000 bytes (128 KiB), Flash: 0x100000 bytes (1024 KiB) in pages of 131072 bytes
Chip ID is 00000411, Core ID is 2ba01477.
KARL - should read back as 0x03, not 60 02 00 00
init watchpoints
Listening at *:4242...
^C
$ ./st-util -d /dev/stlinkv2_2
2012-10-02T16:14:33 INFO src/stlink-common.c: Loading device parameters....
2012-10-02T16:14:33 INFO src/stlink-common.c: Device connected is: F2 device, id 0x20016411
2012-10-02T16:14:33 INFO src/stlink-common.c: SRAM size: 0x20000 bytes (128 KiB), Flash: 0x100000 bytes (1024 KiB) in pages of 131072 bytes
Chip ID is 00000411, Core ID is 2ba01477.
KARL - should read back as 0x03, not 60 02 00 00
init watchpoints
Listening at *:4242...
^C

They just try to connect the same device, it seems the device option doesn't work.

BRs
//Aaron Sun.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions