Jan 14, 2014 #1 N Nojman Newbie level 6 Joined Jan 11, 2014 Messages 11 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 108 Hi! I'm having some problems with my MPLAB 8.60. I'm trying to program a PIC16F628 with a PICKIT 3 with the programlanguage B Knudsen Data CC5X. I'm just trying a simple code to put a LED light on, the code is: Code: /* redlight.c Turn red lightdiode at pin RB0 ON! */ #include "16F628.h" #pragma config |= 0x3fb0 #define ON 1 #define OFF 0 #pragma bit lightdiode @ PORTB.0 void main( void) { lightdiode = ON; TRISB = 0b11111110; /* RB0 out, RB1 in */ And when I try to build it I get this error message. Clean: Deleting intermediary and output files. Clean: Done. Executing: "C:\Program Files (x86)\Microchip\MPASM Suite\mplink.exe" /o "lysdiod3.HEX" MPLINK 4.37, Linker Copyright (c) 1998-2010 Microchip Technology Inc. Error - linker command file required. Errors : 1 Link step failed. BUILD FAILED: Tue Jan 14 12:22:38 2014 Tryed to google it but with no luck.. So can someone help me with this problem? Thanks!
Hi! I'm having some problems with my MPLAB 8.60. I'm trying to program a PIC16F628 with a PICKIT 3 with the programlanguage B Knudsen Data CC5X. I'm just trying a simple code to put a LED light on, the code is: Code: /* redlight.c Turn red lightdiode at pin RB0 ON! */ #include "16F628.h" #pragma config |= 0x3fb0 #define ON 1 #define OFF 0 #pragma bit lightdiode @ PORTB.0 void main( void) { lightdiode = ON; TRISB = 0b11111110; /* RB0 out, RB1 in */ And when I try to build it I get this error message. Clean: Deleting intermediary and output files. Clean: Done. Executing: "C:\Program Files (x86)\Microchip\MPASM Suite\mplink.exe" /o "lysdiod3.HEX" MPLINK 4.37, Linker Copyright (c) 1998-2010 Microchip Technology Inc. Error - linker command file required. Errors : 1 Link step failed. BUILD FAILED: Tue Jan 14 12:22:38 2014 Tryed to google it but with no luck.. So can someone help me with this problem? Thanks!
Jan 14, 2014 #2 N Nojman Newbie level 6 Joined Jan 11, 2014 Messages 11 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 108 I fixed the problem But don't really know what I did :/ Upgradet to MPLAB IDE 8.92 Took away #include "16F628.h" And did something in the "programmer" toolbar. On settings and when I choose 6PICkit3 Last edited: Jan 14, 2014
I fixed the problem But don't really know what I did :/ Upgradet to MPLAB IDE 8.92 Took away #include "16F628.h" And did something in the "programmer" toolbar. On settings and when I choose 6PICkit3