View previous topic :: View next topic |
Author |
Message |
edbfmi1
Joined: 18 Jul 2006 Posts: 110
|
#fill_rom not working properly |
Posted: Tue Feb 02, 2010 10:34 am |
|
|
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
|
|
Posted: Tue Feb 02, 2010 2:34 pm |
|
|
The .HEX file still has the 0x00 bytes in it, for MPLAB vs. 8.36. |
|
 |
|