Import example app fails for Trustzone hello_world_ns in MCUXpresso for VSCode for imx93EVK

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

Import example app fails for Trustzone hello_world_ns in MCUXpresso for VSCode for imx93EVK

248 次查看
nwolcott
Contributor I

I'm trying to import the hello_world_ns example project from the mcuxsdk repository in MCUXpresso for VSCode. In the Import Example from Repository dialog box I select the SDK (I've tried both 25.6.0 and the latest 25.9.0) the MCIMX93-EVK board, trustzone_examples/hello_world_ns, Freestanding Application, the project name and location, and the toolchain Arm GNU 14.2.1. This is running on a Windows 11 PC.

After processing for several seconds, this give the popup message "Error: Failed to create freestanding example". When I look in the output tab under the MCUXpresso for VS Code filter, I get this output:

[2025-09-23T20:10:05.391] [proc] [info] Cmd: C:\Users\BluTether-NathanWolc\.mcuxpressotools\.venv\Scripts\activate.bat && python -m west --version
[2025-09-23T20:10:05.850] [proc] [info] Cmd: C:\Users\BluTether-NathanWolc\.mcuxpressotools\.venv\Scripts\activate.bat && python -m west export_app examples/trustzone_examples/hello_world_ns -b mcimx93evk -o c:\Users\BluTether-NathanWolc\MCUXpressoVSCode\projects\mcimx93evk_hello_world_ns3
[2025-09-23T20:10:07.928] [proc] [error] C:\Users\BluTether-NathanWolc\.mcuxpressotools\.venv\Scripts\activate.bat exited with code 1
[2025-09-23T20:10:07.928] [proc] [error] 
FATAL ERROR: Cannot find any app match your input, please ensure following command can get a valid output                          

west list_project -p C:\Zephyr\nxp\mcuxsdk\mcuxsdk\examples\trustzone_examples\hello_world_ns -b mcimx93evk

[2025-09-23T20:10:07.928] [error] Failed to create freestanding example

I poked around at the command line and found that this is failing because the example.yaml file in mcuxsdk\examples\trustzone_examples\hello_world_ns\ expects the board parameter to be specified with the core ID, like -b mcimx93evk@cm33. If I manually run the west export_app command from the output tab log with this core ID added, the project is created and I can then import it into the projects tab in MCUXpresso for VSCode. At this point, if I run the build with the build button it will fail. I can get around this by manually building at the command line and tweaking whatever was wrong and the project will build. However, if I load this project onto the M33 with my MCU-Link Pro debugger, the app will hard fault when it tries to print.

Anyway, I can give more details of these later problems but it seems like I should not have to modify the example just to get it running. Am I doing something wrong here or is this just a bug in the build settings for these projects. 
This same problem exists for all of the projects in the trustzone_examples subdirectory.

I looked at the example.yml files for some of the other not trustzone example projects and they do not specify the @cm33 core ID on the end of the board string. Is this just an oversight in the formatting of these example.yml files?

i.MX93EVK 

0 项奖励
回复
1 回复

182 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi 

 

I tired to reproduce this issue on my side, but I didn't see trustzone_examples .   only saw hello_world_cm33

 

danielchen_1-1758958967656.png

 

 

danielchen_0-1758958712408.png

 

Regards

Daniel

 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2174602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9C%A8%20MCUXpresso%20for%20VSCode%20%E4%B8%AD%E4%B8%BA%20imx93EVK%20%E7%9A%84%20Trustzone%20hello_world_ns%20%E5%AF%BC%E5%85%A5%E7%A4%BA%E4%BE%8B%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E5%A4%B1%E8%B4%A5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2174602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%AD%A3%E8%AF%95%E5%9B%BE%E4%BB%8E%20MCUXpresso%20for%20VSCode%20%E7%9A%84%20mcuxsdk%20%E8%B5%84%E6%BA%90%E5%BA%93%E4%B8%AD%E5%AF%BC%E5%85%A5%20hello_world_ns%20%E7%A4%BA%E4%BE%8B%E9%A1%B9%E7%9B%AE%E3%80%82%E5%9C%A8%20%E2%80%9C%E4%BB%8E%E5%AD%98%E5%82%A8%E5%BA%93%E5%AF%BC%E5%85%A5%E7%A4%BA%E4%BE%8B%E2%80%9D%20%E5%AF%B9%E8%AF%9D%E6%A1%86%E4%B8%AD%EF%BC%8C%E6%88%91%E9%80%89%E6%8B%A9%20SDK%EF%BC%88%E6%88%91%E5%B7%B2%E7%BB%8F%E5%B0%9D%E8%AF%95%E8%BF%87%2025.6.0%20%E5%92%8C%E6%9C%80%E6%96%B0%E7%9A%84%2025.9.0%EF%BC%89%E3%80%81MCIMX93-EVK%20%E6%9D%BF%E3%80%81trustzone_examples%2Fhello_world_ns%E3%80%81%E7%8B%AC%E7%AB%8B%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E3%80%81%E9%A1%B9%E7%9B%AE%E5%90%8D%E7%A7%B0%E5%92%8C%E4%BD%8D%E7%BD%AE%E4%BB%A5%E5%8F%8A%E5%B7%A5%E5%85%B7%E9%93%BE%20Arm%20GNU%2014.2.1%E3%80%82%E8%BF%99%E6%98%AF%E5%9C%A8%20Windows%2011%20%E7%94%B5%E8%84%91%E4%B8%8A%E8%BF%90%E8%A1%8C%E7%9A%84%E3%80%82%3C%2FP%3E%3CP%3E%E5%A4%84%E7%90%86%E5%87%A0%E7%A7%92%E9%92%9F%E5%90%8E%EF%BC%8C%E5%BC%B9%E5%87%BA%E4%BF%A1%E6%81%AF%22Error%EF%BC%9A%E5%88%9B%E5%BB%BA%E7%8B%AC%E7%AB%8B%E7%A4%BA%E4%BE%8B%E5%A4%B1%E8%B4%A5%22%20%E3%80%82%E5%BD%93%E6%88%91%E6%9F%A5%E7%9C%8B%20VS%20Code%20%E8%BF%87%E6%BB%A4%E5%99%A8%E7%9A%84%20MCUXpresso%20%E4%B8%8B%E6%96%B9%E7%9A%84%E8%BE%93%E5%87%BA%E7%A8%8E%E5%8A%A1%E6%91%8A%E9%94%80%E6%94%B6%E7%9B%8A%E6%97%B6%EF%BC%8C%E6%88%91%E5%BE%97%E5%88%B0%E7%9A%84%E6%98%AF%E8%BF%99%E6%A0%B7%E7%9A%84%E8%BE%93%E5%87%BA%EF%BC%9A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%20translate%3D%22no%22%3E%5B2025-09-23T20%3A10%3A05.391%5D%20%5Bproc%5D%20%5Binfo%5D%20Cmd%3A%20C%3A%5CUsers%5CBluTether-NathanWolc%5C.mcuxpressotools%5C.venv%5CScripts%5Cactivate.bat%20%26amp%3B%26amp%3B%20python%20-m%20west%20--version%0A%5B2025-09-23T20%3A10%3A05.850%5D%20%5Bproc%5D%20%5Binfo%5D%20Cmd%3A%20C%3A%5CUsers%5CBluTether-NathanWolc%5C.mcuxpressotools%5C.venv%5CScripts%5Cactivate.bat%20%26amp%3B%26amp%3B%20python%20-m%20west%20export_app%20examples%2Ftrustzone_examples%2Fhello_world_ns%20-b%20mcimx93evk%20-o%20c%3A%5CUsers%5CBluTether-NathanWolc%5CMCUXpressoVSCode%5Cprojects%5Cmcimx93evk_hello_world_ns3%0A%5B2025-09-23T20%3A10%3A07.928%5D%20%5Bproc%5D%20%5Berror%5D%20C%3A%5CUsers%5CBluTether-NathanWolc%5C.mcuxpressotools%5C.venv%5CScripts%5Cactivate.bat%20exited%20with%20code%201%0A%5B2025-09-23T20%3A10%3A07.928%5D%20%5Bproc%5D%20%5Berror%5D%20%0AFATAL%20ERROR%3A%20Cannot%20find%20any%20app%20match%20your%20input%2C%20please%20ensure%20following%20command%20can%20get%20a%20valid%20output%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%0Awest%20list_project%20-p%20C%3A%5CZephyr%5Cnxp%5Cmcuxsdk%5Cmcuxsdk%5Cexamples%5Ctrustzone_examples%5Chello_world_ns%20-b%20mcimx93evk%0A%0A%5B2025-09-23T20%3A10%3A07.928%5D%20%5Berror%5D%20Failed%20to%20create%20freestanding%20example%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CA%20href%3D%22mailto%3Amcimx93evk%40cm33%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%E6%88%91%E6%B5%8F%E8%A7%88%E4%BA%86%E5%91%BD%E4%BB%A4%E8%A1%8C%E5%90%8E%E5%8F%91%E7%8E%B0%E8%BF%99%E5%A4%B1%E8%B4%A5%E4%BA%86%EF%BC%8C%E5%9B%A0%E4%B8%BA%20mcuxsdk%5C%20examples%5C%20trustzone_examples%5C%20trustzone_examples%5C%20hello_world_ns%5C%20%E4%B8%AD%E7%9A%84%E7%A4%BA%E4%BE%8B.yaml%20%E6%96%87%E4%BB%B6%E8%A6%81%E6%B1%82%E4%BD%BF%E7%94%A8%E6%A0%B8%E5%BF%83%20ID%20%E6%9D%A5%E6%8C%87%E5%AE%9A%E6%9D%BF%E5%8F%82%E6%95%B0%EF%BC%8C%E6%AF%94%E5%A6%82-b%20mcimx93evk%20%40cm33%E3%80%82%3C%2FA%3E%E5%A6%82%E6%9E%9C%E6%88%91%E4%BB%8E%E8%BE%93%E5%87%BA%E7%A8%8E%E5%8A%A1%E6%91%8A%E9%94%80%E6%94%B6%E7%9B%8A%E6%97%A5%E5%BF%97%E4%B8%AD%E6%89%8B%E5%8A%A8%E8%BF%90%E8%A1%8C%20west%20export_app%20%E5%91%BD%E4%BB%A4%EF%BC%8C%E6%B7%BB%E5%8A%A0%E4%BA%86%E8%BF%99%E4%B8%AA%E6%A0%B8%E5%BF%83%20ID%EF%BC%8C%E9%A1%B9%E7%9B%AE%E5%B0%B1%E4%BC%9A%E5%88%9B%E5%BB%BA%EF%BC%8C%E7%84%B6%E5%90%8E%E6%88%91%E5%8F%AF%E4%BB%A5%E5%B0%86%E5%85%B6%E5%AF%BC%E5%85%A5%E5%88%B0%20VSCode%20%E7%89%88%20MCUXpresso%20%E7%9A%84%20%E2%80%9C%E9%A1%B9%E7%9B%AE%E2%80%9D%20%E7%A8%8E%E5%8A%A1%E6%91%8A%E9%94%80%E6%94%B6%E7%9B%8A%E4%B8%AD%E3%80%82%E6%AD%A4%E6%97%B6%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%88%91%E4%BD%BF%E7%94%A8%E6%9E%84%E5%BB%BA%E6%8C%89%E9%92%AE%E8%BF%90%E8%A1%8C%E7%89%88%E6%9C%AC%EF%BC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5%81%9A%E9%94%99%E4%BA%86%E4%BB%80%E4%B9%88%EF%BC%8C%E8%BF%98%E6%98%AF%E8%BF%99%E5%8F%AA%E6%98%AF%E8%BF%99%E4%BA%9B%E9%A1%B9%E7%9B%AE%E7%9A%84%E7%89%88%E6%9C%AC%E8%AE%BE%E7%BD%AE%E4%B8%AD%E7%9A%84%E9%94%99%E8%AF%AF%E3%80%82%3CBR%20%2F%3Etrustzone_examples%20%E5%AD%90%E7%9B%AE%E5%BD%95%E4%B8%8B%E7%9A%84%E6%89%80%E6%9C%89%E9%A1%B9%E7%9B%AE%E9%83%BD%E5%AD%98%E5%9C%A8%E5%90%8C%E6%A0%B7%E7%9A%84%E9%97%AE%E9%A2%98%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E6%9F%A5%E7%9C%8B%E4%BA%86%E5%85%B6%E4%BB%96%E4%B8%80%E4%BA%9B%E9%9D%9E%20trustzone%20%E7%A4%BA%E4%BE%8B%E9%A1%B9%E7%9B%AE%E7%9A%84%E7%A4%BA%E4%BE%8B.yml%20%E6%96%87%E4%BB%B6%EF%BC%8C%E4%BD%86%E5%AE%83%E4%BB%AC%E6%B2%A1%E6%9C%89%E5%9C%A8%E6%9D%BF%E5%AD%97%E7%AC%A6%E4%B8%B2%E7%9A%84%E6%9C%AB%E5%B0%BE%E6%8C%87%E5%AE%9A%20%40cm33%20%E6%A0%B8%E5%BF%83%20ID%E3%80%82%E8%BF%99%E5%8F%AA%E6%98%AF%20example.yml%20%E6%96%87%E4%BB%B6%E6%A0%BC%E5%BC%8F%E7%9A%84%E7%96%8F%E5%BF%BD%E5%90%97%EF%BC%9F%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2Fi.MX93EVK%2Fpd-p%2Fi.MX93EVK%22%20class%3D%22lia-product-mention%22%20data-product%3D%222927-1%22%20target%3D%22_blank%22%3Ei.MX93EVK%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2176918%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Import%20example%20app%20fails%20for%20Trustzone%20hello_world_ns%20in%20MCUXpresso%20for%20VSCode%20for%20imx93EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2176918%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%20%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E6%88%91%E8%AF%95%E7%9D%80%E5%9C%A8%E8%87%AA%E5%B7%B1%E7%9A%84%E7%94%B5%E8%84%91%E4%B8%8A%E9%87%8D%E7%8E%B0%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%EF%BC%8C%E4%BD%86%E6%B2%A1%E6%9C%89%E7%9C%8B%E5%88%B0%20trustzone_examples%20.%20%20%20%E5%8F%AA%E7%9C%8B%E5%88%B0%20hello_world_cm33%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielchen_1-1758958967656.png%22%20style%3D%22width%3A%20608px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielchen_1-1758958967656.png%22%20style%3D%22width%3A%20608px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358803i8423E718F26DE54F%2Fimage-dimensions%2F608x332%3Fv%3Dv2%22%20width%3D%22608%22%20height%3D%22332%22%20role%3D%22button%22%20title%3D%22danielchen_1-1758958967656.png%22%20alt%3D%22danielchen_1-1758958967656.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielchen_0-1758958712408.png%22%20style%3D%22width%3A%20634px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielchen_0-1758958712408.png%22%20style%3D%22width%3A%20634px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358802iC020C9C2567C306F%2Fimage-dimensions%2F634x309%3Fv%3Dv2%22%20width%3D%22634%22%20height%3D%22309%22%20role%3D%22button%22%20title%3D%22danielchen_0-1758958712408.png%22%20alt%3D%22danielchen_0-1758958712408.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E6%AD%A4%E8%87%B4%3C%2FP%3E%0A%3CP%3E%E4%B8%B9%E5%B0%BC%E5%B0%94%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E