Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uploading hex file from Cypress cy7c68013a



On Wed, 14 Mar 2007, Michael Dautermann wrote:

On Mar 14, 2007, at 8:06 PM, Tom Pratum wrote:

Hello All-
I am very new at USB programming, and have a very specific need in that regard. I have a specialized scientific device that has a usb interface developed using Windriver in a Windows environment. I am trying to get it to function under OSX.


I now need to download the firmware hex file onto the cy7c68013a. Therein lies the problem - I have the device working fine under Windows XP on the Boot Camp partition of my laptop (using the software provided by the vendor), but I see no hexfiles there - I can only assume the hex file is incorporated into the interface spit out by Windriver.
What is the recommended method of obtaining the firmware hex file (if there is one in this situation) so I can proceed?

Hi Tom,

Firmware is firmware, so it doesn't matter what architecture downloads it to the device, the same file should run the device hardware.

Hopefully I am giving good advice here (since I don't think any Apple persion is going to see or respond to this until tomorrow), but your solution would involve

1) finding the firmware

Yes, first you need to figure out if any firmware needs to be sent at all. Sometimes it's stored in ROM on the device itself, in which case you have nothing to do.


Have a look at the device in USB Prober. If its device class and all that is 255 then you probably need to find firmware. If it's zero and the Composite class driver has matched to the device and created all the IOUSBInterfaces for you, then the FX2 is getting its firmware some other way and you don't have to worry about it :)

(Also you can look for firmware-carrying chips on the board...)

(a Google search shows a potential firmware file at <http://www.siphec.com/project/USB2ATA/index.html>)

That is almost certainly not the firmware for this device... that looks like the firmware for turning the FX2 into an ATA interface, not exactly a 'scientific device'. Loading that would probably make your device very unhappy.


If you need firmware and you can't find out where it's coming from, it'll probably be a binary blob in the driver somewhere. It's more likely to be a straight table rather than being in Intel hex format (in my experience).

Of course, the best way to be sure is just snoop what the Windows driver is doing and rebuild the firmware from that. There are stacks of programs that do this under Windows... usbsnoop/SniffUSB is a good one as is SnoopyPro.

2) figuring out how to get the firmware file from your OS X partition down to the device.

That is the easy bit! Just send a bunch of writes to the FX2 memory. Actually there was a thread about this quite recently on the list.


Is what you're trying to write an application (that will interact with the device?) or a driver that will allow other applications to use the device or some kind of plugin?

That would indeed be interesting to know.

hth,

michael

{P^/ _______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden
References: 
 >uploading hex file from Cypress cy7c68013a (From: Tom Pratum <email@hidden>)
 >Re: uploading hex file from Cypress cy7c68013a (From: Michael Dautermann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.