I want to design my firmware that no one can download hex file in my MCU (MKE18F512VLL16) and no one can retrieve my installed code from MCU.
Is it possible using ROM Boot loader ?
Anyone have idea about that than let me know.
The short answer to your question is that you CAN have a bootloader that "secures" the chip so it can not be dumped - only bulk erased.
The longer reply is that you may have to put a lot of work into getting that into place.
The standard bootloaders available AND the process of updating your code via the bootloader may not make that easy to implement.
Retrieving data ...