Cortex-M7 reset during i.M 8M Plus boot using 6.12 kernel

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Cortex-M7 reset during i.M 8M Plus boot using 6.12 kernel

840 次查看
jefstath
Contributor I

I am using MCUXpresso SDK 24.12 to run the RPMsg multicore examples on the Cortex-M7 on the i.MX 8M Plus EVK board. These work correctly when run against the default i.MX Linux 5.4 kernel shipped with the EVK board in flash.

I have downloaded the latest i.MX Linux 6.12 kernel prebuilt image from NXP and written the wic image to an SD card.

The A53 boots from the SD card but if I try to run the RPMsg examples I find that the Cortex M7 is reset during the Linux boot sequence. 

I am following the procedure in the i.MX Linux User Guide for v6.12 using the prepare_mcore and bootaux commands to start the Cortex-M7 core before booting Linux on the A53. 

Are these RPMsg examples known to work with the v6.12 kernel on the i.MX 8M Plus EVK?

What might be causing the Cortex-M7 to be reset and is there a fix or workaround?

0 项奖励
回复
6 回复数

827 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi @jefstath 

 

I would suggest you use SDK 2.16 to test the RPmsg feature.

 

Regards

Daniel

0 项奖励
回复

784 次查看
JohnE
Contributor II

Hi Daniel.

I installed the 2.16 SDK but when I try to build the RPMsg example for the i.MX 8M Plus board I get the following error:

CMake Error at C:/Projects/P001312/mcux_sdk_mcux_2_16_100/middleware/multicore/set_middleware_multicore.cmake:1075 (message):
middleware_multicore_rpmsg_lite dependency does not meet, please check
C:/Projects/P001312/mcux_sdk_mcux_2_16_100/middleware/multicore/set_middleware_multicore.cmake.
Call Stack (most recent call first):
C:/Projects/P001312/mcux_sdk_mcux_2_16_100/core/devices/MIMX8ML8/all_lib_device.cmake:371 (include)
CMakeLists.txt:77 (include)

Looking at error source it seems the i.MX 8m Plus EVK is not one of the supported boards for this example project.

John

0 项奖励
回复

779 次查看
danielchen
NXP TechSupport
NXP TechSupport

HI @JohnE :

 

To support i.MX 8M Plus, the patch for SEGGER J-LINK must be installed.

Please refer to AN14120 for more details.

AN14120: Debugging Cortex-M with VS Code on i.MX 8M, i.MX 8ULP, and i.MX 9 | NXP Semiconductors

danielchen_0-1749205759565.png

 

Regards

Daniel

0 项奖励
回复

769 次查看
JohnE
Contributor II

I have the Segger support already installed.

The problem is the check at line 1060 of mcux_sdk_mcux_2_16_100/middleware/multicore/set_middleware_multicore.cmake

if(((CONFIG_DEVICE_ID STREQUAL MIMXRT1173xxxxx OR CONFIG_DEVICE_ID STREQUAL MIMXRT1175xxxxx OR CONFIG_DEVICE_ID STREQUAL MIMXRT1176xxxxx OR CONFIG_DEVICE_ID STREQUAL MIMXRT1187xxxxx OR CONFIG_DEVICE_ID STREQUAL MIMXRT1189xxxxx OR CONFIG_DEVICE_ID STREQUAL KW45B41Z52xxxA OR CONFIG_DEVICE_ID STREQUAL KW45B41Z53xxxA OR CONFIG_DEVICE_ID STREQUAL KW45B41Z82xxxA OR CONFIG_DEVICE_ID STREQUAL KW45B41Z83xxxA OR CONFIG_DEVICE_ID STREQUAL MCXN946 OR CONFIG_DEVICE_ID STREQUAL MCXN947 OR CONFIG_DEVICE_ID STREQUAL MCXN546 OR CONFIG_DEVICE_ID STREQUAL MCXN547 OR CONFIG_DEVICE_ID STREQUAL MCXW716CxxxA OR CONFIG_DEVICE_ID STREQUAL MCXW716AxxxA) OR (CONFIG_BOARD STREQUAL kw45b41zevk OR CONFIG_BOARD STREQUAL k32w148evk OR CONFIG_BOARD STREQUAL kw45b41zloc OR CONFIG_BOARD STREQUAL evkmimxrt1180 OR CONFIG_BOARD STREQUAL evkbmimxrt1170 OR CONFIG_BOARD STREQUAL mcxn9xxevk OR CONFIG_BOARD STREQUAL mcxn5xxevk OR CONFIG_BOARD STREQUAL frdmmcxn947 OR CONFIG_BOARD STREQUAL frdmmcxw71)) AND (CONFIG_USE_middleware_multicore_rpmsg_lite_bm OR CONFIG_USE_middleware_multicore_rpmsg_lite_freertos OR CONFIG_USE_middleware_multicore_rpmsg_lite_xos OR CONFIG_USE_middleware_multicore_rpmsg_lite_azurertos))
 
The i.MX 8M Plus is not part of this conditional check.
 
John

 

0 项奖励
回复

758 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi @JohnE :

I did a quick check on my side with SDK 2.16.  It works on my side. 

Please refer to below picture.

 

danielchen_0-1749209534236.png

 

 

0 项奖励
回复

744 次查看
JohnE
Contributor II
I chose SDK v2.16.100 because I thought it would be newer.
When I try SDK v2.16.000 the project is imported correctly.
Anyway, now I can see if it solves my problem.

John
0 项奖励
回复