OCCRA
Go to Post I don't understand why it should matter if your robot is 100% student built, 100% engineer built or somewhere in between. As long as you are Inspired (I word again) FIRST is getting its point and primary goal across. - [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-21-2004, 04:29 PM
wun's Avatar
wun wun is offline
Registered User
AKA: David Wolever
#0865 (Warp7)
Team Role: Programmer
 
Join Date: Dec 2003
Rookie Year: 2001
Location: Toronto
Posts: 84
wun will become famous soon enough
Send a message via AIM to wun Send a message via MSN to wun
IFI Loader problem - "Invalid HEX file"

I was just trying to download our code to the robot, but when I opened up IFI_Loader, it said "Invalid HEX file - Unable to download...". I'm sure the hex file is valid, and I have also tried using the default hex files... Any ideas?
[edit]
I was originaly using version 1.0.2, but I get the same thing with 1.0.7
[/edit]
__________________
Help Microsoft stop piracy. Use Linux!

I have three gmail invitations, message me if you want one

Last edited by wun : 09-21-2004 at 04:32 PM.
  #2   Spotlight this post!  
Unread 09-21-2004, 05:30 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 7,394
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: IFI Loader problem - "Invalid HEX file"

Quote:
Originally Posted by wun
I was just trying to download our code to the robot, but when I opened up IFI_Loader, it said "Invalid HEX file - Unable to download...". I'm sure the hex file is valid, and I have also tried using the default hex files.
I tested quickly and can get that to happen by cutting off a line of the hex file, e.g., the last line, and by dumping random characters into it.

If you would like a second tester email or post the hex file and I'll try it too.

[edit] got the error with certain random characters
__________________
Deduction is limited by knowledge, and knowledge is limited by preconceptions
358 Beta notes & results

Last edited by Mark McLeod : 09-21-2004 at 05:32 PM.
  #3   Spotlight this post!  
Unread 09-21-2004, 06:30 PM
wun's Avatar
wun wun is offline
Registered User
AKA: David Wolever
#0865 (Warp7)
Team Role: Programmer
 
Join Date: Dec 2003
Rookie Year: 2001
Location: Toronto
Posts: 84
wun will become famous soon enough
Send a message via AIM to wun Send a message via MSN to wun
Re: IFI Loader problem - "Invalid HEX file"

Allright, thanks.
Any idea how that could have happened thou? I did a freash compile of one of the files, and the other is the default...
Ill take a look at it when I go in tomorrow thou, thanks.
__________________
Help Microsoft stop piracy. Use Linux!

I have three gmail invitations, message me if you want one
  #4   Spotlight this post!  
Unread 09-21-2004, 08:50 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 7,394
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: IFI Loader problem - "Invalid HEX file"

Quote:
Originally Posted by wun
Allright, thanks.
Quote:
Originally Posted by wun
Any idea how that could have happened thou? I did a freash compile of one of the files, and the other is the default...
Ill take a look at it when I go in tomorrow thou, thanks.

No idea why the default hex file would have become corrupted, but there are lots of ways. What you really want to do at this stage is to continue to break the failure down into discrete tests to localize the problem. Your testing the default hex file was one. Trying different IFI_Loaders was another. I'd test the two hex files on a different computer (that you know works correctly, like mine) to determine for sure if itís the hex files or a computer/IFI_Loader problem. You can also visually inspect the file, it's ASCII, but only gross problems will be obvious. If the hex file still doesnít work Iíd download the default code again to be sure of having a pristine hex file and try loading the FRC_default.hex file again.

Iíll also try to repeat the error in other ways.
__________________
Deduction is limited by knowledge, and knowledge is limited by preconceptions
358 Beta notes & results

Last edited by Mark McLeod : 09-21-2004 at 09:03 PM.
  #5   Spotlight this post!  
Unread 09-21-2004, 09:21 PM
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,244
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: IFI Loader problem - "Invalid HEX file"

At what point does the error appear? If it's after you tell the loader to download the program, it could be that either the controller is reporting a problem with the checksum, or the loader is detecting a discrepancy in the data echoed back by the controller. (I don't remember, for sure that the controller echoes the data, but I think it does.)

In either case, it could be a communications problem. If you are using a USB/serial adapter, that is a potential error source.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
ďLife should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #6   Spotlight this post!  
Unread 09-21-2004, 09:52 PM
wun's Avatar
wun wun is offline
Registered User
AKA: David Wolever
#0865 (Warp7)
Team Role: Programmer
 
Join Date: Dec 2003
Rookie Year: 2001
Location: Toronto
Posts: 84
wun will become famous soon enough
Send a message via AIM to wun Send a message via MSN to wun
Re: IFI Loader problem - "Invalid HEX file"

I get the problem as soon as I click "Ok" when I'm selecting the hex file (via the "BROWSE" button). The combo-box does not even change to the path of the hex file (I get the same message when I type the file path by hand).
I also just had the guy send me the files from his laptop (the one I was using today) and they seem to work just fine on my machine.
I will work more on it when I get back to school on thursday thou,
Thanks for all your help
__________________
Help Microsoft stop piracy. Use Linux!

I have three gmail invitations, message me if you want one
  #7   Spotlight this post!  
Unread 09-21-2004, 10:57 PM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 7,892
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Send a message via AIM to Alan Anderson
Re: IFI Loader problem - "Invalid HEX file"

Just a thought -- had you ever done anything with the problematic files using a Linux or Macintosh system? I don't know the loader's quirks, but it's possible that it requires a CR/LF pair between lines, and the files you're trying to use might have only a CR (Mac convention) or LF (Unix convention).

I mention this mostly because of the prominent penguin avatar.
  #8   Spotlight this post!  
Unread 09-22-2004, 09:34 AM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 7,394
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: IFI Loader problem - "Invalid HEX file"

Quote:
Originally Posted by Alan Anderson
I don't know the loader's quirks, but it's possible that it requires a CR/LF pair between lines, and the files you're trying to use might have only a CR (Mac convention) or LF (Unix convention).
One of the tests I ran was binary ftp'ing the file between UNIX and Windows machines to get the change in control characters at the end of the lines and it didn't seem to matter to IFI_Loader. I didn't test between old/new Mac and Windows though.
__________________
Deduction is limited by knowledge, and knowledge is limited by preconceptions
358 Beta notes & results

Last edited by Mark McLeod : 09-22-2004 at 10:04 AM.
  #9   Spotlight this post!  
Unread 09-22-2004, 12:30 PM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 7,892
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Send a message via AIM to Alan Anderson
Re: IFI Loader problem - "Invalid HEX file"

Quote:
Originally Posted by Mark McLeod
One of the tests I ran was binary ftp'ing the file between UNIX and Windows machines to get the change in control characters at the end of the lines...
Doing the ftp in binary mode is guaranteed not to modify the end-of-line characters. You'd have to do it in text mode.

A cheaper way to convert Unix-style line breaks to Windows-style is to use WordPad. It will recognize LFs alone, and will write out CR/LF pairs when saving the file.
  #10   Spotlight this post!  
Unread 09-22-2004, 12:35 PM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Itinerant Programmer
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 7,394
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: IFI Loader problem - "Invalid HEX file"

Quote:
Originally Posted by Alan Anderson
Doing the ftp in binary mode is guaranteed not to modify the end-of-line characters. You'd have to do it in text mode.
I was attempting to recreate David's problem and so tested windows and unix style files.

I chose binary on purpose to test the various CR/LF mixes in IFI_Loader on a windows machine. I used ftp in ASCII mode transferring to UNIX and binary coming back to maintain the UNIX style. I verified the file difference on windows. I didn't want ftp changing the UNIX style I'd created back to Windows style.

P.S. I was able to get identical symptoms to the ones David described, where the file path doesn't even appear, when I used non-ASCII characters at the beginning of the file. A pure ASCII corrupted file still displays the filename path while showing the error message.
__________________
Deduction is limited by knowledge, and knowledge is limited by preconceptions
358 Beta notes & results

Last edited by Mark McLeod : 09-22-2004 at 01:16 PM.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IFI Loader problems billstu Programming 22 03-23-2004 11:39 AM
IFI loader help! ShadowKnight Programming 7 02-10-2004 05:46 PM
White Paper Discuss: IFI Loader for Linux with compiling instructions CD47-Bot Extra Discussion 1 02-09-2004 04:46 PM
IFI Loader Doc's Raven_Writer Programming 0 01-21-2004 05:53 PM
Bug in IFI Loader rwaliany Programming 2 01-06-2004 09:26 PM


All times are GMT -5. The time now is 09:11 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi