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 CCS Technical Support

Eclipse and CCS

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



Joined: 18 Oct 2003
Posts: 145

View user's profile Send private message

Eclipse and CCS
PostPosted: Sun Feb 26, 2006 9:40 am     Reply with quote

Hi,

Any use the eclipse enviroment with CCS?
jma_1



Joined: 08 Feb 2005
Posts: 147
Location: Wisconsin

View user's profile Send private message

PostPosted: Mon Mar 06, 2006 12:23 pm     Reply with quote

Greetings,
I have not used CCS compiler w/ Eclipse, but I've been toying with the idea myself. I've used the C/C++ (CDT) package with Eclipse and the MinGw compiler with good success. If you setup the Make file specs to call the CCS compiler, everything should work. Getting the debugger to parse the compilation errors might be interesting. See previous postings for setting up the CCS compiler w/ CodeWright (hints on setting up error parsing).

Please let me know how things work out.

Cheers,
Justin
carlosluis



Joined: 12 Jul 2005
Posts: 2

View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger ICQ Number

Yes is possible CCS and eclipse
PostPosted: Fri Apr 28, 2006 2:13 pm     Reply with quote

You'll have to read a little bit about how to use GNU make which is the one responsable to call the compiler and linker (when there's one). Following is my make file, again you need to have a basic understanding of the makefile syntax:


#RENAME AS NEEDED
#PROJECT=realtek
PROJECT=c-22d
RM := rm -f
MV:= mv -fv
CP:=cp

#The CCS compiler
CC = ccsc
#Misc options
C-COMMON=C:\reddwrks\lights2\c-common
DEVICES=C:\Program Files\Microchip\PICC\Devices
DRIVERS=C:\Program Files\Microchip\PICC\Drivers
C-22D=C:\reddwrks\wrkspace\four
INCLUDES=I="$(C-COMMON);$(DEVICES);$(DRIVERS);$(C-22D)"
BUILD-DIR:=C:/reddwrks/wrkspace/four/build
#+FH= PCH 18 Architecture,+DC Expanded COD file (ICE 2000),+L do not create
#list file, -E list only the first error, +STDOUT redirect to the standard
#output
CFLAGS= +FH +DC +LO -E +A +STDOUT

#Environment variables
PLATFORM=+GFOUR_INCH_DISPLAY="1"
#PLATFORM=+GPROTOBOARD="1"
#PLATFORM=+GELEVEN_INCH_DISPLAY="1"

#Main function location definitions
USER_MAIN="1"
BOOT_MAIN="2"
MAIN_LOC_USER=+GMAIN_LOCATION=$(USER_MAIN)
MAIN_LOC_BOOT=+GMAIN_LOCATION=$(BOOT_MAIN)

COMPILE=$(CC) $(PROJECT).c $(INCLUDES) $(CFLAGS) $(PLATFORM) $(MAIN_LOC_BOOT)
COMPILE-UPGRADE=$(CC) $(PROJECT).c $(INCLUDES) $(CFLAGS) $(PLATFORM) $(MAIN_LOC_USER)

#Known extentions
HEX=HEX
LST=LST
COD=cod
ERR=err
STA=sta
SYM=SYM
PJT=PJT

all: $(PROJECT).$(HEX)
$(PROJECT).$(HEX): $(PROJECT).c
ifeq ($(FIRMWARE_UPGRADE),1)
@echo Compiling for upgrade image:
$(COMPILE-UPGRADE)
@$(MV) $(PROJECT).$(HEX) c-22d-upgrade.$(HEX)
else
@echo Compiling for a base image with bootloader:
$(COMPILE)
endif
@$(CP) *.$(HEX) $(BUILD-DIR)
@$(MV) *.$(LST) $(BUILD-DIR)
@$(MV) *.$(COD) $(BUILD-DIR)
@$(MV) *.$(ERR) $(BUILD-DIR)
@$(MV) *.$(STA) $(BUILD-DIR)
@$(MV) *.$(SYM) $(BUILD-DIR)
@$(MV) *.$(PJT) $(BUILD-DIR)



clean:
@$(RM) $(BUILD-DIR)/*.$(HEX)
@$(RM) $(BUILD-DIR)/*.$(MAP)
@$(RM) $(BUILD-DIR)/*.$(LST)
@$(RM) $(BUILD-DIR)/*.$(COD)
@$(RM) $(BUILD-DIR)/*.$(ERR)
@$(RM) $(BUILD-DIR)/*.$(STA)
@$(RM) $(BUILD-DIR)/*.$(PJT)
@$(RM) $(BUILD-DIR)/*.$(SYM)


@$(RM) *.$(HEX)
@$(RM) *.$(MAP)
@$(RM) *.$(LST)
@$(RM) *.$(COD)
@$(RM) *.$(ERR)
@$(RM) *.$(STA)
@$(RM) *.$(PJT)
@$(RM) *.$(SYM)
_________________
Carlos Luis
mds



Joined: 06 Nov 2005
Posts: 29

View user's profile Send private message

PostPosted: Wed Jul 13, 2011 10:11 pm     Reply with quote

Hey guys this is a pretty old topic. I was just wondering if it had gotten any easier or if anyone had any more thoughts on using Eclipse.

I had to do a Python app a while back and thought it would be a good opp to give eclipse a trial.
Was very happy with the results and soon found myself wishing there was a plugin for CCS.
Don't know much about setting up such things.

Sure its large n bloatware but it sure made my source writing a whole lot easier than the cumbersome and feature poor CCS IDE.

Anyone else using it?
Sergeant82d



Joined: 01 Nov 2009
Posts: 55
Location: Central Oklahoma

View user's profile Send private message

PostPosted: Mon Jul 18, 2011 2:54 pm     Reply with quote

As far as I've ever been able to find out - with lots of time spent searching online - there is no available plug-in to use CCS with Eclipse.

That said, the new MPLAB X IDE from Microchip is based on NetBeans... and is far more advanced than the current 8 series version. It is capable of anything Eclipse can do, and is far less bloated.

It is still in Beta (ver 6), but is very usable with some learning curve needed.


HTH.
mds



Joined: 06 Nov 2005
Posts: 29

View user's profile Send private message

PostPosted: Thu Jul 21, 2011 8:48 pm     Reply with quote

Hi NTH,
Thanks for your response. I have just spent some time playing with Netbeans from a Python perspective. I dont sue Java and Python is the only other language other than CCS I use nowadays. I was using Eclipse to write this app last week, so it was fresh in my mind. Nb had a few issues with Python or at least my understanding of it and I have raised those on the NB forum. It certainly did not work out of the box like Eclipse did.
Anyway I moved onto mplab X and indeed its very NB like Smile I ran into problems fairly early on tho.
I could not work out how to add the ICD-U64 programmer that we are using (CCSload) into the tools on a new project.
Im also having problems with pathing. #include <stdlib.h> for example is in error with cant be found.
Spellchecking not working on comments
bookmarks arnt much better than CCS
at least it has Tasks ...if I cant get them to work
and supports SVN

However its looking promising
learning curve Confused
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