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: EZLoader Example



At 9:16 AM -0600 3/17/05, Michael Krugman wrote:

The first question...the format of the hex file the manufacturer sent me is:

:10145700907FDE7406F0907FDFF0E4907FC7F09016

That looks like a (Intel?) hex file, a pretty standard way of distributing firmware.


The format used in other examples and frameworks I have used in the past is:

  16,
   0x7f4,
   0,

{0xc2,0x04,0xd2,0x05,0xc2,0x03,0xc2,0x00,0xc2,0x02,0xc2,0x01,0x12,0x08,0xa0,0xd2},

That's source code.

I tried to replace the second format with the first. When I went to compile, I got around 300 errors. Can the first format be somehow converted to the second so I can use a framework?

Its quite possible, I've done that sort of thing using a macro editor (eg CodeWarrior), or you could write a simple tool to do it. EZloader probably has a lot of the logic for that. All it would need is a suitable print statement in the right place.


And the second question...what is the result of compiling the EZLoader Example? Is it an application, a Core Foundation tool? How would I call the result from another application?

Ezloader compiles to a command line tool. Its not really designed to be called from another applications, its working as a demon. You could take the code out of it and compile it into whatever else you want.
--
Barry Twycross
email@hidden
---
USB, it's not a Dyslexic BUS. (Thanks to TC.)
_______________________________________________
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: 
 >EZLoader Example (From: Michael Krugman <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.