View previous topic :: View next topic |
Author |
Message |
gjs_rsdi
Joined: 06 Feb 2006 Posts: 468 Location: Bali
|
NEW and old CCS compiler |
Posted: Fri Mar 25, 2016 6:24 pm |
|
|
I would like to buy a new CCS compiler as my old does not include new controllers I would like to use (like 16F1847 to replace 16F648A and 18F26K22 to replace 18F2520). My compiler version is 3.249 that I am very pleased with.
I am using the CCS wizard for new micro controllers projects and MPLAB IDE.
I would like the forum advice regarding the issues below:
1. From reading the forum I understand that to be able to use both compilers the new compiler should be installed in a new folder (PICC5 for example?)
2. How I can assured that projects done in V3.249 will not be changed to the new compiler?
3. Will I be able to make projects with V3.249 or the new version as I wish?
4. As I am using the CCS wizard, it will be necessary to buy PCWH or PCM and PCH will be enough because I am working with MPLAB IDE?
5. Have a "known" stable new compiler I should ask for or just buy the latest.
I am private person, not a company so the financial aspect is important to me.
I will appreciate your advice.
Best wishes
Joe |
|
|
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
Posted: Fri Mar 25, 2016 8:49 pm |
|
|
set up an empty directory in your program files area
COPY YOUR AUTHENTICATION FILES FROM ccs
( .crg FILES) INTO THE new DIRECTORY
then during the install OF THE NEW COMPILER-
, point the install directory to be your new dir.
make shortcuts to major progs and you are done. |
|
|
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
Posted: Fri Mar 25, 2016 8:52 pm |
|
|
Quote: | projects done in V3.249 |
that's why you are keeping the two compilers apart.
i have 20 odd chubby, complex compile projects stretching back to earlier 3.0 revs and have rarely had an issue with forward compilation.
when i upgrade favorite thing to do is take a major project - compile with the update and compare finished size and significant parts of the new .LST file
the short answer to how to be assured is "you can't" - thats just how life is
|
|
|
gpsmikey
Joined: 16 Nov 2010 Posts: 588 Location: Kirkland, WA
|
|
Posted: Fri Mar 25, 2016 9:17 pm |
|
|
asmboy wrote: | set up an empty directory in your program files area
COPY YOUR AUTHENTICATION FILES FROM ccs
( .crg FILES) INTO THE new DIRECTORY
then during the install OF THE NEW COMPILER-
, point the install directory to be your new dir.
make shortcuts to major progs and you are done. |
It is a little fuzzy now, but I think that was how I got bitten with the windows 7 "Virtual Store" nonsense. When I dragged the .crg files from the CD CCS had sent me direct to the program directory, Windows decided to "help" me, put the files in that "virtual store" under my account without telling me and created the funny links to them. When I installed the compiler, it kept insisting they were not valid license files. Even had CCS send me new license files (which also appeared not to work when I dragged them from the email to the program directory). I may have the order reversed - I may have installed the compiler first then tried dragging the files to the install directory (which windows then decided it would put somewhere else leaving the dummy ones). Just a trap door to be aware of if you are using W7 or later. _________________ mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3 |
|
|
gjs_rsdi
Joined: 06 Feb 2006 Posts: 468 Location: Bali
|
|
Posted: Sat Mar 26, 2016 11:34 am |
|
|
Thank you for the answers. My questions 1,2,3 have answers.
What about the others? Someone can tell me if I need the PCWH or using PCM and PCH will do the job?
So having W7 is a problem? Can solve the problem?
Best wishes
Joe |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9226 Location: Greensville,Ontario
|
|
Posted: Sat Mar 26, 2016 12:11 pm |
|
|
Get an 'old' PC, toss XP on it, use it exclusively for PIC work !!! I've done that since v2.543 and NEVER ever had 'issues' with the OS 'helping' me!
Get one old enough and it'll have REAL Comports as well !!
Jay |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19513
|
|
Posted: Sat Mar 26, 2016 1:24 pm |
|
|
Virtual store can be disabled if you take full ownership.
<http://answers.microsoft.com/en-us/windows/forum/windows_7-security/how-to-disable-virtualstore-in-windows-7/55dce284-0dcd-46af-892e-d2b9cf5bcff6?auth=1>
Never given me any problems. |
|
|
gpsmikey
Joined: 16 Nov 2010 Posts: 588 Location: Kirkland, WA
|
|
Posted: Sat Mar 26, 2016 1:41 pm |
|
|
Ttelmah wrote: | Virtual store can be disabled if you take full ownership.
<http://answers.microsoft.com/en-us/windows/forum/windows_7-security/how-to-disable-virtualstore-in-windows-7/55dce284-0dcd-46af-892e-d2b9cf5bcff6?auth=1>
Never given me any problems. |
The trick is recognizing you have been "hepp'd" by winders
There are ways around it, but it is the "not bothering to tell me what it did" that gets me.
mikey _________________ mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3 |
|
|
gjs_rsdi
Joined: 06 Feb 2006 Posts: 468 Location: Bali
|
|
Posted: Sat Mar 26, 2016 9:51 pm |
|
|
Thanks for the replies.
I read all 125 posts from the link provided by Ttelmah.
Hope it will be OK.
Best wishes
Joe |
|
|
gjs_rsdi
Joined: 06 Feb 2006 Posts: 468 Location: Bali
|
|
Posted: Sat Apr 02, 2016 12:38 pm |
|
|
Hi again
Can someone advice me regarding my question 4 and 5?
Quote: | 4. As I am using the CCS wizard, it will be necessary to buy PCWH or PCM and PCH will be enough because I am working with MPLAB IDE?
5. Have a "known" stable new compiler I should ask for or just buy the latest.
|
Best wishes
Joe |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Apr 02, 2016 4:02 pm |
|
|
Quote: |
4. As I am using the CCS wizard, it will be necessary to buy PCWH or
PCM and PCH will be enough because I am working with MPLAB IDE? |
I believe this is a summary of what you want:
A. You want to use the Wizard in PCWH vs. 3.249 to generate source code.
But you don't want to use that IDE compiler to generate the hex files.
B. You want to buy and install the two command line compilers, PCM and
PCH for vs. 5.056. Then use MPLAB (8.92 or X) as the IDE for them.
You question is:
You want to know if PCWH vs. 3.249 and the vs. 5.056 command line
compilers can coexist on the same PC without interfering with each other,
with regard to:
- Will vs. 5.056 of PCM and PCH over-write files for vs. 3.249 during
installation ?
- Can the vs. 3.249 IDE be left running (but idle), after generating source
code with the Wizard, and can you then start MPLAB (8.92 or X) and
compile the source files with vs. 5.056 ? Will there be interference ?
Since I don't have the old IDE compiler, I can't test this for you. But
maybe someone else can. My instinct is that the vs. 3.249 wizard has
got to be fairly primitive. I doubt that it does that much for you.
Quote: | 5. Have a "known" stable new compiler I should ask for or just buy the latest. |
You would have to ask CCS support. Vs. 5.056 has problems. Example:
http://www.ccsinfo.com/forum/viewtopic.php?t=54986 |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19513
|
|
Posted: Sun Apr 03, 2016 12:54 am |
|
|
I currently have about thirty IDE versions all available on my system.
You just install to different directories, and then on the new compiler remove the file 'ccsdownload.exe' (I just rename it). This is the file that once launched starts 'automatically' keeping the compiler up to date, looking for new versions and downloading them. With this disabled, you have to go every few weeks and pull down the new version yourself, but can then install anywhere you want.
Then keep your individual 'projects' in their own directories, and if you want to switch compilers, delete the .pjt, and .ccspjt files for the code, and open the main .c file with the compiler you want. Without the project files, this will then default to using it's own include files, and create new project files.
I have a folder with shortcuts to .cmd files, that automatically delete the project files, and launch whatever compiler I want. So I can switch compiler versions in less than a second. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Apr 03, 2016 1:04 am |
|
|
Right but he doesn't want two IDE versions. He wants a cheap way to
upgrade. He wants to use the command line compilers with MPLAB v8.92.
BUT, he wants to still use his old v3.249 IDE with the Wizard to make
starter files for his projects, which he will then compile with vs. 5.056
in MPLAB. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19513
|
|
Posted: Sun Apr 03, 2016 4:32 am |
|
|
All the wizard does, is create a .h, and a .c file. These can be compiled with any compiler. Once you touch them with an IDE, a .PJT (and/or CCSPJT) file gets created for these (CCSPJT for the newer compilers). Delete these, and you are back to just a xxx.c and xxx.h file that anything can compile. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9226 Location: Greensville,Ontario
|
|
Posted: Sun Apr 03, 2016 5:12 am |
|
|
I had a quick look at what the Wizard does and it seems like a 'cheat' or 'crutch' to me. Instead of the programmer reading the manual to decide what IS required, he merely pushes the mouse around, pointing and clicking 'options' to configure the PIC program. HOPEFULLY the Wizard is flawless and selects the proper stuff to make it work right the first time.
Maybe I've misread what it does but if you can get the 1Hz LED program working after reading the manual aren't you better off? Typically you only use 2 or 3 PIC type (esp. if student),so you should get to 'know' them very fast!
I suppose it's a 'sign of the times', the 'two thumbs' approach to programming but I prefer to learn by doing, building on what I code/compile/test.
Jay |
|
|
|