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

Easy Question, invalid ORG Range

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








Easy Question, invalid ORG Range
PostPosted: Thu Sep 27, 2007 12:00 am     Reply with quote

I have CCS PCWH compiler 3.249. This is my code
#build(reset=0x0800, interrupt=0x808) // Necessary for Bootloader
#ORG 0x809,0x7FFF {} // Necessary for Bootloader

I have remapping memory space because I am using PICDEM FS 18F4550 development board. Reset vector is 800h, Interrupt vector is 808h, and the Program Memory goes from 800h to 7FFFh.


What would be an valid ORG range?
Guest








PostPosted: Thu Sep 27, 2007 12:24 am     Reply with quote

I forgot to mentioned those requirements I listed are bootloader requirements

Reset vector 800h
High Priority Interrup Vector 808h
Low Priority Interrup Vector 816h

User memory from 800h to 7FFFh
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Sep 27, 2007 1:20 am     Reply with quote

Your reset vector is at 0x800 but the #org starts at 0x809, fix this by changing the #org to start at 0x800.
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