To prevent abnormal operation,

We need to fill the unused area in the flash memory of MCU.

 

If you need it,

you can go to project properties window

 

Select XC8 Global Options --> XC8 Linker --> Fill Flash Memory

 

Select the menu as above window

 

In this case, I select the Constant value as 0x001

It means that RESET.

 

I intend that if the PC(Program Counter) indicates unused program memory area,

MCU should be reset.

 

 

After compiling it, you can see the flash memory with the unused area which is filled with RESET command.

 

 

 

Posted by KennyShin
,