View previous topic :: View next topic |
Author |
Message |
PICAlison
Joined: 11 Jun 2021 Posts: 10
|
IDE Help |
Posted: Fri Jul 16, 2021 7:06 am |
|
|
I've started a project in the CCS Compiler IDE, but not all of my source files appear in the 'Files' Window.
What is the best method of adding source files / creating a project, so that the IDE is aware of them?
BTW my code compiles and all the code is used. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19515
|
|
Posted: Fri Jul 16, 2021 7:33 am |
|
|
You have tried clicking the 'open all files' option (File - third line down)?.
If they are being included in the compile, this should load them.
The file tab should then see them all. |
|
|
PrinceNai
Joined: 31 Oct 2016 Posts: 479 Location: Montenegro
|
|
Posted: Fri Jul 16, 2021 9:55 am |
|
|
You of course included all your files somewhere? Correct me if I'm wrong, but only when you compile your project you can see all the files. I always use the wizard to create a new project. Select the PIC and clock. Nothing else. Then I copy and replace everything I need from a known working project in the .h file that is created when I build the project (RS232, I2C, fuses, ICD,...). Write all the #includes, main is still empty. Rebuild. At that point' if everything went well, I can see all the project files. You should also have a tick under view --> files to see them all. |
|
|
PICAlison
Joined: 11 Jun 2021 Posts: 10
|
|
Posted: Mon Jul 19, 2021 6:27 am |
|
|
I have included all the files, it wouldn't have compiled otherwise.
I had some files in sub directories and some in with the main c file. No idea why they didn't show up.
I created a new project and copied them in and the 'missing' files appear on the 'File' view. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19515
|
|
Posted: Mon Jul 19, 2021 6:52 am |
|
|
My standard procedure to ensure the project file is current, is just delete
the .ccspjt file, then open the main.c file. Result a new ccspjt file is created
that is up to date. |
|
|
|