|
|
View previous topic :: View next topic |
Author |
Message |
Eric Elias Guest
|
#ORG statement for 18F8720 |
Posted: Thu Aug 14, 2003 1:44 pm |
|
|
I am trying to get the example bootloader program to work on the 18F8720, and can't get the #ORG statement to compile for an address larger than 0FFFF (the middle of program memory for that chip), which is a problem because I'd like to put it at the end of the internal flash. I'm using version 3.139. Is a version available that corrects this, or is there a workaround?
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516970 |
|
|
Michael Thompson Guest
|
Re: #ORG statement for 18F8720 |
Posted: Thu Aug 14, 2003 2:08 pm |
|
|
:=I am trying to get the example bootloader program to work on the 18F8720, and can't get the #ORG statement to compile for an address larger than 0FFFF (the middle of program memory for that chip), which is a problem because I'd like to put it at the end of the internal flash. I'm using version 3.139. Is a version available that corrects this, or is there a workaround?
Eric,
I successfully compiled the following code using PCH V3.173:
// this code reserves the reset and interrupt vectors and //program memory
#build(reset=0x200)
#build(interrupt=0x208)
#org 0x1FE00,0x1FFFF {}
//#org 0x00000,0x001FF {}
void bootloader()
{
#asm
nop
#endasm
}
However, I did not try to run this code. The commment #org is what I am currently using.
Regards,
Mike
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516971 |
|
|
|
|
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
|