|
|
View previous topic :: View next topic |
Author |
Message |
fbtech
Joined: 25 Mar 2015 Posts: 7
|
18F25J50 configuration bits |
Posted: Wed Jun 03, 2015 6:30 am |
|
|
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: 9243 Location: Greensville,Ontario
|
|
Posted: Wed Jun 03, 2015 6:41 am |
|
|
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
|
|
Posted: Wed Jun 03, 2015 6:57 am |
|
|
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 |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19539
|
|
Posted: Wed Jun 03, 2015 9:14 am |
|
|
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?. |
|
|
|
|
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
|