How to reboot the M4 core on the IMX8MM from Linux

cancel
Showing results for 
Search instead for 
Did you mean: 

How to reboot the M4 core on the IMX8MM from Linux

151 Views
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
2 Replies

35 Views
NXP TechSupport
NXP TechSupport

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

35 Views
Contributor II

Hi, Igor,

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

0 Kudos