|
|
View previous topic :: View next topic |
Author |
Message |
AllanG Guest
|
Program won't run after power is cycled |
Posted: Sun Dec 20, 2009 8:34 pm |
|
|
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
|
|
Posted: Sun Dec 20, 2009 9:06 pm |
|
|
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 |
Posted: Mon Dec 21, 2009 5:18 pm |
|
|
Thanks for the advice, PCM programmer.
I'll give it a try.
Al |
|
|
|
|
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
|