How to trigger software interrupt from iMX8 A35 to M4

cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger software interrupt from iMX8 A35 to M4

144 Views
Contributor II

Hello,

I need to trigger a user define software interrupt from Cortex A35 to Cortex M4 in IMX8 board. Please advice.

Linux 4.14.98 is running in A35.

Best regards,

Praveen

0 Kudos
9 Replies

9 Views
NXP TechSupport
NXP TechSupport

Hi Praveen

for available options one can look at Chapter 10
RPC Protocol, "Interrupts" System Controller Firmware API Reference Guide

included in SCFW Porting Kit

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

9 Views
Contributor II

Thanks Igor for quick response.

Do you mean that I can use sc_irq_enable() to generate the interrupt at A35 and sc_irq_status() to read the IRQ value at M4?

Since SCU APIs are kernel library in Linux; do you have any suggestion on how to use it from user space?

Thanks and regards,

Praveen

0 Kudos

9 Views
NXP TechSupport
NXP TechSupport

I am not sure that it is possible to implement that using SCU APIs,

you can find some examples in SDK_MEK-MIMX8QM

Welcome | MCUXpresso SDK Builder 

In any way there are no other options for interaction between cores except SCU APIs.

Best regards
igor

0 Kudos

9 Views
Contributor II

Hi Igor,

As per my understanding, to access kernel library we shall create a driver / procfs / sysfs.

What we wanted to be sure that does NXP provides SCU driver for Linux or any procfs file, which can be used to access SCU APIs?

Is there any example in Linux OS, where application is using SCU APIs?

Best regards,

Praveen

0 Kudos

9 Views
NXP TechSupport
NXP TechSupport

Hi Praveen

please read documentation included in SCFW Porting Kit ,

in particular   sc_fw_api.pdf

pastedImage_2.jpg

>Is there any example in Linux OS, where application is using SCU APIs?

ipc.c\main\sc\imx\soc\drivers - linux-imx - i.MX Linux kernel 

check also sect.2.2 System Controller Linux Manual in Linux 4.19.35_1.1.0 Documentation

Best regards
igor

0 Kudos

9 Views
Contributor II

Hi Igor,

If LSIO #13 MU is used to interrupt M4 from A35 and visa-versa, then where shall in the BSP and M4 code, the config changes be made? And what those changes will be? Will INTMUXC and INT-Steer (and its mapping to M4-NVIC) also gets impacted?

Best regards,

Praveen

0 Kudos

9 Views
Contributor II

Hello Igor,

Waiting for your response for the above queries.

Further to that I have couple of more query:

  1. Per the Table 2.4 of IMX8 Reference Manual, the size of MU11_A is 64KB; Per section 12.9.4 there are 4 Tx, 4 Rx, 1 Status and 1 Control Registers of 32bits. Register size is just 40 bytes, the rest of the memory is used for what?

MU11_A_memMap.png

2. Why NVIC is only in Cortex M4 and SCU?

Best regards,

Praveen

0 Kudos

9 Views
NXP TechSupport
NXP TechSupport

Hi Praveen

regarding your question for "trigger a user define software interrupt from
Cortex A35 to Cortex M4 in IMX8" - seems SCFW does not provide such option.

Best regards
igor

0 Kudos

9 Views
Contributor II

Hello Igor,

I agree with you; using SCU APIs may not help in this case.

We are planning to use MU11_A and MU11_B for interrupt generation from A35 to M4. In this approach, we seek your support on what all we shall take care.

Best regards,

Praveen

0 Kudos