我正试图从 MCUXpresso for VSCode 的 mcuxsdk 资源库中导入 hello_world_ns 示例项目。在 “从存储库导入示例” 对话框中,我选择 SDK(我已经尝试过 25.6.0 和最新的 25.9.0)、MCIMX93-EVK 板、trustzone_examples/hello_world_ns、独立应用程序、项目名称和位置以及工具链 Arm GNU 14.2.1。这是在 Windows 11 电脑上运行的。
处理几秒钟后,弹出信息"Error:创建独立示例失败" 。当我查看 VS Code 过滤器的 MCUXpresso 下方的输出税务摊销收益时,我得到的是这样的输出:
[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我浏览了命令行后发现这失败了,因为 mcuxsdk\ examples\ trustzone_examples\ trustzone_examples\ hello_world_ns\ 中的示例.ya...如果我从输出税务摊销收益日志中手动运行 west export_app 命令,添加了这个核心 ID,项目就会创建,然后我可以将其导入到 VSCode 版 MCUXpresso 的 “项目” 税务摊销收益中。此时,如果我使用构建按钮运行版本,它将失败。我可以通过在命令行手动版本并调整任何错误来解决这个问题,项目就会版本。但是,如果我用 MCU-Link Pro 调试器将此项目加载到 M33 上,应用程序在尝试打印时就会出现故障。
总之,我可以稍后再详细说明这些问题,但似乎我不应该为了让它运行而修改示例。我在这里做错了什么,还是这只是这些项目的版本设置中的错误。
trustzone_examples 子目录下的所有项目都存在同样的问题。
我查看了其他一些非 trustzone 示例项目的示例.yml 文件,但它们没有在板字符串的末尾指定 @cm33 核心 ID。这只是 example.yml 文件格式的疏忽吗?
你好
我试着在自己的电脑上重现这个问题,但没有看到 trustzone_examples . 只看到 hello_world_cm33
此致
丹尼尔