View previous topic :: View next topic |
Author |
Message |
Chen Guest
|
Trouble moving project to different directory |
Posted: Thu Apr 03, 2003 4:03 pm |
|
|
When I moved a whole working project from one directory to another, I have trouble compiling it in the new directory.
I get:
Deleting intermediary files... done.
Executing: "C:\Program files\Picc\CCSC.exe" "mmc_test.c" 様様様様様様様様様様様様様様様理毫毫毫
Error[24] C:\PROGRAM FILES\PICC\devices\18F8620.h 2 : Unknown device type
Halting build on first failure as requested.
BUILD FAILED
What do I need to watch when I move the project files from one directory to another?
Thanks!
___________________________
This message was ported from CCS's old forum
Original Post ID: 13381 |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
Re: Trouble moving project to different directory |
Posted: Thu Apr 03, 2003 4:07 pm |
|
|
:=When I moved a whole working project from one directory to another, I have trouble compiling it in the new directory.
:=
--------------------------------------------------------
I don't know what you're using, whether it's MPLAB or PCW.
But the simple way to move a project is to copy all the .c
and .h files to the new directory, and then create a new
project in that directory. Don't copy the .pjt file, etc.
Only copy the source files.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13382 |
|
|
Chen Guest
|
Re: Trouble moving project to different directory |
Posted: Thu Apr 03, 2003 4:43 pm |
|
|
I am using it under MPLAB/CCS.
I tried your suggestion, copy only .c and .h files, and create the project in the new directory (select CCS as the tool and add the .c file to it), but the result is the same (sometime even crashes MPLAB), and I verify the old directory still works fine.
:=:=When I moved a whole working project from one directory to another, I have trouble compiling it in the new directory.
:=:=
:=--------------------------------------------------------
:=
:=I don't know what you're using, whether it's MPLAB or PCW.
:=But the simple way to move a project is to copy all the .c
:=and .h files to the new directory, and then create a new
:=project in that directory. Don't copy the .pjt file, etc.
:=Only copy the source files.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13384 |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
Re: Trouble moving project to different directory |
Posted: Thu Apr 03, 2003 5:02 pm |
|
|
:=I am using it under MPLAB/CCS.
:=
:=I tried your suggestion, copy only .c and .h files, and create the project in the new directory (select CCS as the tool and add the .c file to it), but the result is the same (sometime even crashes MPLAB), and I verify the old directory still works fine.
:=
-------------------------------------------------------------
What version of MPLAB and what version of CCS are you using ?
Tell me, and I'll try moving the directory of a test project.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13385 |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
Re: Trouble moving project to different directory |
Posted: Thu Apr 03, 2003 6:05 pm |
|
|
:=When I moved a whole working project from one directory to another, I have trouble compiling it in the new directory.
:=
:=I get:
:=
:=Deleting intermediary files... done.
:=Executing: "C:\Program files\Picc\CCSC.exe" "mmc_test.c" 様様様様様様様様様様様様様様様理毫毫毫
:=Error[24] C:\PROGRAM FILES\PICC\devices\18F8620.h 2 : Unknown device type
:=Halting build on first failure as requested.
:=BUILD FAILED
:=
:=What do I need to watch when I move the project files from one directory to another?
:=
-----------------------------------------------------
I have one more thought, while looking at the error messages
above. It says "Unknown device type", even though it finds
the .h file.
When you setup the project in MPLAB, did you go to the window
that lets you select the proper CCS compiler ? Did you pick
the PCH compiler ? If you picked PCM, it won't work. You
are using a 18F chip, and you need to setup MPLAB to use the
PCH compiler.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13386 |
|
|
Woody Guest
|
Re: Trouble moving project to different directory |
Posted: Fri Apr 04, 2003 1:24 am |
|
|
I'm using MPLAB 6.10 / PCWH 3.148
I've encountered the problem outlined after printing the contents of various windows from MPLAB. The problem appears to be that the MPLAB project file (*.mcp) gets corrupted; in my case I found that line of funny characters you saw in this file - restoring the project file from a backup solved the problem.
When moving directories the problem appears to be that the workspace file that MPLAB uses (*.mcw) holds a reference to the full path of where the original include files were; so even when you move directory, apart from the main *.c source file all other files *.h and *.c files from the original directory are included, not the ones in your current working directory.
It seems the best way is to copy only the *.c and *.h files and biuld the project from scratch each time.
Has anybody found a way round this?
___________________________
This message was ported from CCS's old forum
Original Post ID: 13392 |
|
|
Chen Guest
|
Re: Trouble moving project to different directory |
Posted: Fri Apr 04, 2003 8:04 am |
|
|
Yes, I did select the correct device from MPLAB
My CCS version:
IDE 3.24
PCB/M/H: 3.137
MPLAB: 6.12
:=-----------------------------------------------------
:=
:=I have one more thought, while looking at the error messages
:=above. It says "Unknown device type", even though it finds
:=the .h file.
:=
:=When you setup the project in MPLAB, did you go to the window
:=that lets you select the proper CCS compiler ? Did you pick
:=the PCH compiler ? If you picked PCM, it won't work. You
:=are using a 18F chip, and you need to setup MPLAB to use the
:=PCH compiler.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13399 |
|
|
Chen Guest
|
Re: Trouble moving project to different directory |
Posted: Fri Apr 04, 2003 8:17 am |
|
|
In the language selection windows, I don't see PCH nor PCM option, only CCS C Compiler (ccsc.exe), and that is what i picked
:=When you setup the project in MPLAB, did you go to the window
:=that lets you select the proper CCS compiler ? Did you pick
:=the PCH compiler ? If you picked PCM, it won't work. You
:=are using a 18F chip, and you need to setup MPLAB to use the
:=PCH compiler.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13400 |
|
|
Chen Guest
|
I just downloaded and installed MPLAB 6.13. It seems to fix |
Posted: Fri Apr 04, 2003 9:08 am |
|
|
___________________________
This message was ported from CCS's old forum
Original Post ID: 13402 |
|
|
|