View previous topic :: View next topic |
Author |
Message |
Barney
Joined: 18 Oct 2004 Posts: 41 Location: Newark, CA
|
Adding PCH to MPLAB & PCM |
Posted: Mon Aug 29, 2005 11:13 am |
|
|
I need to use a 18F part for a project and am currently using PCM with MPLAB. I want to mostly stay with 16F parts and PCM with occasional usage of 18F and PCH. Any special tricks or tips for installing and using both PCM & PCH with MPLAB?
1. Do I just buy PCH and install it? The manual has a one sentence installation procedure and isn't clear if it is only for single installations or dual/triple as well. Other theads mention using different directories, but it isn't clear if that is required or desirable in my case.
2. How to select the right compiler in MPLAB? Is it as simple as selecting the PIC chip in the MPLAB Config | Device Select window? I checked the compiler options for a 16F project and it did not include a specific compiler selection option such as +FM. |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Aug 29, 2005 11:24 am |
|
|
1. Buy it.
2. Install it.
3. Use it
Its that simple. I would install it in the same directory as the PCM compiler. It is probably best to keep both compilers up to date. If you install into separate directories, then you will have to point the tool location to the other directory. Then back again when you want to use the other version. This seems like a big pain so I would opt to install in the same directory and if that means that I have to keep both compilers up to date, then its worth it (I am not saying that you do, but you might). The other option would be to use the legacy toolsuite option to create another version. I posted how to do this sometime back. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Aug 29, 2005 11:28 am |
|
|
Quote: | Do I just buy PCH and install it? |
Yes.
But, read this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=22931
I eventually got annoyed with having to re-install each time
so I bought the maintenance for PCH -- I already had it for PCM.
(Sorry Mark, I didn't want to risk doing your registry edits).
Quote: | How to select the right compiler in MPLAB? |
Just create a separate project for your 18F chip with the MPLAB
project wizard. You just have to specify the CCS compiler
and the PIC chip when asked by the Wizard. You don't have
to select PCM or PCH. The correct compiler will automatically
be used when you compile the project. |
|
|
Barney
Joined: 18 Oct 2004 Posts: 41 Location: Newark, CA
|
|
Posted: Mon Aug 29, 2005 1:20 pm |
|
|
I was hoping it was that simple. But.......
The version issue problem described in the thread is unpleasant. I have an older version of PCM (Ver 3.212) and it sounds like installing a new PCH will disable PCM. Having to re-install compilers just to switch from one to the other isn't very customer friendly. I don't mind buying new versions for added features, but I resent being forced to buy a new version just so I don't have to jump thru hoops.
No other workarounds? |
|
|
Barney
Joined: 18 Oct 2004 Posts: 41 Location: Newark, CA
|
|
Posted: Mon Aug 29, 2005 2:51 pm |
|
|
I contacted CCS Tech support about the version issue and here is their take:
Quote: | Option 3 is the best. In MPLAB all you need to do to switch is use PROJECT > SET LANGUAGE TOOL LOCATION to set the path to the right directory. I am not sure but this may be save in the project information so you may only need to set it once for each project.
|
(Option 3 is putting PCH and PCM in separate subdirectories) |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Aug 29, 2005 3:06 pm |
|
|
Barney wrote: | I contacted CCS Tech support about the version issue and here is their take:
Quote: | Option 3 is the best. In MPLAB all you need to do to switch is use PROJECT > SET LANGUAGE TOOL LOCATION to set the path to the right directory. I am not sure but this may be save in the project information so you may only need to set it once for each project.
|
(Option 3 is putting PCH and PCM in separate subdirectories) |
Didn't ya read what I told ya
Quote: | If you install into separate directories, then you will have to point the tool location to the other directory. Then back again when you want to use the other version. |
And no it not per project. Its global. |
|
|
|