Iuri
Member level 2
I'm newby at PIC programming, actually this is my first time with him, and I have a issue.
I'm using ICD2, MPLAB IDE with C18 Compiler and PIC18F2550 just to toggle one led on/off (classic hello world application).
Below is my current schematic, the circuitry is mounted in a breadboard and the power is supplied by the ICD2.
This is my current code:
This is what is happening...
When I set in MPLAB Programmer>Program everything seems good:
And then I press "Release from Reset" and nothing happens. :sad:
If I try to Program in Debug mode the response is even worst.
I spend +6 hours, read alot of information, triple checked the connections and still the same thing.
Please if you know how to fix it help me!
Thanks you all.
Iuri~
I'm using ICD2, MPLAB IDE with C18 Compiler and PIC18F2550 just to toggle one led on/off (classic hello world application).
Below is my current schematic, the circuitry is mounted in a breadboard and the power is supplied by the ICD2.
This is my current code:
#include <p18f2550.h>
#pragma config FOSC = INTOSC_XT
#pragma config WDT = OFF
void main()
{
int delay;
TRISC = 0x00;
while (1)
{
PORTC = 0xff;
for (delay = 0; delay < 32000; delay++);
PORTC = 0x00;
for (delay = 0; delay < 32000; delay++);
}
}
This is what is happening...
When I set in MPLAB Programmer>Program everything seems good:
Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x0 - 0x17F)
Verifying...
...Program Memory
...Verify Succeeded
Programming Configuration Bits
.. Config Memory
Verifying configuration memory...
...Verify Succeeded
...Programming succeeded
05-Jan-2012, 22:30:21
MPLAB ICD 2 ready for next operation
And then I press "Release from Reset" and nothing happens. :sad:
If I try to Program in Debug mode the response is even worst.
Resetting Target
MPLAB ICD 2 ready for next operation
Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x0 - 0x17F)
...Loading DebugExecutive
...Programming DebugExecutive
...Programming Debug Vector
...Programming RSBUG
Verifying...
...Program Memory
...Debug Executive
...Debug Vector
...Verify Succeeded
Programming Configuration Bits
.. Config Memory
Verifying configuration memory...
...Verify Succeeded
Connecting to debug executive
ICD0083: Debug: Unable to enter debug mode. Please double click this message for more information.
MPLAB ICD 2 ready for next operation
I spend +6 hours, read alot of information, triple checked the connections and still the same thing.
Please if you know how to fix it help me!
Thanks you all.
Iuri~