9 PIC18FXXJ, PIC24F, dsPIC33F Device Programming Considerations
The Programming Specifications for PIC18FXXJ MCUs, PIC24F MCUs, and dsPIC33F DSCs indicate that when programming these devices, bulk erase commands should be issued between successive programming operations, i.e., erase, then program, then erase, then program, etc. Therefore, Microchip advises against multiple-stage programming sessions which may damage the device. For example, you should NOT do the following with these parts:
· load and program a particular hex file
· load a second hex file
· disable erase-all-before-programming
· specify an address sub-range
· program the device