View previous topic :: View next topic |
Author |
Message |
Gav Pinto Guest
|
Automatically loading the hex file in mplab |
Posted: Sun Feb 07, 2010 11:30 pm |
|
|
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
|
|
Posted: Mon Feb 08, 2010 12:03 am |
|
|
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
|
|
Posted: Mon Feb 08, 2010 12:40 am |
|
|
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
|
|
Posted: Mon Feb 08, 2010 12:43 am |
|
|
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
|
|
Posted: Mon Feb 08, 2010 5:32 am |
|
|
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
|
|
Posted: Mon Feb 08, 2010 10:28 am |
|
|
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
|
|
Posted: Mon Feb 08, 2010 12:54 pm |
|
|
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
|
|
Posted: Mon Feb 08, 2010 10:11 pm |
|
|
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
|
|
Posted: Mon Feb 08, 2010 10:15 pm |
|
|
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. |
|
|
|