How to reboot the M4 core on the IMX8MM from Linux

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

How to reboot the M4 core on the IMX8MM from Linux

2,186 Views
damien_dunn
Contributor I

Hello,

We are using a custom board using the IMX8MM. We are currently using rpmsg to communicate with the A53 cores running a custom yocto build. Our RPMSG communication is based on the example that can be found in the MCUXpresso SDK. The Linux side uses the tty rpmsg driver to receive messages from the M4 core. After a few days ( in some configurations after a few hours sometimes), the communication between the M4 core and Linux ceases to function. Currently we recover by rebooting the whole system, but given the time to boot the linux kernel, this adds downtime that we want to avoid. We want to get to the root cause of the issue but if we can only reboot the M4 core from linux, we would want to attempt to do so. Calling NVIC_SystemReset function yields no results, the M4 core seems to hang when that function is called. 

Is it possible to reboot the M4 core from Linux?  Is there a desired way of resetting the rpmsg communication ? 

I've seen that there are drivers for the IMX7 but that doesn't seem to be compatible with IMX8 boards. 

Labels (1)
0 Kudos
Reply
4 Replies

2,070 Views
igorpadykov
NXP Employee
NXP Employee

Hi Damien

one can look at examples of m4ctrl - M4 Control Tool for i.MX platforms 

(additional patch was sent via mail).

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

0 Kudos
Reply

866 Views
goodspeed
Contributor II

NXP expert,

 

But, what are belows?

 

Loading Code on Cortex-M from U-Boot/Linux for the i.MX Asymmetric Multi-Processing Application Processors
https://www.nxp.com/docs/en/application-note/AN5317.pdf


https://github.com/nxp-imx/imx-m4fwloader

 

 

0 Kudos
Reply

882 Views
480VAC
Contributor I

We are also having the same challenge, looking for ways to reboot the M core from the A core.  Please send the patch to me as well.

0 Kudos
Reply

2,070 Views
bruno_chen
Contributor II

Hi, Igor,

I have the same question, Could you share the patch for me?

0 Kudos
Reply