XRDC Configuration for S32K358 w/ HSE-B Enabled

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

XRDC Configuration for S32K358 w/ HSE-B Enabled

550 Views
bryan-jeong
Contributor I

Hello. Thanks for reading the question in advance.

Brief overview of the situation:

Currently developing on S32K358 using EB Tresos for MCAL Configurations. I installed the HSE-B firmware on-board but the Crypto functionalities such as the Random Number Generator wouldn't work (not a problem with HSE-B itself). After some debugging, I realized disabling XRDC using the T32 Lauterbach allowed the Random Number Generator to work, so I started to configure the XRDC.

2 main questions:

1. I don't understand the Xrdc_0_SIUL2_VIRTWRAPPER_PDACX_HSE_B_0 or all the other preset VIRTWRAPPERS in the RM module of EB Tresos (for XrdcPeripheralSlot). Are these predetermined sets?

2. Could you provide some guidance on how to set the XRDC so that the cores can communicate with the HSE-B core??

Thanks!

0 Kudos
Reply
3 Replies

528 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @bryan-jeong 

the key point is that HSE is 'hardwired' to certain domain. In case of S32K358 it is domain 3. You can find in HSE FW RM:

lukaszadrapa_0-1718260860061.png

So, you need to configure domain 3 accordingly. It's necessary to allow access to RAM area which is used for communication with HSE.

Here is an example from my old test project for S32K344 where HSE is in domain 2. I configured full access to whole RAM for HSE. Then HSE services worked as expected.

lukaszadrapa_1-1718261345617.png

lukaszadrapa_2-1718261366015.png

For quick test, I used 0x0 - 0xFFFFFFFF addresses. Of course, this should be updated in the real application.

Regards,

Lukas

0 Kudos
Reply

513 Views
bryan-jeong
Contributor I
Did you end up assigning any peripherals? It says on EB that at least one must be given (error when blank)
0 Kudos
Reply

462 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

I used configuration tool in S32DS and it didn't require peripherals for the domain. And HSE then worked without that.

0 Kudos
Reply