RT 1180 multi-core examples

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

RT 1180 multi-core examples

跳至解决方案
1,110 次查看
FNilsson
Contributor I
I'm sitting with the evaluation kit for the i.MX RT 1180 and I am trying to get multi-core operation working. 
 
 
I have found an Application note for a similar use case for the RT 1170 (AN13264), but not for the RT1180. Is there more documentation, apart from the links above, on how to get multi-core operation working on the RT1180? 
 
And I am trying to build and understand the Hello World multi-core example. 
But I am running into trouble. Building and debugging the example project gives the following error: "Could not determine the build target path for project primary" 
 

 

I have tried multiple single-core examples, and they build and execute as expected.error.png
 
标记 (1)
0 项奖励
回复
1 解答
695 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @FNilsson,

I made a mistake on my earlier comment. In previous versions of the SDK, two linked projects were imported, one for the primary core and another one for the secondary core. However, from SDK 25.xx, this is no longer the case. Only one project is imported, which has two directories, one for each core. Therefore this is not the issue.

I recommend you try again, but this time importing the project as a freestanding project, and on a folder closer to C:\ drive. Sometimes issues can arise with the compiler when having a path that's too long.

 

在原帖中查看解决方案

0 项奖励
回复
10 回复数
1,067 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @FNilsson,

We don't have much more documentation about multicore examples, other than the following two from the MCUXpresso for VS Code User Guide:

Debug Common Operations · nxp-mcuxpresso/vscode-for-mcux Wiki · GitHub

Multicore Examples on LPC55S6x and MCUXPresso SDK · nxp-mcuxpresso/vscode-for-mcux Wiki · GitHub (This is fore LPC55s6x but the multicore characteristics still apply for the i.MX RT devices)

With respect to the error message, do you see both the primary and secondary core imported on your "projects" window? Does this error also happen in standalone MCUXpresso IDE?

0 项奖励
回复
1,057 次查看
FNilsson
Contributor I

Hi, I have not tried the IDE. I've tried VS Code, and I have tried to build and flash using the Linux command line by following the steps from the following sources: 

https://mcuxpresso.nxp.com/mcuxsdk/latest/html/gsd/run_project.html
https://mcuxpresso.nxp.com/mcuxsdk/latest/html/develop/build_system/Sysbuild.html
https://mcuxpresso.nxp.com/mcuxsdk/latest/html/examples/multicore_examples/hello_world/readme.html 

Neither has worked so far. VS Code generates the error above. It imports the "primary core" project, but there is no second one as far as I can see. I'm also not sure which one to import as the "primary core" example is the only one that appears in the list.

The command-line route appears to work, as it builds and flashes without error. But after I reboot the board, nothing happens. No output over serial. 

I've also tried the Multicore manager demo with the same result. Builds, flashes, but no output and no LEDs blinking.

I've added the following to the CMaketext.txt: 

> # Convert binary to bin format
> mcux_convert_binary(BINARY
> ${APPLICATION_BINARY_DIR}/${MCUX_SDK_PROJECT_NAME}.bin)

And I built and flashed with the following commands:

> west build examples/multicore_examples/hello_world/primary --pristine --toolchain armgcc --config flexspi_nor_debug -b evkmimxrt1180 -Dcore_id=cm33
> west flash -r linkserver

0 项奖励
回复
1,023 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @FNilsson,

I also noticed that currently, VS Code seems to only import one of the two projects. This might be the root of the issue. I will investigate internally with the VS Code team to see if there is a fix for this issue.

BR,
Edwin.

0 项奖励
回复
1,051 次查看
FNilsson
Contributor I
Copied the wrong build command. This was the command I used:
west build --sysbuild examples/multicore_examples/hello_world/primary --pristine --toolchain armgcc --config flexspi_nor_release -b evkmimxrt1180 -Dcore_id=cm33
0 项奖励
回复
963 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @FNilsson,

One last thing to consider: What SDK repository are you using? I it the latest (v25.06)?

0 项奖励
回复
873 次查看
FNilsson
Contributor I

Hi,

Yes, I'm using version 25.6.0.

0 项奖励
回复
834 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @FNilsson,

I haven't been able to replicate this issue. Does the issue occur when running with the normal "Debug" button instead of running the application via command prompt?

0 项奖励
回复
739 次查看
FNilsson
Contributor I

So there are two different issues. 

Which one is it that you could not reproduce?

When I use the "Debug" button in VS Code, I get the error in the screenshot and when I use the command line, it goes through the entire process without error, but the application does not seem to start on the board after flashing.

 

In an earlier comment, you said that VS Code did not import both projects. Has that changed? 

0 项奖励
回复
696 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @FNilsson,

I made a mistake on my earlier comment. In previous versions of the SDK, two linked projects were imported, one for the primary core and another one for the secondary core. However, from SDK 25.xx, this is no longer the case. Only one project is imported, which has two directories, one for each core. Therefore this is not the issue.

I recommend you try again, but this time importing the project as a freestanding project, and on a folder closer to C:\ drive. Sometimes issues can arise with the compiler when having a path that's too long.

 

0 项奖励
回复
279 次查看
FNilsson
Contributor I
Hi,
Thanks!
I re-created the project, and it now works.
0 项奖励
回复