Hello,
I am working on in application programming using STM32F105. I read this application note about secure firmware upgrade www.st.com/.../DM00044227.pdf
So what i am thinking about is that i have to make encryption for the code that i wrote, and not the data the microcontroller may send to some peripheral. How can i make this? is there any configuration that i can make to tell the complier to make code encryption with some encryption key?
Regards, Hisham
No - the Keil compiler can't produce any encrypted binaries. And there isn't one single encryption standard in existence. And there isn't one single file format for storing encrypted files either.
But the secret here is of course to do what is said at the end of that linked document:
For more details about the complete solution, please contact your local ST sales representative.
This can be done, of course, by combining the following elements:
* A bootloader that can decode encrypted hex/bin files. * CRP protected chip. * PC tool to encrypted hex/bin files.
Our fellow poster from http://www.keil.com/forum/20905/ has probably posted all the necessary ST details on SourceForge along with the private key etc ;)
.. simply setting the flash read disble bits?
if the crook is one of those that have the ability to crack the memory protection for a "just protected" code, (s)he can also crack the "bootloader that can decode"
Erik