Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Problem with MPLAB 8 on my first project

Status
Not open for further replies.

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!
 

I fixed the problem :)
But don't really know what I did :/ :p
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:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top