CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Automatically loading the hex file in mplab

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Gav Pinto
Guest







Automatically loading the hex file in mplab
PostPosted: Sun Feb 07, 2010 11:30 pm     Reply with quote

With command-line compiler version running in Mplab.

How do you automatically load the hex file after building the project?

How do you automatically run after programming is complete

Normally the .cof file gets loaded

Loaded C:\Proj Dir\xxxmain.cof.

I do not wish to manually import the .hex file
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Mon Feb 08, 2010 12:03 am     Reply with quote

You shouldn't have to.


When I hit compile and CCS PCM/H/D is finished, the compiled hex file is ready to go.

Unless you found a setting and changed it to a non-default value, everything should work as is.

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 08, 2010 12:40 am     Reply with quote

Quote:

How do you automatically load the hex file after building the project?
How do you automatically run after programming is complete?

Go to the Programmer / Settings / Program tab. There are two tickboxes
to select those options.
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Mon Feb 08, 2010 12:43 am     Reply with quote

PCM programmer wrote:
Quote:

How do you automatically load the hex file after building the project?
How do you automatically run after programming is complete?

Go to the Programmer / Settings / Program tab. There are two tickboxes
to select those options.



Hahaha. I thought he meant import. :D

Yes. Do what PCM said.

Keep in mind you have to have a programmer/debugger SELECTED first otherwise the setting's option won't exist yet.

I have noticed that one of the 2 checkboxes isn't always available to check. (never dug into why. I don't like auto-programming.)

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
Guest








PostPosted: Mon Feb 08, 2010 5:32 am     Reply with quote

bkamen wrote:
PCM programmer wrote:
Quote:

How do you automatically load the hex file after building the project?
How do you automatically run after programming is complete?

Go to the Programmer / Settings / Program tab. There are two tickboxes
to select those options.



Hahaha. I thought he meant import. :D

Yes. Do what PCM said.

Keep in mind you have to have a programmer/debugger SELECTED first otherwise the setting's option won't exist yet.

I have noticed that one of the 2 checkboxes isn't always available to check. (never dug into why. I don't like auto-programming.)

-Ben


Not able to see the hex file loaded as with import command after successful build??????, even after checking the boxes as suggested above

BUILD SUCCEEDED: Mon Feb 08 22:30:11 2010
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Mon Feb 08, 2010 10:28 am     Reply with quote

Er, are you using File -> Import??
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 08, 2010 12:54 pm     Reply with quote

Quote:

Not able to see the hex file loaded

You can ask questions about the operation of MPLAB on the MPLAB IDE forum:
http://www.microchip.com/forums/tt.aspx?forumid=57

Carefully explain to them exactly what you mean by "loaded".
Guest








PostPosted: Mon Feb 08, 2010 10:11 pm     Reply with quote

bkamen wrote:
Er, are you using File -> Import??


Well that was the way I loaded always the .hex file after building the project in MPLAB.

I am now trying to automate the process, but always see the cof file loaded.

I guess coff files also contain all the info in the .hex file, but I would like to see the .hex file loaded as with the File->Import command.
Guest








PostPosted: Mon Feb 08, 2010 10:15 pm     Reply with quote

PCM programmer wrote:
Quote:

Not able to see the hex file loaded

You can ask questions about the operation of MPLAB on the MPLAB IDE forum:


Carefully explain to them exactly what you mean by "loaded".


Yes I must explain it clearly to them. Thanks.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group