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

18F25J50 configuration bits

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



Joined: 25 Mar 2015
Posts: 7

View user's profile Send private message

18F25J50 configuration bits
PostPosted: Wed Jun 03, 2015 6:30 am     Reply with quote

Hello, I'm using 18F25J50.
I configured my MCU fuses as follows:

Code:

#FUSES HS,NOCPUDIV,NOFCMEN,NOIESO,NOIOL1WAY,NOWDT,RTCOSC_INT,NOSTVREN,NOPROTECT,NODEBUG


I'm using MPLAB, when I use PICKIT3 as debugger my code is working fine and I get this message:
Resetting...
PK3Err0040: The target device is not ready for debugging.
Please check your configuration bit settings and program
the device before proceeding.

And when I use the PICKIT3 as programmer, I program the hardware and nothing is running.

I don't understand the problem.
???!!
temtronic



Joined: 01 Jul 2010
Posts: 9199
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Jun 03, 2015 6:41 am     Reply with quote

hmm..
#FUSES HS,NOCPUDIV,NOFCMEN,NOIESO,NOIOL1WAY,NOWDT,RTCOSC_INT,NOSTVREN,NOPROTECT,NODEBUG

what's the last fuse you set ???


re: pgm doesn't run...

if you're using MPLAB be sure the 'build configuration' is set to 'release' and NOT 'debug'( the default)


Jay
fbtech



Joined: 25 Mar 2015
Posts: 7

View user's profile Send private message

PostPosted: Wed Jun 03, 2015 6:57 am     Reply with quote

Thanks for your reply.

1- I use only these fuses
2- I configured the 'build configuration' to 'release' but I have the same problem ==> nothing is running Sad
Ttelmah



Joined: 11 Mar 2010
Posts: 19436

View user's profile Send private message

PostPosted: Wed Jun 03, 2015 9:14 am     Reply with quote

So:

MCLR is pulled up?.

You have a crystal on RA6/RA7?.
With correct capacitors?.

GND on pin 8, & 19?.

Supply on Pin20?.

Decoupling capacitor close to the chip on the main supply, a separate one on the Vusb pin, _and a separate one on the Vddcore pin_ (very necessary)?.

You need NOXINST. You should have STVREN, not NOSTVREN.

What is your supply voltage?.

What is the crystal frequency?.

Does it start if you set FCMEN?. (would at least prove everything else is working other than the oscillator).

Compiler version?.
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