New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Loading EZ-USB firmware


Thread Closed

 
Thread Tools
jmp559

 
Member Since: Jan 19, 2009
Posts: 2
jmp559 is on a distinguished road

jmp559 is offline
I need to load some firmware into a Cypress-FX2 based USB device.
This uses Cypress's EZ-USB capability.

Under Linux there is a utility called 'fxload' which does this.

I cannot find a version of fxload for MacOS (I am running 10.4)

I heard Apple used to have something called "EzLoad" which did this but cannot find that anywhere. Does anyone know where I can get it or some other way to load the Cypress EZ-USB based firmware from MacOs ?

Thank You

Jeff
WB9JPS

 
Member Since: Jan 21, 2009
Location: Livermore, CA
Posts: 2
WB9JPS is on a distinguished road
Mac Specs: MacBook (late-07)

WB9JPS is offline
Jeff:

I, too, am trying to get a Cypress FX2 working under Mac OSX, and so far have found no ready-to-use download utilities. Thanks to your post, I found the source code for Apple's EZloader at:

Index of /darwinsource/10.3.2/IOUSBFamily-206.4.1/Examples/Ezloader Example

Since I'm far from an XCode expert, I plopped it into a new project (command-line, CoreFoundation) and while it does compile it errors out at runtime. But that was just the first 5 minutes. We'll see. NOW... if you have any luck getting this to work, PLEASE tell me!

And here is some other info I found on the web. This Apple guide is where the code, above, was apparently taken from:

Apple's USB Device Interface Guide just happens to use the Cypress EZ-USB as an example, and the chapter "Accessing a USB device," at

USB Device Interface Guide: Accessing a USB Device

gives complete details and sample code for accessing the Cypress "raw" device, downloading firmware to it, then accessing the freshly created USB device when it reconnects with the bus.

-Gary

Quote:
Originally Posted by jmp559 View Post
I need to load some firmware into a Cypress-FX2 based USB device.
This uses Cypress's EZ-USB capability.

Under Linux there is a utility called 'fxload' which does this.

I cannot find a version of fxload for MacOS (I am running 10.4)

I heard Apple used to have something called "EzLoad" which did this but cannot find that anywhere. Does anyone know where I can get it or some other way to load the Cypress EZ-USB based firmware from MacOs ?

Thank You

Jeff
WB9JPS

 
Member Since: Jan 21, 2009
Location: Livermore, CA
Posts: 2
WB9JPS is on a distinguished road
Mac Specs: MacBook (late-07)

WB9JPS is offline
Ahh, the whole ezload example is included with the XCode developer distribution... It's in Developer:Examples:IO Kit:USB:Ezloader Example.

It builds and runs fine, but so far no luck getting it to actually recognize my FX2 device, nor download anything. The app just hangs. Pretty hard to figure out what the app is thinking because it uses a bunch of asynchronous notifications. Not even sure how to debug such beasts.

-Gary
nall

 
Member Since: Jun 13, 2009
Posts: 1
nall is on a distinguished road

nall is offline
I've ported the linux tool to OSX. Source code is available here:

nall's nexys2-osx at master - GitHub

Running xcodebuild in the fxload directory should build it.

One primary difference from the linux version is that you specify the USB target via VID/PID instead of a device file (the -D option).

nall.

Thread Closed


« Terminal Query | mbtowc and extended/high ASCII »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
USB Over Current Notice? Dolando Apple Notebooks 1 09-09-2008 01:23 PM
What is the Most idea USB Port Replicator for MB Air ? danger450 Other Hardware and Peripherals 0 08-07-2008 07:47 PM
USB Apple keyboard doesn't work with ps2 converter? awu_gigabyte Other Hardware and Peripherals 1 09-10-2005 03:35 AM

All times are GMT -4. The time now is 01:01 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?