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

Help required urgently !!!!

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



Joined: 30 Nov 2005
Posts: 8

View user's profile Send private message

Help required urgently !!!!
PostPosted: Tue Jan 17, 2006 8:01 am     Reply with quote

Ok now i had my codee burned onto the PIC 18f252 then i used the erase function in the mplab ....
Trying to burn again onto the chip just configure the configuration bits ...
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Tue Jan 17, 2006 9:03 am     Reply with quote

Why not just reprogram the chip, including the config bits this time.
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
Zaki



Joined: 30 Nov 2005
Posts: 8

View user's profile Send private message

PostPosted: Sun Jan 22, 2006 11:48 pm     Reply with quote

I dont know how . I got the PIC 18f252 and i wrote code using PCH compiler , then i programmed that code onto the PIC and it was functioning . Then i decided i want to change the code . So i erased that code . Erasing the code just erased with it the past configuration bits and ID . But i aked myself here how come , even if i try putting the old code again i get the same problem ? So i concluded the problem is not with my code its that the configuration bits and Id were somthing already there on the PIC before i put my code . I dont know how to restore them back ??
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Mon Jan 23, 2006 8:39 am     Reply with quote

What programmer are you using?

Have you read its manual?

When you look at the HEX file created after compiling you should be able to identify the line(s) with the CONFIG bits. I don't believe it is possible to tell the PCH compilers to exclude them.

You do have a #FUSE statement or statements at the start of your program, right? Look at your code and LST file to be sure the resultant bits are correct.
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
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