How to integrate HSE firmware with SPI functionality using RTD on S32K310 (S32DS)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to integrate HSE firmware with SPI functionality using RTD on S32K310 (S32DS)

1,050 Views
hyebin
Contributor II

Hello everyone,

I'm working with the S32K310 board using S32 Design Studio, and I was able to successfully build and load the HSE demo app provided on NXP's website.

Now, I would like to create a project that combines SPI communication using RTD (Real-Time Drivers) with HSE crypto functionality.
In other words, I'm trying to build a custom project that includes both SPI and HSE features.

I tried the following two approaches:

  1. Starting with the HSE demo app (which builds and runs fine), and attempting to integrate RTD-based SPI functionality into it.

  2. Starting from an RTD-based SPI example project, and trying to add the HSE components.

However, I wasn’t sure how to properly integrate the HSE firmware into the RTD-based project, and I ran into configuration issues.

So now, instead of merging existing projects, I would like to create a new project from scratch that supports both RTD-based SPI communication and HSE crypto functionality.

I tried setting this up myself, but I’m not sure how to configure the project correctly to support both:

  • HSE firmware features (e.g., key management, AES encryption)

  • RTD SPI drivers (using EB tresos or the S32 Configuration Tool)

Could you please point me to any official documentation, integration guides, or example projects that explain how to build such a combined project from the beginning?

Any help would be greatly appreciated.
Thank you in advance!

0 Kudos
Reply
3 Replies

1,017 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @hyebin 

The HSE demo application is intended for testing HSE functionality and is not recommended as a base for developing a full application project. The recommended approach is to create a project from scratch that supports both SPI communication and HSE cryptographic functionality.

Since you are already interested in using RTD for SPI communication, I also recommend using the available RTD drivers: "Hse_Ip" for low-level drivers and "Crypto" for high-level drivers. These drivers support cryptographic primitives, key storage, key configuration, and key management by accessing the HSE core functionalities and communicating via the Messaging Unit (MU) module.

For HSE integration, I suggest reviewing the following documentation included with the RTDs:
S32K3_S32M27x CRYPTO_43_HSE Driver and S32K3_S32M27x CRYPTO_43_ACE Driver Integration Manual and the User Manual. These documents provide detailed information about the driver, including its limitations, hardware and software requirements, usage instructions, and configuration guidelines. They are valuable resources for gaining a deeper understanding of the driver's functionality.
You can find these documents at:
C:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32K3\SEC_CRYPT\Crypto_43_ACE_TS_T40D34M50I0R0\doc
C:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32K3\SEC_CRYPTO\Crypto_43_HSE_TS_T40D34M50I0R0\doc

Additionally, the RTDs include example applications demonstrating the use of both low-level and high-level drivers. These examples may not match your exact device, but they are still a good reference since functionality is mostly the same across the S32K3 devices.

 

BR, VaneB

0 Kudos
Reply

980 Views
hyebin
Contributor II

Hello,

I couldn't find the following documents in my local installation directory. Could you please let me know where I can download them?

  • C:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32K3\SEC_CRYPT\Crypto_43_ACE_TS_T40D34M50I0R0\doc

  • C:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32K3\SEC_CRYPTO\Crypto_43_HSE_TS_T40D34M50I0R0\doc

0 Kudos
Reply

941 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @hyebin 

I am sorry for the confusion.

The path may vary depending on the software version you have installed. The paths I previously shared correspond to the installation of S32K3_S32M27x Real-Time Drivers ASR R21-11 Version 5.0.0 P08.

Another example of where you can find it is:
C:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32K3\RTD\Crypto_43_HSE_TS_T40D34M40I0R0\doc

0 Kudos
Reply