breadboardguy
New Member
c18 pickit2 18f2525 problem, help needed!
I am trying to program a pic 18f2525 with c18 and a pickit2
But when i put the pic in the breadboard, no led lights up as in the "hello world" program gaved by microchip:
Is it because the 18f2525 only is in beta support with pickit2 ?
Thank you for your help in advance .
I am trying to program a pic 18f2525 with c18 and a pickit2
But when i put the pic in the breadboard, no led lights up as in the "hello world" program gaved by microchip:
Is it because the 18f2525 only is in beta support with pickit2 ?
Thank you for your help in advance .
#include <p18f2525.h>
#include <delays.h>
#pragma config WDT = OFF //Disable watchdog timer
#define LEDPin LATBbits.LATB7 //Define LEDPin as PORT B Pin 7
#define LEDTris TRISBbits.TRISB7 //Define LEDTris as TRISB Pin 7
void main()
{
LEDTris = 0;//Set LED Pin data direction to OUTPUT
LEDPin = 1;//Set LED Pin
while(1)
{
LEDPin = ~LEDPin;//Toggle LED Pin
Delay10KTCYx(25);//Delay 250K cycles (1 second at 1MHz since each instruction takes 4 cycles)
}
}
Programming Target (2010-06-18 14:48:33)
Erasing Target
Programming Program Memory (0x0 - 0x13F)
Verifying Program Memory (0x0 - 0x13F)
Programming Configuration Memory
Verifying Configuration Memory
PICkit 2 Ready
----------------------------------------------------------------------
Release build of project `C:\Documents and Settings\Yannick\Mes documents\Workspace\fafa.mcp' started.
Fri Jun 18 14:48:19 2010
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Documents and Settings\Yannick\Mes documents\Workspace\main.o".
Clean: Deleted file "C:\Documents and Settings\Yannick\Mes documents\Workspace\fafa.cof".
Clean: Deleted file "C:\Documents and Settings\Yannick\Mes documents\Workspace\fafa.hex".
Clean: Deleted file "C:\Documents and Settings\Yannick\Mes documents\Workspace\fafa.map".
Clean: Done.
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F2525 /i"C:\MCC18\h" "C:\MCC18\example\getting_started\program3\main.c" -fo="main.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\MCC18\bin\mplink.exe" /p18F2525 /l"C:\MCC18\lib" /k"C:\MCC18\bin\LKR" "main.o" /u_CRUNTIME /z__MPLAB_BUILD=1 /m"fafa.map" /w /o"fafa.cof"
MPLINK 4.35, Linker
Copyright (c) 1998-2010 Microchip Technology Inc.
Errors : 0
MP2HEX 4.35, COFF to HEX File Converter
Copyright (c) 1998-2010 Microchip Technology Inc.
Errors : 0
Loaded C:\Documents and Settings\Yannick\Mes documents\Workspace\fafa.cof.
----------------------------------------------------------------------
Release build of project `C:\Documents and Settings\Yannick\Mes documents\Workspace\fafa.mcp' succeeded.
Fri Jun 18 14:48:20 2010
----------------------------------------------------------------------
BUILD SUCCEEDED
Last edited: