CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

ICD-U40 not working with another board using an FTDI

 
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go
View previous topic :: View next topic  
Author Message
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

ICD-U40 not working with another board using an FTDI
PostPosted: Wed Jul 14, 2004 1:16 pm     Reply with quote

Has anyone had problems with the ICD-U40 working while another board using an FTDI chip is also running?

I am using an B&B electronics USB-RS485 converter, .. model USOTL4.
Inside it uses the FTDI FT232AM chip and I use the latest direct drivers.
After I start the above board I try to also program with the ICD-U40

It fails with an invaid USB handle.

Are the drivers stepping on each other?

The ICD-U40 is using the FTDI FT232BM chip.

During install I install the ICD-U40 then the USOTL4.
I've also uninstall both and reversed the install order, but without help.

Latter on I switched the USOTL4 to VID_0856&PID_AC01
That is what came from the manufaturer.

I was given a block of PIDs from FTDI. xxxx to xxxx
so a VID_0403&PID_xxxx should be valid.

It seems that CCS must check the VID and then use that handle.
THAT SEEMS BAD. VERY BAD.
You are not the only kid on the block using FTDI's chip and a FTDI generated id (ie: ICD-U40 has a VID_0403&PID_F9D0)

The vender ID of 0403(FTDI) is used by many people and many boards.
CCS.
Instead of using the VID, try using the name of the device,... or something else like VID&PID


Last edited by treitmey on Wed Jan 23, 2008 3:04 pm; edited 1 time in total
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Wed Jul 14, 2004 5:58 pm     Reply with quote

A quick question, what ooperating system are you using?
Windows 98 has serious problems with having two of the same USB 'devices' connected to the PC at the same time.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Thu Jul 15, 2004 8:31 am     Reply with quote

Nope, not the case. I have windows XP pro.
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

View user's profile Send private message Send e-mail

PostPosted: Thu Jul 15, 2004 9:27 am     Reply with quote

CCS does check the PID.
planix



Joined: 20 May 2006
Posts: 5

View user's profile Send private message

PostPosted: Sun Mar 18, 2007 4:10 am     Reply with quote

i have the same problem as you mentioned.

i have another usb programmer using ftdi232 after installing icd-u40 drivers it fails programming. this is verified by removing ucd drivers and installling original ftdi drivers.

i don't know if ccs c checks for pid or what but this can cause really big problems as we think lots of boards using fdti chips.
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

Re: ICD-U40 not working with another board using an FTDI
PostPosted: Tue Mar 20, 2007 1:39 pm     Reply with quote

treitmey wrote:
Has anyone had problems with the ICD-U40 working while another board using an FTDI chip is also running?

I am using an B&B electronics USB-RS485 converter, .. model USOTL4.
Inside it uses the FTDI FT232AM chip and I use the latest direct drivers.
After I start the above board I try to also program with the ICD-U40

It fails with an invaid USB handle.

Are the drivers stepping on each other?


I have had a problem. The drivers supplied by CCS are older than the ones supplied by B&B. For some reason the ICD-U40 will not work with the newer drivers. The USOTL4 will work with the older drivers that CCS supply. To get this working you have to force the USOTL4 to uses the drivers already installed by CCS.

I don't think problem this has anything to do with VID or PID.

I don't know how CCS implemented the FTDI chip but simply upgrading to a newer version of FTDI drivers breaks the ICD. I don't know if this problem is due to FTDI , CCS or both but it should be fixed. The impression it gives is bad. Maybe CCS can switch to the newer driver version as a way to fix this.
Saraoga_
Guest







ftdi
PostPosted: Fri May 11, 2007 6:06 am     Reply with quote

Donwload Mprog from this page;
www_ftdichip._com/Resources/Utilities.htm
And clone FT232bm config via usb.
Martin Berriman



Joined: 08 Dec 2005
Posts: 66
Location: UK

View user's profile Send private message

Re: ICD-U40 not working with another board using an FTDI
PostPosted: Fri May 25, 2007 7:59 am     Reply with quote

It is true, CCS does not play nicely when other FTDI devices are plugges in - it is pretty poor really - I have been putting up with it for over a year now and just checked on here today to see if there were any recent thoughts.

I have designed a couple of products using FTDI devices and had trouble getting the CCS debugger to work - I have to fudge it by starting the debugger with my board unplugged then once CCS says Attaching, I plug my board in and normally everything is ok - If I don't follow that procedure then I get the error - 'Access violation in ftd2xx.dll'.

treitmey wrote:
It seems that CCS must check the VID and then use that handle.
THAT SEEMS BAD. VERY BAD.


It definitely seems like that. I was concerned about that with my products so I actually rename the FTDI drivers so that I can be sure they do not get overridden with older versions. When I open my FTDI devices, I use the FT_OpenEX and specify OpenByDescription whereas CCS seem to get confused if there is any other FTDI device attached.

Darren Rook wrote:
CCS does check the PID.


Well CCS definitely does something nasty - see the crash message above.

Neutone wrote:
I don't know how CCS implemented the FTDI chip but simply upgrading to a newer version of FTDI drivers breaks the ICD. I don't know if this problem is due to FTDI , CCS or both but it should be fixed. The impression it gives is bad. Maybe CCS can switch to the newer driver version as a way to fix this.


I've been hoping they would fix this for a long time but seeing as this thread was started in 2004 I will not hold my breath. Rolling Eyes

Edit:
Treitmey has a neat solution to workaround the CCS problems - see this post.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group