OSX Lion - XDE can't find XC1-A hardware

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
jb007
Active Member
Posts: 33
Joined: Fri Jul 23, 2010 5:10 am

OSX Lion - XDE can't find XC1-A hardware

Post by jb007 »

As the subject says, I can't connect to the XC1-A hardware from the XDE IDE.
I'm running OSX Lion 10.7.4 on a Macbook Air, using XDE Version: 11.11.0 (build 2237)
Running SetEnv.command gives:

Code: Select all

MacBook:XMOS_11.11.0 jb$ ./SetEnv.command 
bash-3.2$ xrun -l

Available XMOS Devices
----------------------

  No Available Devices Found

bash-3.2$ 
Listing the virtual com ports gives:

Code: Select all

bash-3.2$ ls -al /dev/*.usb*
crw-rw-rw-  1 root  wheel   18,  47  2 Jun 17:51 /dev/cu.usbserial-81210371A
crw-rw-rw-  1 root  wheel   18,  49  2 Jun 17:51 /dev/cu.usbserial-81210371B
crw-rw-rw-  1 root  wheel   18,  46  2 Jun 17:51 /dev/tty.usbserial-81210371A
crw-rw-rw-  1 root  wheel   18,  48  2 Jun 17:51 /dev/tty.usbserial-81210371B
bash-3.2$
I'm running the latest 64Bit FTDI drivers, FTDIUSBSerialDriver_v2_2_17.
Where to look next? Pulling my hair out over this.
PS The XC-1A works under Windows 7, but this is not a solution for me going forward.

Jim


User avatar
jb007
Active Member
Posts: 33
Joined: Fri Jul 23, 2010 5:10 am

Post by jb007 »

Hi all. Just to answer my post, here is the solution. I hope it helps others. Basically you have to remove the FTDI driver as OSX doesn't allow both drivers to coexist.

Run in a terminal:
sudo kextunload -b com.FTDI.driver.FTDIUSBSerialDriver

Jim
User avatar
XMatt
XCore Addict
Posts: 147
Joined: Tue Feb 23, 2010 6:55 pm

Post by XMatt »

Yes the FTDI OSX virtual com port driver does not allow both the interface required for JTAG access and the virtual com port to be used at the same time. If you are not using the FTDI virtual com port for any other devices it can be removed otherwise your method of unloading it is correct.

When it is unloaded we still offer the ability to get UART output to the host via to the --uart option to xrun on the command line and the uart checkbox in the XDE run configuration.

Matt
User avatar
jb007
Active Member
Posts: 33
Joined: Fri Jul 23, 2010 5:10 am

Post by jb007 »

XMatt wrote:Yes the FTDI OSX virtual com port driver does not allow both the interface required for JTAG access and the virtual com port to be used at the same time. If you are not using the FTDI virtual com port for any other devices it can be removed otherwise your method of unloading it is correct.

When it is unloaded we still offer the ability to get UART output to the host via to the --uart option to xrun on the command line and the uart checkbox in the XDE run configuration.

Matt
Hey Matt. Do you know whether FTDI are working on a fix to allow both interfaces to co-exist under OSX; or is it a limitation of the OS X OS?

TIA, Jim
User avatar
Ross
XCore Expert
Posts: 972
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Just to add to this thread, to see loaded kexts run:

kextstat

I hadn't installed the FTDI driver so I have to unload the apple driver to get things going:

sudo kextunload -b com.apple.driver.AppleUSBFTDI
User avatar
XMatt
XCore Addict
Posts: 147
Joined: Tue Feb 23, 2010 6:55 pm

Post by XMatt »

See this Q&A topic for allowing the tools to access FTDI devices on OSX 10.9.

http://www.xcore.com/questions/2099/how ... rs-osx-109