Hi I found the root cause.   cmd_cable_run -> urj_param_push -> 
parse_param_lu can't accept Hex format number, only Dec. so my command "cable 
jlink vid=0403 pid=6010 driver=ftdi-mpsse" in old version r1458, identify 
"0403" as Hex, but now as Dec.    But current version code can't 
accept Hex in parse_param_lu, I suggest just call urj_cmd_get_number() function 
here likeIndex: 
src/global/params.c===================================================================---
 src/global/params.c    +++ 
src/global/params.c    @@ -177,14 +177,19 
@@     return URJ_STATUS_OK; } +extern int 
urj_cmd_get_number (const char *s, long unsigned *i); static 
int parse_param_lu(const char *eq, long unsigned *lu) {+#if 
0     if (sscanf(eq + 1, "%lu", lu) == 
1)         return 
URJ_STATUS_OK;      urj_error_set (URJ_ERROR_SYNTAX, 
"need unsigned int, not '%s'", eq + 1);     return 
URJ_STATUS_FAIL;+#else+    return urj_cmd_get_number( eq + 1, 
lu);+#endif  }or add Hex format identify code here. ----- 原文 ----- 发件人: 
Snowel Xue 主 题: "cable jlink vid=0403 pid=6010 driver=ftdi-mpsse" doesn't work 
any more ?时 间: 2009年11月25日  18时10分43秒Hi This command "cable jlink vid=0403 
pid=6010 driver=ftdi-mpsse" work on old code svn.r1458,but it doesn't work on 
lastest svn code.Error log:   Couldn't connect to suitable USB 
device.   Error: usbconn/libftdi.c:347 usbconn_ftdi_common_open() 
ftdi/ftd2xx error: ftdi_usb_open_desc() failed: device not foundAs debug, I 
found it seem the "vid=0403 pid=6010" can't pass to      
status = ftdi_usb_open_desc (fc, p->vid, p->pid, NULL, p->serial);it 
seem the command format is changed ?Best RegardsBest Regards

Reply via email to