View previous topic :: View next topic |
Author |
Message |
moutinho
Joined: 12 May 2005 Posts: 31 Location: BRAZIL
|
Problems using #ORG directive |
Posted: Tue May 17, 2005 8:00 am |
|
|
Hi,
I am trying to place some functions at some desired flash memory locations:
// placing func1 between 0x1000 and 0x1F000
#org 0x10000, 0x1f000 auto =0 default
func1()
{}
#org default
(line***)#org 0x1f001, 0x1ffff auto = 0 default
func2()
{}
# default default
But I am receiving the following error messages from the compiler:
line*** - More info: Segment at 00000-0FFFE (0000 used)
line*** - More info: Segment at 10000-1F000 (0000 used) Priv
line*** - More info: Segment at 1F002-1FFFF (0000 used)
line*** - More info: Attempted to create: 0F800-0FFFF for #org
Thanks in advance,
Andre Moutinho |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue May 17, 2005 1:24 pm |
|
|
What PIC are you using ? Does your PIC actually have ROM in
the address ranges that you are specifying ?
What is your compiler version ?
Do you really need to reserve such large areas ? ie., almost 64 KB
for a bootloader, which should really take less than 1 KB ?
Did you really compile this code ? This line here will certainly not
compile:
# default default |
|
|
moutinho
Joined: 12 May 2005 Posts: 31 Location: BRAZIL
|
|
Posted: Wed May 18, 2005 7:05 am |
|
|
> PCM programmer wrote: | What PIC are you using ? Does your PIC >actually have ROM in
>the address ranges that you are specifying ?
Yes
>What is your compiler version ?
CCS 3.206
>Do you really need to reserve such large areas ? ie., almost 64 KB
>for a bootloader, which should really take less than 1 KB ?
Yes
>Did you really compile this code ? This line here will certainly not
>compile:
># default default |
Yes, but I cant past the code here. So I made a mistake copying the code. Sorry. |
|
|
|