CCS reports ERROR(25) : USB open failure when attempting to communicate with CodeWarrior TAP with Linux host

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CCS reports ERROR(25) : USB open failure when attempting to communicate with CodeWarrior TAP with Linux host

938 Views
randykauffman
Contributor I

CCS reports ERROR(25) : USB open failure

We are attempting to use CodeWarrior along with a CodeWarrior TAP to download and debug a bareboard project to a development board.

 

Our setup is as follows:
OS: CentOS Linux, Release 7 64-bit CodeWarrior Development Studio for QorIQ LS series - ARM V7 ISA, Version 10.0.9 Build Id 170322
CodeWarrior TAP: 841-CWH-CTP-BASE-HE, 900-76173 REV G
Probe tip: 841-CWH-CTP-CTX10-YE
10pin to 20pin adaptor: ARM-JTAG-20-10 (Digikey PN 1188-1016-ND)
Dev Board: TQ part number STKLS102xA (https://www.tq-group.com/en/products/product-details/prod/starterkit-stkls102x/extb/Main/productdeta..., with module http://www.tq-group.com/en/tqmls102xA)

 

We have four linux workstations and a TAP for each.  When attempting to use the TAP with a direct USB connection, two of the TAPs work (CodeWarrior is able to attach to our dev board and debug), while two of the TAPs result in the ccs error message that the USB open failed.

 

(bin) 49 % log v
CCS Linux Release Build 458.0.0.170322-p0
verbose logging
CCSAPI connection #1 accepted from localhost at Wed Jun  7 13:30:22 2017
check_min_version(serverh=0,*version)
  api version: 00000004 00000006
get_connection_count(serverh=0,cc_index=0,*count)
  count:1
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0x00000000}
available_connections(serverh=0,*count,*cc)
  connections:
available_connections(serverh=0,*count,*cc)
  connections:
get_connection_count(serverh=0,cc_index=0,*count)
  count:1
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0x00000000}
available_connections(serverh=0,*count,*cc)
  connections:
available_connections(serverh=0,*count,*cc)
  connections:
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0x00000000}
delete_cc(serverh=0,cc=0)
setup_cc(serverh=0,config_string= cwtap:0 )
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0x00000000}
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0x00000000}
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0x00000000}
cc_version(serverh=0,cc_index=0,index=-232048832,*version)
  ERROR(25): USB open failure
CCSAPI connection #1 from localhost closed at Wed Jun  7 13:30:23 2017
(bin) 50 %

 

We know the USB connectivity between all of the TAPs and the linux workstations is ok because we see /dev/ttyACM1 appear for all four of the TAPs.  We are able to connect to /dev/ttyACM1 and configure each TAP.  As a work-around for the TAPs that result in the usb open failure, we are currently using them via ethernet.  But we want to be able to use a direct USB connection. 

 

The issue appears to be something environment related on the linux workstations.  We have taken a TAP that resulted in a failed usb open to a different workstation and it then works.  Our first thought was that the issue was related to udev permissions, but since /dev/ttyACM1 appears and we can access it we assume USB connectivity is not the underlying issue.

 

Case 00119792 was submitted to NXP support on 6/7/17 but we have not heard back other than they have received the case.

 

See attachment for Linux host USB info.

Original Attachment has been moved to: usbIssuePostToCommunityUSBInfo.txt.zip

0 Kudos
2 Replies

604 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to /CCS/drivers/usb/readme.cwtap.txt to create USB udev rules and reset your PC to make it to take effective.


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

604 Views
addiyi
NXP Employee
NXP Employee

Go to \Common\CCS\drivers\usb\ and check the readme.cwtap.txt file. It is possible to be something wrong with the driver.

Adrian

0 Kudos