CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

PIC C Compiler

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
garincha
Guest







PIC C Compiler
PostPosted: Wed Feb 13, 2008 2:04 am     Reply with quote

hi,

i am beginner in PIC programming and i need advice, so please help me if you can.
i use CCS C compiler and everything is O.K. except .hex file.
when i compile my source code in CCS C compiler i got message
Output files: ERR HEX SYM LST COF PJT TRE STA
0 Errors, 0 Warnings
so, i suppose every thing is O.K.
but later when i use MPLAB IDE to making my project with Project>Project Wizard and building my project with Project>Build All i don't have .hex file of my CCS C project, and i have nothing to transfer to my PIC16F84 via IC-Prog.
in MPLAB, after i was building my project, appear OUTPUT WINDOW with notice ...BUILD SUCCEEDED(to the end)...
during Project Wizard in MPLAB i used a correct device,correct active toolsuite(CCS C Compiler for PIC10/12/14...),i added existing file to my project("name".c) but i don't have .hex file and i need that:-).
Please, could someone tell me what i doing wrong, and if exists another way to generate hex file "from source code".c, please let me know.

thank You very much,

garincha[/u]
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Feb 13, 2008 11:23 pm     Reply with quote

Try to run the compiler directly with the CCSC.exe file.

1. Open a Command Prompt (DOS) window.

2. Change to the c:\Program Files\Picc directory.

3. Type CCSC and press Enter. A small window will pop up.

4. Enter the full path to the source file. Example:
c:\Program Files\Picc\Projects\Test\Pcm_test.c

5. The click the OK button. The file should compile.
(If it says "IO Error", then you typed the wrong path or filename.)
Press Enter to make the CCS window go away.

6. Look in the project directory. The HEX file should be there.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group