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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

242 Views
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 Kudos
Reply
1 Reply

176 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2174602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EImport%20example%20app%20fails%20for%20Trustzone%20hello_world_ns%20in%20MCUXpresso%20for%20VSCode%20for%20imx93EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2174602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI'm%20trying%20to%20import%20the%20hello_world_ns%20example%20project%20from%20the%20mcuxsdk%20repository%20in%20MCUXpresso%20for%20VSCode.%20In%20the%20Import%20Example%20from%20Repository%20dialog%20box%20I%20select%20the%20SDK%20(I've%20tried%20both%2025.6.0%20and%20the%20latest%2025.9.0)%20the%20MCIMX93-EVK%20board%2C%20trustzone_examples%2Fhello_world_ns%2C%20Freestanding%20Application%2C%20the%20project%20name%20and%20location%2C%20and%20the%20toolchain%20Arm%20GNU%2014.2.1.%20This%20is%20running%20on%20a%20Windows%2011%20PC.%3C%2FP%3E%3CP%3EAfter%20processing%20for%20several%20seconds%2C%20this%20give%20the%20popup%20message%20%22Error%3A%20Failed%20to%20create%20freestanding%20example%22.%20When%20I%20look%20in%20the%20output%20tab%20under%20the%20MCUXpresso%20for%20VS%20Code%20filter%2C%20I%20get%20this%20output%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%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%3EI%20poked%20around%20at%20the%20command%20line%20and%20found%20that%20this%20is%20failing%20because%20the%20example.yaml%20file%20in%26nbsp%3Bmcuxsdk%5Cexamples%5Ctrustzone_examples%5Chello_world_ns%5C%20expects%20the%20board%20parameter%20to%20be%20specified%20with%20the%20core%20ID%2C%20like%26nbsp%3B-b%20%3CA%20href%3D%22mailto%3Amcimx93evk%40cm33%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Emcimx93evk%40cm33%3C%2FA%3E.%20If%20I%20manually%20run%20the%20west%20export_app%20command%20from%20the%20output%20tab%20log%20with%20this%20core%20ID%20added%2C%20the%20project%20is%20created%20and%20I%20can%20then%20import%20it%20into%20the%20projects%20tab%20in%20MCUXpresso%20for%20VSCode.%20At%20this%20point%2C%20if%20I%20run%20the%20build%20with%20the%20build%20button%20it%20will%20fail.%20I%20can%20get%20around%20this%20by%20manually%20building%20at%20the%20command%20line%20and%20tweaking%20whatever%20was%20wrong%20and%20the%20project%20will%20build.%20However%2C%20if%20I%20load%20this%20project%20onto%20the%20M33%20with%20my%20MCU-Link%20Pro%20debugger%2C%20the%20app%20will%20hard%20fault%20when%20it%20tries%20to%20print.%3C%2FP%3E%3CP%3EAnyway%2C%20I%20can%20give%20more%20details%20of%20these%20later%20problems%20but%20it%20seems%20like%20I%20should%20not%20have%20to%20modify%20the%20example%20just%20to%20get%20it%20running.%20Am%20I%20doing%20something%20wrong%20here%20or%20is%20this%20just%20a%20bug%20in%20the%20build%20settings%20for%20these%20projects.%26nbsp%3B%3CBR%20%2F%3EThis%20same%20problem%20exists%20for%20all%20of%20the%20projects%20in%20the%20trustzone_examples%20subdirectory.%3C%2FP%3E%3CP%3EI%20looked%20at%20the%20example.yml%20files%20for%20some%20of%20the%20other%20not%20trustzone%20example%20projects%20and%20they%20do%20not%20specify%20the%26nbsp%3B%40cm33%20core%20ID%20on%20the%20end%20of%20the%20board%20string.%20Is%20this%20just%20an%20oversight%20in%20the%20formatting%20of%20these%20example.yml%20files%3F%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%26nbsp%3B%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%3EHi%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EI%20tired%20to%20reproduce%20this%20issue%20on%20my%20side%2C%20but%20I%20didn't%20see%20trustzone_examples%20.%26nbsp%3B%20%26nbsp%3Bonly%20saw%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%3ERegards%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E