Go to Post While grandmothers are pretty cool, I would be hesitant in letting them determine what is and is not a robot. - Kellen Hill [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-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 05-02-2007, 16:41
Cheezmeister Cheezmeister is offline
Registered User
FRC #0871
 
Join Date: Jan 2007
Location: Long Island
Posts: 8
Cheezmeister is an unknown quantity at this point
MPLAB/c18 not creating a .hex file

Basically, the topic. I believe it's a problem with the project settings, as it only happens with certain robots' codes. It will compile, create .cod & .coff files, mysteriously omit the .coff to .hex conversion, and declare the build complete.

What would this be caused by? I have no idea where to start, so info on settings will be provided on request. Thank you ^_^
  #2   Spotlight this post!  
Unread 05-02-2007, 16:47
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,588
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: MPLAB/c18 not creating a .hex file

There is a setting to supress the creation of the hex file. In MPLAB, go to Projects -> Build Options -> Project -> MPLINK Linker and verify that INHX32 is selected.
  #3   Spotlight this post!  
Unread 07-02-2007, 14:00
Cheezmeister Cheezmeister is offline
Registered User
FRC #0871
 
Join Date: Jan 2007
Location: Long Island
Posts: 8
Cheezmeister is an unknown quantity at this point
Re: MPLAB/c18 not creating a .hex file

It is.
  #4   Spotlight this post!  
Unread 07-02-2007, 14:29
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
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: 8,856
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: MPLAB/c18 not creating a .hex file

Could be the "Output Directory" is set in
Project -> Build Options... -> Project
to be some place other than the current directory.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 08-02-2007, 18:13
Cheezmeister Cheezmeister is offline
Registered User
FRC #0871
 
Join Date: Jan 2007
Location: Long Island
Posts: 8
Cheezmeister is an unknown quantity at this point
Re: MPLAB/c18 not creating a .hex file

Quote:
Originally Posted by Mark McLeod View Post
Could be the "Output Directory" is set in
Project -> Build Options... -> Project
to be some place other than the current directory.
That wouldn't cause the linker not to even output "cod to hex converter" (or whatever the exact wording is...) though, would it?
  #6   Spotlight this post!  
Unread 09-02-2007, 09:50
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
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: 8,856
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: MPLAB/c18 not creating a .hex file

Quote:
Originally Posted by Cheezmeister View Post
That wouldn't cause the linker not to even output "cod to hex converter" (or whatever the exact wording is...) though, would it?
I was thinking that if no COFF is evident in the directory to be passed to mp2hex.exe, then MPLAB would automatically skip that step or mp2hex.exe would just stop and not display any message.

I encountered this same issue with Smithtown a couple of year's ago and I'm trying to remember how we fixed it. They had played around a lot with the settings and had specified where intermediate directories, etc. were located instead of taking the installation defaults.
It may have been a matter of taking all the defaults or reinstalling MPLAB/C18 to get all the default settings back, but based on your experience of it happening with some files and not others, I suspect we must have recreated the projects as well to correct the project specific settings.

You can run mp2hex.exe from a command line in case it gives you any more useful information.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 09-02-2007 at 09:56.
  #7   Spotlight this post!  
Unread 11-02-2007, 16:13
Cheezmeister Cheezmeister is offline
Registered User
FRC #0871
 
Join Date: Jan 2007
Location: Long Island
Posts: 8
Cheezmeister is an unknown quantity at this point
Thumbs up Re: MPLAB/c18 not creating a .hex file

OK, I'll give that a shot when I'm back in school tomorrow, Mark
  #8   Spotlight this post!  
Unread 15-02-2007, 15:01
Cheezmeister Cheezmeister is offline
Registered User
FRC #0871
 
Join Date: Jan 2007
Location: Long Island
Posts: 8
Cheezmeister is an unknown quantity at this point
Re: MPLAB/c18 not creating a .hex file

Well, running mp2hex.exe did nothing....

...because the path was too long -_- The projects that weren't getting hexes made were the ones whose paths were longer than 62 characters...always read carefully

Thanks for the help, all.
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
creating hex file seanl Programming 4 03-02-2007 22:08
"Error.MCP" file after HEX file trans iwdu15 Programming 1 24-01-2007 20:05
hex file garbage? sciguy125 Programming 2 04-07-2005 23:04
MPLAB C18 problem Justyn Programming 0 09-03-2005 11:37
How do we convert a modified user routines file into a valid .HEX file HuskieRobotics Programming 13 28-02-2004 12:12


All times are GMT -5. The time now is 00:21.

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


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