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

18F2620 startup problem

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



Joined: 21 Oct 2005
Posts: 2

View user's profile Send private message

18F2620 startup problem
PostPosted: Fri Oct 21, 2005 1:23 pm     Reply with quote

Hello,
if got a custom board with an 18LF2620 mcu running at 3.3V.
Debugging and the communication to all components (like sensors, eeprom and rs232 transceiver) works very well. For the clock I use the internal Osc at 8Mhz.
But the target does not start if I try to use it without the debugger ( in debugging mode it works for hours without problems).
I tied MCLR with an 10k resistor (also tried 47k like suggested in the faq) to Vcc.
And when I disconnect the board from the ICD the debug wires are not longer than 1cm...

So any ideas what to do? I can not test my projekt in the real environment...


thanks a lot
salamander


my fuses (tried differnt, but probably I missed an important one..Smile
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
#FUSES HS //High speed Osc (> 4mhz)
#FUSES NOPROTECT //Code not protected from reading
#FUSES IESO //Internal External Switch Over mode enabled
#FUSES BROWNOUT //Reset when brownout detected
#FUSES BORV21 //Brownout reset at 2.1V
#FUSES NOPUT //No Power Up Timer
#FUSES NOCPD //No EE protection
#FUSES STVREN //Stack full/underflow will cause reset
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOLVP //Low Voltage Programming on B3(PIC16) or B5(PIC18)
#FUSES NOWRT //Program memory not write protected
#FUSES NOWRTD //Data EEPROM not write protected
#FUSES NOEBTR //Memory not protected from table reads
#FUSES NOCPB //No Boot Block code protection
#FUSES NOEBTRB //Boot block not protected from table reads
#FUSES NOWRTC //configuration not registers write protected
#FUSES NOWRTB //Boot block not write protected
#FUSES FCMEN //Fail-safe clock monitor enabled
#FUSES NOXINST //Extended set extension and Indexed Addressing mode disabled (Legacy mode)
#FUSES PBADEN //PORTB pins are configured as analog input channels on RESET
#FUSES LPT1OSC //Timer1 configured for low-power operation
#FUSES MCLR //Master Clear pin enabled
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Oct 21, 2005 1:31 pm     Reply with quote

Quote:
So any ideas what to do? I can not test my projekt in the real environment

Did you program the PIC with MPLAB in Programmer mode, instead
of Debugger mode ? You need to do that. See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=21415
Guest








PostPosted: Fri Oct 21, 2005 4:09 pm     Reply with quote

Hi,
tanks for your reply, but this is not the problem Smile

regards
salamander
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Oct 21, 2005 4:52 pm     Reply with quote

Post a very small test program that demonstrates the problem.
This could be simple LED blinking program. Make sure you
test this program in Debugger mode, and verify that it works,
and then test it in Programmer mode, and verify that it fails.
Then post it.

Also post the version of your compiler.


I want to look at your oscillator setup code. If I have your
version of the compiler, I'll check the .LST file to see if CCS
is creating the correct code.
Guest








PostPosted: Sat Oct 22, 2005 4:59 am     Reply with quote

Hello,
it was my fault. Whem I disconnected the target from the debugger, I also removed the powersupply for the max3232 on my adapterboard. Just a silly layout problem:)

now it works just fine.

Thx a lot
salamander
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