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

PCH 3.152 with MPlab 6.20

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



Joined: 08 Sep 2003
Posts: 8

View user's profile Send private message

PCH 3.152 with MPlab 6.20
PostPosted: Thu Jun 19, 2003 2:29 pm     Reply with quote

I just made the leap, in order to program 18F542's.
I have tried the simple program below, but when I build it, I get a "MPlab.exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is being created" Then MPLab shuts down.
I installed MPlab 6.2, then CCS PCH 3.152, then the patch mentioned on this forum.
I created a project by:Project Wizard, selected 18F452, Show all installed toolsuites,Active Toolsuite = CCS C Compiler PIC 12/14/16/18, Location C:\program Files\PICC\CSCC.exe.
Names it, added the following source file. Built it, Killed it !

////////////////////////////////////////
//// Blink_LED.C ////
//// ////
//// Simple Program for the ////
//// 18F452 PIC. ////
//// For starters, it will flash ////
//// an LED on Pin 34 (RB1) ////
////////////////////////////////////////

#include <18f452.h>
#fuses HS,NOPROTECT
#use delay(clock=4000000)
#define LED Pin_B1
Void Main() {

while(TRUE)
{
OUTPUT_HIGH(LED); //LED OFF
delay_ms(500); //wait
output_low(LED); //LED ON
delay_ms(500); //wait
} //end of While(True), do it again
}

I am going to uninstall, and start again.
Any Other Suggestions ?

Thanks
Cam
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515404
Dave Rolleman
Guest







Re: PCH 3.152 with MPlab 6.20
PostPosted: Thu Jun 19, 2003 4:05 pm     Reply with quote

Don't use the wizzard create the project then go back and set all the info manually, this doesn't crash.


:=
:=Thanks
:=Cam
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515409
Cam Bruce



Joined: 08 Sep 2003
Posts: 8

View user's profile Send private message

Re: PCH 3.152 with MPlab 6.20
PostPosted: Thu Jun 19, 2003 11:33 pm     Reply with quote

I'll give that a try first thing in the morning.
I'll let you know. Thanks for the suggestion.
Cam

:=Don't use the wizzard create the project then go back and set all the info manually, this doesn't crash.
:=
:=
:=:=
:=:=Thanks
:=:=Cam
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515414
Cam Bruce



Joined: 08 Sep 2003
Posts: 8

View user's profile Send private message

Re: PCH 3.152 with MPlab 6.20
PostPosted: Fri Jun 20, 2003 9:19 am     Reply with quote

Tried it, still crashes.
However. I used one of the Examples (Ex_tones.C) with the header changed to 18F452, and it works !
I don't have a reason for the crashes yet, but I think i am back on my feet.

:=Don't use the wizzard create the project then go back and set all the info manually, this doesn't crash.
:=
:=
:=:=
:=:=Thanks
:=:=Cam
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515428
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