How to reboot the M4 core on the IMX8MM from Linux

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to reboot the M4 core on the IMX8MM from Linux

1,994件の閲覧回数
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. 

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

1,878件の閲覧回数
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 件の賞賛
返信

674件の閲覧回数
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 件の賞賛
返信

690件の閲覧回数
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 件の賞賛
返信

1,878件の閲覧回数
bruno_chen
Contributor II

Hi, Igor,

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

0 件の賞賛
返信