
This marker does not appear in the new hex file. The 040030 is the marker for configuration memory. Here is an output from the end an older hex file: #pragma config EBTR0 = OFF, EBTR1 = OFF, EBTR2 = OFF, EBTR3 = OFF, EBTR4 = OFF, EBTR5 = OFF, EBTR6 = OFF, EBTR7 = OFF //config7l #pragma config WRTB = ON, WRTC = OFF, WRTD = OFF // config6h #pragma config WRT0 = OFF, WRT1 = OFF, WRT2 = OFF, WRT3 = OFF, WRT4 = OFF, WRT5 = OFF, WRT6 = OFF, WRT7 = OFF // write protection #pragma config CPD = OFF, CPB = OFF // config5h, boot and eeprom protection #pragma config CP0 = OFF, CP1 = OFF, CP2 = OFF, CP3 = OFF, CP4 = OFF, CP5 = OFF, CP6 = OFF, CP7 = OFF // config5l, code protection #pragma config STVREN = ON, LVP = OFF, DEBUG = OFF, BBSIZ = BB2K, XINST = OFF // config4l #pragma config CCP2MX = PORTBE, ECCPMX = PORTH // config3h, RE7 #pragma config WAIT = OFF, MODE = MC // config3l, cpu mode #pragma config WDT = OFF, WDTPS = 1 // config2h, watchdog #pragma config PWRT = ON, BOREN = OFF, BORV = 43 // config2l, brownout #pragma config IESO = OFF, FCMEN = OFF, OSC = HSPLL // config1h, oscillator I tried changing this and am now initializing EEPROM from code (it is showing up in the hex file). There have been a number of posts related to this issue but none seem to match a problem that has recently appeared.įor reasons of my own, I generally do not initialize EEPROM from code.ĭuring program initialization, I check the EEPROM and if it is blank I load it with defaults from program memory.
