|
|
View previous topic :: View next topic |
Author |
Message |
manex agirrezabalaga Guest
|
Problem with #ORG and "Invalid ORG range" error. |
Posted: Tue Dec 28, 2004 3:13 pm |
|
|
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
|
|
Posted: Wed Dec 29, 2004 9:16 am |
|
|
There,
use this with Sparkfun Bootloader :
#build(reset=0x1, interrupt=0x5)
#ORG 0x0F00,0x0FFF {}
Regards
Michael. |
|
|
Manex Agirrezabalaga Guest
|
Re: |
Posted: Thu Dec 30, 2004 6:20 am |
|
|
Thanks!! The solution works pretty well!
Best regards
manex |
|
|
|
|
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
|