Skip to main content
Associate III
June 5, 2025
Question

Secure and Non secure folders

  • June 5, 2025
  • 1 reply
  • 449 views

Hi,

 

I would like to know where to write the code either in secure or non-secure folder. What is the exact purpose of this folders. I want to encrypt a CAN message and send it. I have done without enabling trust zones previously. But now I enabled the trust zone and would like to write CAN drivers, encryption key change etc. I am using NUCLEO-H533RE boards for development. Please let me know. There are examples problems but did not actually had these two folders. Thanks in advance.

1 reply

Pavel A.
Super User
June 5, 2025

 I want to encrypt a CAN message and send it

This is not related to "secure" vs "non-secure" separation or TrustZone. Please see the documentation on the H533RE

KeerthiAuthor
Associate III
June 5, 2025

Hi,

 

Thanks for the reply. When enabling the FDCAN, it has two options where to enable either in the secure or non-secure zone as shown in the below image. But I am not sure what exactly the purpose of this folders. 

Keerthi_0-1749150114742.png

 

Pavel A.
Super User
June 5, 2025

If so, then you probably do not need to enable the Trustzone at this time at all? Just revert to previous state and enjoy simplicity. Do you need help with encryption of the data sent over CAN?