Menu

error in cc-tool

Milind
2014-03-31
2014-08-11
  • Milind

    Milind - 2014-03-31

    Hi George,

    Could you please help me with this error in cc-tool. Trying to program

    CC2530 with TI CC-Debugger -- Bus 002 Device 010: ID 0451:16a2 Texas Instruments, Inc.
    Ubuntu (Ubuntu 12.04.4 LTS \n \l),
    Linux kernel (3.2.0-60-generic-pae #91-Ubuntu SMP)
    cc-tool -- cc-tool-0.26-src.tgz

    Programmer: CC Debugger
    Target: CC2530
    Error occured: libusb_control_transfer (out) failed, Pipe error

    Thanks in advance,

    Regards,
    Milind

     
  • Benjamin A.

    Benjamin A. - 2014-04-10

    Hello,

    I have exactly the same problem, only with Debian.
    Do you have some tips or something else?

    Best regards,

    Benjamin

     
  • Christopher Cotton

    I have the same problem on OSX.

    ./cc-tool --log test.txt
      Programmer: CC Debugger
      Target: CC2540
      Error occured: libusb_control_transfer (out) failed, Pipe error
    

    log file:

    [06.08 10:28:27:01539] main, cc-tool 0.26
    [06.08 10:28:27:01539] main, command line: ./cc-tool --log test.txt 
    [06.08 10:28:27:01614] usb, open device, VID: 0451h, PID: 16A2h
    [06.08 10:28:27:01614] usb, set configuration 1
    [06.08 10:28:27:01622] usb, claim interface 0
    [06.08 10:28:27:01625] usb, get string descriptor 2, data: CC Debugger
    [06.08 10:28:27:01625] programmer, request device state
    [06.08 10:28:27:01625] usb, control read, request_type: C0h, request: C0h, value: 0000h, index: 0000h, count: 8
    [06.08 10:28:27:01626] usb, control read, data: 40 25 CC 05 42 00 01 00
    [06.08 10:28:27:01626] device, name: CC Debugger, ID: 0000, version: 05CCh, revision: 0042h
    [06.08 10:28:27:01626] programmer, set debug interface speed 0
    [06.08 10:28:27:01626] usb, control write, request_type: 40h, request: CFh, value: 0001h, index: 0000h, count: 0
    [06.08 10:28:27:01626] programmer, connect target
    [06.08 10:28:27:01626] programmer, enter debug mode
    [06.08 10:28:27:01626] usb, control write, request_type: 40h, request: C5h, value: 0000h, index: 0000h, count: 0
    [06.08 10:28:27:01626] usb, control write, request_type: 40h, request: C8h, value: 0001h, index: 0001h, count: 48
    [06.08 10:28:27:01626] usb, control write, data: 43 43 32 35 34 30 20 20 20 20 20 20 20 20 20 20 44 49 44 3A 20 30 30 30 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
    [06.08 10:28:27:01627] libusb_control_transfer (out) failed, Pipe error
    
     
  • Christopher Cotton

    I found someone who has a fix for it: https://github.com/dashesy/cc-tool/commit/3ebc61763ff5d0dadbdc2f7163e85ca5d002bb0f

    It only requires a single change:

    -           USB_SET_CHIP_INFO, 1, 1, &command[0], command.size());
    +           USB_SET_CHIP_INFO, 1, 0, &command[0], command.size());
    

    I was able to update my CC2540 using the tool now.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.