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

Unable to use MPLAB

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



Joined: 16 Nov 2004
Posts: 8

View user's profile Send private message

Unable to use MPLAB
PostPosted: Tue Dec 14, 2004 4:42 pm     Reply with quote

I am using PIC C compiler. I am able to compile my program in PIC C successfully, but unable to do it in MPLAB. It says invalid option +M, then starts its compilation, finishes the compilation but it gives me the following error
"Error[44] rs232.c 21 : Internal Error - Contact CCS => Code 65:5:6"
and hence says build failed. Can anyone pl. help me with this.
Thanks
Karthik
dyeatman



Joined: 06 Sep 2003
Posts: 1924
Location: Norman, OK

View user's profile Send private message

Sounds like an error in your code...
PostPosted: Tue Dec 14, 2004 7:05 pm     Reply with quote

Sounds to me like you have an error in your code...post your code so we can see what you have....

Be sure to include your compiler version!
cartic



Joined: 16 Nov 2004
Posts: 8

View user's profile Send private message

This is my code
PostPosted: Tue Dec 14, 2004 8:00 pm     Reply with quote

This is my code. The compiler version is 3.118.
Code:
#include <16F873.h>  // 2k byte ROM, 128 byte EEPROM
#device *=16 adc=10
#fuses XT,NOWDT,NOPROTECT,NOWDT,NOLVP, NOBROWNOUT, NOPUT
#use delay(clock=4000000)
#use rs232(baud=9600, parity=N, bits=8, xmit=PIN_C6, rcv=PIN_C7, errors)

#include <string.h>
#include <stdlib.h>
void main()
{
char c;

   while(1)
   {
       if(kbhit())
       {
       c=getc();
       putc(c);
       }
   }
}

Any help is more welcome, as I am struck with this error for many days.
Thanks
Karthik
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Dec 15, 2004 2:25 am     Reply with quote

It compiles fine in my MPLAB v6.60.

Have you just installed or upgraded your MPLAB? If yes, then make sure to:
1) Install the MPLAB plugin from the CCS website.
2) In MPLAB under 'Project\Select Language Toolsuite' there are two options for the CCS compiler. Don't select the one called 'CCS C Compiler', but the other one called something like 'CCS C Compiler for PIC12/14/16/18'.
dyeatman



Joined: 06 Sep 2003
Posts: 1924
Location: Norman, OK

View user's profile Send private message

PostPosted: Wed Dec 15, 2004 6:49 am     Reply with quote

I think ckielstra is right because it also compiles fine for me with CCS V3.210 and MPLAB 7

Dave
cartic



Joined: 16 Nov 2004
Posts: 8

View user's profile Send private message

Thanks
PostPosted: Wed Dec 15, 2004 12:14 pm     Reply with quote

Thanks for the help. I will try installing the plugin and change the language tool bar settings and see if it works.
Thanks
Karthik
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