This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Help: CC2540 USB EK on Ubuntu

Other Parts Discussed in Thread: CC2540, CC-DEBUGGER

Hi All,

I like to setup CC2540 USB dongle on my laptop running Ubuntu 12.04.  The problem is the usb dongle is not detected as a "ttyA" device. Instead I get below logs in demsg. Any help would be highly appreciated.

$uname -a

$Linux ravi-laptop 3.2.0-49-generic #75-Ubuntu SMP Tue Jun 18 17:40:13 UTC 2013 i686 i686 i386 GNU/Linux

ravi@ravi-laptop:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0451:16b3 Texas Instruments, Inc.

$dmesg

[ 1204.418987] usbcore: registered new interface driver cdc_acm
[ 1204.418998] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 1250.408181] usb 2-1: new full-speed USB device number 2 using uhci_hcd

Can someone please help me out here?

  • Hi,

    I just tried it on my virtual machine:

    $ uname -a
    Linux ubuntu1204 3.2.0-40-generic-pae #64-Ubuntu SMP Mon Mar 25 21:44:41 UTC 2013 i686 i686 i386 GNU/Linux

    [  154.313963] cdc_acm 2-2.2:1.0: This device cannot do calls on its own. It is not a modem.
    [  154.313985] cdc_acm 2-2.2:1.0: ttyACM0: USB ACM device
    [  154.317020] usbcore: registered new interface driver cdc_acm
    [  154.317022] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

    $ ls /dev/ttyACM0
    /dev/ttyACM0

    $ lsusb
    Bus 002 Device 005: ID 0451:16aa Texas Instruments, Inc.


    there seems to be a difference in the USB-id between your USB-stick and mine. have you tried flashing the latest "CC2540_USBdongle_HostTestRelease_All.hex" into the USB-dongle?

    hope that helps

    Andre

  • Hi Andre,

    > there seems to be a difference in the USB-id between your USB-stick and mine. have you tried flashing the latest "CC2540_USBdongle_HostTestRelease_All.hex" into the USB-dongle?

    can I do this on Linux machine?. I don't have windows.

  • as far as i know the SDK and all tools are windows only.

    try to find someone with a windows machine to flash the stick.

    btw. all the tools run fine on a virtual machine windows for me...

  • Hi Andre,

    Tried on a friends Windows 7 laptop. Packet Sniffer tool could detect the dongle but Flash Programmer does not detect it.

    On device manager, its rightly detected as CC2540 Usb Dongle. Any clue?

    thanks  for your help.

  • Hi Ravi,

    how did you connect the dongle to the PC? to flash an image you need to connect it via USB (to power it) and with the CC-Debugger on the debug-port to flash it.

    If the Packet Sniffer detects the dongle it seems to have the sniffing firmware flashed to it which is different from the HCI-firmware.

    have a look at http://www.ti.com/lit/ug/swru270c/swru270c.pdf (especially chapter 5.2) about flashing the dongle...

    HTH

    Andre

  • Hi,

    I know this post is quite old but ....

    I have a Ubuntu 12.04 running under Virtual box.

    When I plug the CC2540 USB dongle in I get no ttyACM0 device.

    I have the USB enabled for the VM.  Do I need something else for the VM.

    It all works in a WIN7 environment.

    Thanks.

    Jack

  • Hi,

    Do you have the VirtualBox Extension Pack installed (https://www.virtualbox.org/wiki/Downloads)? This is needed for USB2.0 support.

    BR,

    Scott

  • Scott,

    Thanks for your help.  I do. or at least I think I do.  I followed the instructions posted here.

    https://forums.virtualbox.org/viewtopic.php?f=7&t=51991

    Things behaved a per that post.

    Do you have the Windows driver installed such that it shows up under windows as a com port?

    Jack

  • Hi Jack,

    My configuration is: host is OS X and VM is Window 7. I did install the drivers for Windows (I think they came when I installed SmartRF Flash Programmer) and I see "TI CC2540 USB CDC Serial Port (Com 6)" under Window's device manager. However if I understand your setup correctly, your host is Windows and your VM is Ubuntu. Ubuntu is where you are trying to get the USB dongle to be recognized. So I don't think my experience helps you in this case.

    This goes beyond my experience but I wonder if you will need a module installed in your kernel to properly use the USB dongle under Ubuntu.

    Good luck!

    Scott