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

Program memory size issue on 18F14K50?

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



Joined: 26 Jun 2013
Posts: 7

View user's profile Send private message

Program memory size issue on 18F14K50?
PostPosted: Wed Jun 26, 2013 12:10 pm     Reply with quote

Hi,

I have been running into an Out of ROM issue with the 18F14K50, and I finally figured out that the compiler seems to think the memory goes up to 0x3CBF, rather than 0x3FFF. I verified this by doing a getenv("PROGRAM_MEMORY"), which returns 0x3CC0. Any ideas why it won't recognize the last 832 bytes?

I seem to be able to put #rom blocks in that area, but the compiler won't put any code there.

I'm using version 4.119

Thanks,
Dan
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jun 26, 2013 1:20 pm     Reply with quote

You are undoubtedly compiling with Debug mode selected. In MPLAB
either Debug or Release mode is selected in a dropdown box at the top of
the MPLAB window.

What programmer are you using ? Different programmers will reserve
different amounts of Program Memory at the end of the PIC (when Debug
mode is selected).

To avoid having that area be reserved, change it to compile in Release mode.

Additional notes on the MPLAB Debug/Release mode dropdown box:
http://www.ccsinfo.com/forum/viewtopic.php?t=50053&start=4
laser_scientist



Joined: 26 Jun 2013
Posts: 7

View user's profile Send private message

PostPosted: Wed Jun 26, 2013 1:42 pm     Reply with quote

That was absolutely right, and it fixed the problem immediately! Thank you.

To answer your question, I am using the PICKit2, which appears to reserve about 5% of the (16K) memory on the 18F14K50 in Debug mode.

Best regards,
Dan
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