S32K358 Sema42

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

S32K358 Sema42

5,674 Views
Chase1234
Contributor I

Hello,

I am attempting to disconnect the XRDC from the Sema42 logic. It says in the code that the DomainID will return to the the CoreId is the RM is not present. Is there any way to safely execute the semaphore logic from the rm module without activating the XRDC. Tresos gives errors when the Semaphore is activated without the XRDC.

 

0 Kudos
Reply
5 Replies

5,604 Views
Nhi_Nguyen
NXP Employee
NXP Employee

Hi @Chase1234 ,

It is impossible to enable Sema4 without XDRC enabled. As description:

Nhi_Nguyen_0-1696304665001.png

Domain ID managed by XDRC.

Best regards,

Nhi

 

0 Kudos
Reply

5,586 Views
Chase1234
Contributor I

@Nhi_Nguyen 

I guess my follow up question would be based on the Sema42_Ip.c file line 184. In the Sema42_Ip_LockGate_Privileged function, It states the following:

Chase1234_0-1696420431835.png

I took that to mean that the DomainID would revert to the CPUID if the XRDC was not enabled to manage the DomainID. Is that just a mistake in the description or am I just completely mistaken about the implications based off of this statement?

 

Thanks,

Joseph

 

0 Kudos
Reply

5,566 Views
Nhi_Nguyen
NXP Employee
NXP Employee

Hi @Chase1234 ,

I think about Semaphore as description below:

Nhi_Nguyen_0-1696575076030.png

Semaphore used to prevent multiple Domains access to memory/Peripheral in same time. XDRC used to manage these Domains. But, if just only one Domain used, Semaphore is unnecessary to use. From this, driver is handling to configure XDRC is mandatory when enable Sema42.

In driver, XDRC is always used when want to lock gate without any guarding.

Nhi_Nguyen_1-1696575511113.png

Best regards,

Nhi

 

0 Kudos
Reply

4,579 Views
sobo
Contributor III

Hello,

I want to used SEMA42 for multicore so I need to configure XDRC.
I used EB TRESOS but I don't know how to configure XDRC just to used SEMA42.
I use RTD 4.0.0 P20 D2403.
In EB Tresos we must declare a XRDC Peripherical Config , that I don"t need.

Do you have some info or example ?

Sophie

Tags (3)
0 Kudos
Reply

4,565 Views
Nhi_Nguyen
NXP Employee
NXP Employee

Hi @sobo ,

It is impossible to use Sema42 without Peripheral and Memory configuration for current driver.

Best regards,

Nhi