Go to Post [I] [/I]I think this may be some kind of record. We got through 9 entire posts before someone mangled the spelling of mecanum. [I] [/I] - Ether [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 17-04-2008, 16:15
Farnak Farnak is offline
Registered User
no team
 
Join Date: Apr 2008
Location: Canada
Posts: 2
Farnak is an unknown quantity at this point
Re: Invalid Address

Hi, my code is just directly copied from the getting started doc that came with the MPLAB IDE (I'm a newbie I'm still trying to learn how to program with a microchip controller), that's why I don't understand why THIS CODE, that came with the tutorial can't load .

Here's the source code:
Code:
#include <p18cxxx.h> 

#pragma config OSC = HS
#pragma config WDT = OFF
#pragma config LVP = OFF
int counter;
void main (void)
{
	counter = 1;
	TRISB = 0;
	while (counter <= 15)
	{
		PORTB = counter;
		counter++;
	}
}
All the other code files that you guys posted seem to work for me, I can load them onto the IFI loader no problem. But my source code gets compiled into a HEX file that just fails. This I don't understand.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid Address team 803 Programming 20 21-02-2006 09:10
error - Invalid 18f8520 header file! vtrehan Programming 2 16-11-2004 08:31
Invalid Thread Specified Jay H 237 CD Forum Support 2 02-03-2004 21:01
Invalid Autodesk email address? NickZ 3D Animation and Competition 2 23-02-2004 01:35
Address archiver 2000 0 23-06-2002 23:22


All times are GMT -5. The time now is 12:53.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi