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 support@ccsinfo.com

dealing with large arrays - bank registers

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







dealing with large arrays - bank registers
PostPosted: Wed Oct 14, 2009 6:55 am     Reply with quote

hello,

i am using a PIC18F4680 (65k ROM 3k RAM) and need to work with large float arrays for my program.

Everything below 128 elements works fine whether i store the array in the ram or in the rom.

If there are more than 128 elements in the array the debugger jumps into the Standard Header file for the PIC18F4680 and stops there (no compile error - program uses 14% of ROM 5% of RAM).

I think it has something to do with exceeding the bank register. As far as i know array variables are stored in the first 128 bytes of bank one. Is there a way to change bank register or how do i deal with large arrays?

Thanks for your help!
Ttelmah
Guest







PostPosted: Wed Oct 14, 2009 9:33 am     Reply with quote

Sounds like a problem with the debugger....
CCS, happily handles arrays with more than 128 float elements on the 18 chips. You don't have to do anything.
Make sure you have the #nolist option 'remmed' out in the header file for the chip you are using (this makes CCS not put visible code in the listing for their internal 'library' routines). It sounds as if you are actually calling one of their routines, to handle the bank switching, and the code for this is absent from the stuff your debugger 'knows' about.

Best Wishes
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