How to fill the unused area in the flash memory of MCU(microcontroller)
개발환경 - MPLAB X 2019. 4. 15. 13:05
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.