Skip to content

mbed detect: No mbed targets were detected #327

@Soheilica

Description

@Soheilica

Hi,

Im running the MbedOS in Ubuntu Xenial. The mbed detect results in: [mbed] No mbed targets were detected on your system. I have connected the nucleo_f767zi to usb and have it in lsusb:

vagrant@mbed-dev:~/All/All-blinks$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0483:374b STMicroelectronics ST-LINK/V2.1 (Nucleo-F103RB)

pip version 8.1.1
mbedls version is 1.4.2.

Here is the mbedls --debug --list-unmounted log:

vagrant@mbed-dev:~/All/All-blinks$ mbedls --debug --list-unmounted
DEBUG:mbedls.main:mbed-ls ver. 1.4.2
DEBUG:mbedls.main:host: ('posix', 'Linux', '4.4.0-119-generic', '#143-Ubuntu SMP Mon Apr 2 16:08:24 UTC 2018', 'linux2')
DEBUG:mbedls.lstools_linux:Converting device list ['/dev/disk/by-id/usb-MBED_microcontroller_066FFF544852707267191640-0:0']
DEBUG:mbedls.lstools_linux:Found disk devices by id {'066FFF544852707267191640': '/dev/sdc'}
ERROR:mbedls.lstools_linux:Could not get serial devices by id. This could be because your Linux distribution does not use udev, or does not create /dev/serial/by-id symlinks. Please submit an issue to github.com/armmbed/mbed-ls.
DEBUG:mbedls.lstools_linux:Mount mapping {}
DEBUG:mbedls.lstools_base:Candidates for display [{'mount_point': None, 'serial_port': None, 'target_id_usb_id': '066FFF544852707267191640'}]
Traceback (most recent call last):
  File "/home/vagrant/.local/bin/mbedls", line 11, in <module>
    sys.exit(mbedls_main())
  File "/home/vagrant/.local/lib/python2.7/site-packages/mbed_lstools/main.py", line 262, in mbedls_main
    ret_code = args.command(mbeds, args)
  File "/home/vagrant/.local/lib/python2.7/site-packages/mbed_lstools/main.py", line 111, in print_table
    return print_mbeds(mbeds, args, False)
  File "/home/vagrant/.local/lib/python2.7/site-packages/mbed_lstools/main.py", line 98, in print_mbeds
    devices = mbeds.list_mbeds(unique_names=True, read_details_txt=True)
  File "/home/vagrant/.local/lib/python2.7/site-packages/mbed_lstools/lstools_base.py", line 150, in list_mbeds
    name = device['platform_name']
KeyError: 'platform_name'
vagrant@mbed-dev:~/All/All-blinks$

Any input is appreciated!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions