Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   MPLAB 7.20 Help please? (http://www.chiefdelphi.com/forums/showthread.php?t=52384)

groovy69 20-01-2007 17:46

MPLAB 7.20 Help please?
 
hi there, when i use mplab and go to project > build all, it always creates a ".coff" file not a ".hex" .. any idea how i might go about fixing this? many thanks :D

groovy69 20-01-2007 19:25

Re: MPLAB 7.20 Help please?
 
help

taberski 20-01-2007 20:39

Re: MPLAB 7.20 Help please?
 
You need to get MPLAB to run MP2HEX.

In MPLAB IDE 7.20 select:

Project->Build Options ... ->Project

and select the MPLink Linker tab,

Finally - check the INHX32 Hex-File Format.

Good Luck!

Kevin Taberski
Software Mentor
Team 1619 - Up-a-Creek Robotics
Longmont, Co

Mike Betts 20-01-2007 20:43

Re: MPLAB 7.20 Help please?
 
I do not know how you are managing to do this. From MPLAB select Project>Build Options>Project and click in the MPLINK Linker tab and then verify that INHX32 is selected. My guess is that this is not your problem...

My guess is that you are getting an error which is halting the build process...

Any error messages?

Mike

slloyd 20-01-2007 20:46

Re: MPLAB 7.20 Help please?
 
i had this problem when the project we were editing was burried very deep in the directory tree. try closing down MPLAB. copy your entire working directory, then paste it somewhere near the root directory such as:

C:\mcc18\projects\{working folder}

then open your workspace again in MPLAB and try build all function.

slloyd

Christian 20-01-2007 20:53

Re: MPLAB 7.20 Help please?
 
I also had this same problem and as slloyd said, the project was burried very deep. I just created a directory: C:/camera and put the project in there. Then, changed the output directory to that path since it was still creating the .coff file after the directory change.

michael714 20-01-2007 22:52

Re: MPLAB 7.20 Help please?
 
After you go Project -> Build All -> Project, you go to the MPLINK Linker tab and check "Suppress COD file generation." That worked for me.

groovy69 21-01-2007 11:58

Re: MPLAB 7.20 Help please?
 
wow thanks so much for the help everyone .. you're all so much friendlier and willing to help than id expected ... again many thanks! :D

good luck to you all!

Alan Anderson 21-01-2007 12:13

Re: MPLAB 7.20 Help please?
 
Quote:

Originally Posted by groovy69 (Post 561813)
...you're all so much friendlier and willing to help than id expected ...

Welcome to the world of Gracious Professionalism. Helping each other out is part of the culture we're trying to spread. Soak it up and pass it along. While FRC teams are certainly rivals, we are not enemies.

groovy69 21-01-2007 12:20

Re: MPLAB 7.20 Help please?
 
Quote:

Originally Posted by Alan Anderson (Post 561817)
Welcome to the world of Gracious Professionalism. Helping each other out is part of the culture we're trying to spread. Soak it up and pass it along. While FRC teams are certainly rivals, we are not enemies.



Absolutely. :D



and ya, here's what i get now when i build...

-------------------------------------------------



MPLINK 3.94, Linker
Copyright (c) 2005 Microchip Technology Inc.
Errors : 0

MP2COD 3.94, COFF to COD File Converter
Copyright (c) 2005 Microchip Technology Inc.
Errors : 0

MP2HEX 3.94, COFF to HEX File Converter
Copyright (c) 2005 Microchip Technology Inc.
Errors : 0

Loaded C:\frc_camera_21\camera.cof.
BUILD SUCCEEDED: Sun Jan 21 12:17:30 2007



-------------------------------------------------

and its building a hex. so thanks a lot
-out of curiousity should it still say .cof? here: Loaded C:\frc_camera_21\camera.cof.
BUILD SUCCEEDED: Sun Jan 21 12:17:30 2007

slloyd 21-01-2007 14:17

Re: MPLAB 7.20 Help please?
 
glad to help

:)

groovy69 21-01-2007 15:23

Re: MPLAB 7.20 Help please?
 
another problem now.. in the com1 terminal window.. it doesnt display any of my printfs... which is puzzling...


essentially this is all i want to see:


-------------------------


rot = Get_Analog_Value(rc_ana_in01);
temp = Get_Analog_Value(rc_ana_in02);
pot = Get_Analog_Value(rc_ana_in03);
ac = Get_Analog_Value(rc_ana_in04);


printf("rot: 3%d, temp: 3%d, pot: 3%d, ac: %d/r", rot, temp, pot, ac);

Alan Anderson 21-01-2007 15:34

Re: MPLAB 7.20 Help please?
 
Quote:

Originally Posted by groovy69 (Post 561926)
printf("rot: 3%d, temp: 3%d, pot: 3%d, ac: %d/r", rot, temp, pot, ac);

The carriage return character is \r.

groovy69 21-01-2007 18:31

Re: MPLAB 7.20 Help please?
 
^ omgosh .. bleh what a small and terrible error on my part.. thanks for catching that..
-however, it still does not diplay anything in the com1 terminal window..


maybe this will help:

when i unplug the frc controller from the main power (12V) the com terminal window prints: IFI>
it does this once for every time i unplug, then plug back in, the power to the controller...

hmm??



------ and it seems like everytime i turn around im getting some new error---
any help?





INK 3.94, Linker
Copyright (c) 2005 Microchip Technology Inc.
Error - section '_entry_scn' type is non-overlay and absolute but occurs in more than one input file.
Errors : 1

BUILD FAILED: Sun Jan 21 18:30:34 2007

dcbrown 22-01-2007 02:00

Re: MPLAB 7.20 Help please?
 
http://www.chiefdelphi.com/forums/sh...ad.php?t=51256 This thread has information on the '_entry_scn' error.


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

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