Skip to main content
Associate II
January 9, 2024
Question

how to protect code ?

  • January 9, 2024
  • 2 replies
  • 2230 views

hello everyone , 

how can i protect code in stm32f103 with the ability to upgrade code in future ? i am using stmcube programmer ide and stlink programmer

This topic has been closed for replies.

2 replies

ST Employee
January 9, 2024

Hello @ahmash ,

i recommend you use some static security features like RDP (read out protection ) you will find a detailed description on AN5156 section 6.2 and you can have a look on our mooc videos on this feature in this link .

Hope this will answer you inquiry.

BR

Tesla DeLorean
Guru
January 9, 2024

Enable RDP and have your own loader capable.of IAP (In App Programming) to upgrade your application, ideally using encryption if the update is to be distributed.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Bubbles
ST Employee
January 10, 2024

Hi @ahmash ,

user @Tesla DeLorean is right. More about the IAP can be found for example here:

X-CUBE-IAP-USART - STM32Cube in-application programming using the USART embedded software (AN4657) - STMicroelectronics

BR,

J

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.