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

Program won't run after power is cycled

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







Program won't run after power is cycled
PostPosted: Sun Dec 20, 2009 8:34 pm     Reply with quote

I'm new to CCS compilers and have encountered a strange problem

I can write a program with PCWH, load it with my PicKit2 programmer, and the program runs correctly. I'm using an 18f2320.

I'm using an external power supply, and if I cycle the power the PIC won't restart. It just sits there doing absolutely nothing.

I have the HEX file of another program that runs and power cycles correctly, so I know the hardware is OK.

Unfortunately, the working source code was in the programmer's thumb drive when he stormed out of the building 2 weeks ago, so I can't just copy the configuration bits and other information from the good program.

Anybody ever seen anything like this?
Thanks, Al
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Dec 20, 2009 9:06 pm     Reply with quote

Quote:

Unfortunately, the working source code was in the programmer's thumb drive

You can read the PIC into MPLAB (using the Programmer / Read menu)
and then look at the Config bits ("fuses" in CCS) in the Configure /
Configuration Bits menu. You can look at the (ASM) code in the View /
Program Memory menu.

Make sure you select the correct PIC in the Configure / Select Device
menu, before you do this.

Also select your Pickit 2 programmer in the Programmer / Select
Programmer menu.
AllanG
Guest







Program won't run after power
PostPosted: Mon Dec 21, 2009 5:18 pm     Reply with quote

Thanks for the advice, PCM programmer.

I'll give it a try.

Al
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