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

Very large (>64k) constant data table in program memory

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



Joined: 19 Aug 2005
Posts: 2

View user's profile Send private message

Very large (>64k) constant data table in program memory
PostPosted: Fri Aug 19, 2005 10:54 am     Reply with quote

I am trying to put a 54k pixel x 16 bit image into the PIC18F6722, (which has 128kb program memory).
I have attempted to do this using the #ORG and #ROM statement as follows:
Code:

#ORG 0x0400, 0xFFFE {}
#ORG 0x10000, 01BFFE {}
#ROM  0x400={0x0000, 0xf800, 0x0000, 0xf800, 0x0000, 0xf800, 0x0000, 0xf800, 0x0000, 0xf800, 0x0000, 0xf800, 0x0000, 0xf800, 0x0000, 0xf800}
#ROM  0x420={0x0000, 0xf800, 0x0000, 0xf800, 0x0000, 0xf800, 0x0000, 0xf800, 0x0000, 0xf800, 0x0000, 0xf800, 0x0000, 0xf800, 0x0000, 0xf800}
etc.


but a compiler limit is reached. I'm using version 3.230.

I've also tried doing it in bytes using
Code:
#ROM int8 0x400={00, 00,
etc..
which behaved differently, compiled, but missed out part of the image from the hex file.

I'm using #ROM rather than a c array, because the implementation of const c arrays is odd, and unsuitable for the purpose.

The code (thousands of lines), needless to say, is auto-generated. I could generate it as a hex file and add it to the hex file generated by the compiler, but I'd like the compiler to do some of the work!

Any ideas, anyone?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Aug 19, 2005 11:46 am     Reply with quote

Quote:
but a compiler limit is reached. I'm using version 3.230.


What is the exact error message ?
Bill



Joined: 19 Aug 2005
Posts: 2

View user's profile Send private message

PostPosted: Tue Aug 23, 2005 2:39 am     Reply with quote

PCM programmer wrote:
Quote:
but a compiler limit is reached. I'm using version 3.230.


What is the exact error message ?


Thanks for your reply.
The error message is:
Error[113] C:\My Documents\code\8199_project\composite9.h 1093 : Internal compiler limit reached
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