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

#fill_rom not working properly

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



Joined: 18 Jul 2006
Posts: 103

View user's profile Send private message

#fill_rom not working properly
PostPosted: Tue Feb 02, 2010 10:34 am     Reply with quote

Hello I am running PCM4.103 (I think) on my desk top and on my notebook computer.

My desktop is running MPLAB version 5.70.40 and my notebook is running MPLAB versiion 8.36.

I am compiling code for a PIC16f73 processor and I use the #fill_rom to set all unused rom to zero with the following code:
Code:

#include <16f73.h>
#use delay(clock=4000000)
#FILL_ROM 0x00
#FUSES HS,NOWDT,BROWNOUT,PUT


This is the first lines of code in my file.

When I look at the program memory for the code compiled using MPLAB version 8.36 it fills the unused ram with 3fff instead of 0000.

When I compile it on the MPLAB version 5.70.40 it fills the ram with the expected 0000.

Any ideas what I am missing here?

Thanks.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Feb 02, 2010 2:34 pm     Reply with quote

The .HEX file still has the 0x00 bytes in it, for MPLAB vs. 8.36.
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