Hi, I have LPC1788 embedded board with external NAND flash.Is it poosible to put some code/function in the NAND flash that we are able to run ?
Best Regards, Mostafa
It is not possible to run code directly from the NAND.
It is possible to copy code from NAND to RAM and run from there.
Is it possible to give me a useful link that i can use it? In this way, I can encrypt the code and put it on the flash and then decrypt and put it in the SRAM ? Is it possible?
Is it possible to give me a useful link that i can use it?
Try http://www.google.com
Are you sure that the code you write will be so advanced, important and valuable that it really is meaningful to encrypt it?
People who do write valuable code tends to be able to find the solutions to their own problems - then there is a group of people who uses someone elses code and wants to encrypt so the code duplication will not be noticed.
Yes, the code is calculation of important parameters those no oneself is not allowed to use. In this way, i can protect the code.
Important to you? Or important to the world?
I think nothing important to world! But the data is belonging to the company that i am working for them that i am responsible that no one can copy them.
"But the data is belonging to the company that i am working for them that i am responsible that no one can copy them."
So were the developers who implemented the code for Microsoft X-Box and a number of other game consoles too.
It's hard to protect information from someone who wants to access it. Especially when you add external memory. Did you plan to use AES-128? And even then, people eat the encryption by just analyzing the power consumption of your processor while it decrypts the data...
It'll be extra interesting when the customers expects your device to support field-updating with new firmware - then you need a way to distribute even the part of the code that is inside the processor.
So in the end, you can't invest too much on the assumption that you can protect the contents of the flash memory if the information really matter to someone else. And if it doesn't matter to someone else, then it's a waste of time to try to protect the information in the first place - the extra complications of the encryption is likely to cost more for the company than the perceived gain.
Surely, the obvious place to start for anything specific to the LPC1788 would be:
www.nxp.com/.../LPC1788FET208.html
Look on the 'Design Support' and 'Downloads' tabs
And the standard place for NXP support - as linked from that page - is:
http://www.LPCware.com
Secure boot hardware is worth mentioning here.
View all questions in Keil forum