View previous topic :: View next topic |
Author |
Message |
salamander
Joined: 21 Oct 2005 Posts: 2
|
18F2620 startup problem |
Posted: Fri Oct 21, 2005 1:23 pm |
|
|
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..
#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
|
|
Posted: Fri Oct 21, 2005 1:31 pm |
|
|
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
|
|
Posted: Fri Oct 21, 2005 4:09 pm |
|
|
Hi,
tanks for your reply, but this is not the problem
regards
salamander |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Oct 21, 2005 4:52 pm |
|
|
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
|
|
Posted: Sat Oct 22, 2005 4:59 am |
|
|
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 |
|
|
|