CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Problem with #ORG and "Invalid ORG range" error.

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
manex agirrezabalaga
Guest







Problem with #ORG and "Invalid ORG range" error.
PostPosted: Tue Dec 28, 2004 3:13 pm     Reply with quote

Hello, I work with PCH 3.203 and a 16F88 chip actually. I'm using the bootloader from www.sparkfun.com, and it asks me to put #org 0x0004 at every program in order to download the program to the chip.
--------------
#include <16f88.h>
#fuses HS,NOWDT
#use delay(clock=8000000)
#org 0x0004

ERROR : Invalid ORG range

--------------


I tried with other #ORG configurations, such as #org 0x0000,0x0004 {} and #org 0x0004,0x0FF7 but none of these get my compiler rid of the annoying error described above.

A friend of mine told me to set #build (reset=0x0004, interrupt=0x0008) and the error dissappeared, but the interrupt routines don't get working.

I was later told to set #build (reset=0x0008, interrupt=0x0004), and the INVALID ORG RANGE error appeared, with the cursor blinking at the end of the interrupt service routine. In absence of interrupts, it compiles safely.

I don't know what to do, I'd appreciate very much your valuable help.

thanks beforehand
Guest








PostPosted: Wed Dec 29, 2004 9:16 am     Reply with quote

There,

use this with Sparkfun Bootloader :

#build(reset=0x1, interrupt=0x5)
#ORG 0x0F00,0x0FFF {}


Regards
Michael.
Manex Agirrezabalaga
Guest







Re:
PostPosted: Thu Dec 30, 2004 6:20 am     Reply with quote

Thanks!! The solution works pretty well!

Best regards
manex
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group