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

EX_LOAD.C with 16F876A

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



Joined: 10 May 2005
Posts: 4

View user's profile Send private message

EX_LOAD.C with 16F876A
PostPosted: Mon Jun 27, 2005 11:56 am     Reply with quote

Hello,
I just tried to compile the EX_LOAD.C example file for the 16F876A, and I get the message "Out of ROM, A segment, or the program is too large". I guess that the driver LOADER.C is not suited for the 16FxxxA devices, but is there a way to adapt it ?

Thanks for your answers.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jun 27, 2005 12:23 pm     Reply with quote

The loader code is larger for the "A" chips.

If you look in Loader.c, they hardcode the loader size in the following
statement.
Quote:
#if defined(__PCM__)
#define LOADER_SIZE 0x15F
#elif defined(__PCH__)
#define LOADER_SIZE 0x3FF
#endif
#endif

Based on the error message, if you increase value for PCM to
0x17F, that should be enough. I tried this and it now compiles OK.

However, this may not be enough to make it work and CCS may not
have tested the loader with the "A" chips. You must debug it.
I don't want to debug Loader.c for you.
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