I want to design my own application code that have 3 below features.
1) Can not read from flash without my secure key.
2) Can not write into flash without my private key.
3) My code can also able to flash the data into flash memory once i enter exact key. And during flashing no one can retrieve my data.
SO i need a help to make flow chart and basic idea to make that possible.
I am using MKE18F512VLL16. I want to send and receive the data via LPUART0.