MCUXpresso vscode won't accept my project for debugging

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

MCUXpresso vscode won't accept my project for debugging

953 次查看
Peter19
Contributor II

Hi

My hello_world based example (New SDK) with plain cmake builds fine, but I cannot get MCUXpresso in VSCode comfortable enough with it to start a debugging sessions. It seems unable to find the elf.

How can I tweak the files so debug initiation works?

BR

/Peter

root CMakeLists.txt used instead of demo_app as per preset.

标记 (3)
0 项奖励
回复
5 回复数

845 次查看
Peter19
Contributor II

Hi @EdwinHz 

I thought I already attached the files... Anyway, here they are.

 

0 项奖励
回复

665 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Peter19,

Your project's format is different to the one in our example codes, I recommend you stick with the file organization that we use in our example codes instead of modifying it.

That said, it seems that VSCode is looking for a .elf file that it does not find. This is probably because you are converting your .elf to a .bin in the CMakeLIsts.txt.

Please revert these changes to allow VSCode to create and find the .elf file.

 

0 项奖励
回复

891 次查看
Peter19
Contributor II

Forgot to mention: Some edits were made to replicate the results without the mcux_ macros and all good at that step. Problems occurs only when shifting to root cmakelists.

0 项奖励
回复

891 次查看
Peter19
Contributor II

Hi @EdwinHz 

Peter19_0-1748585118645.png

The project is the example frdmmcxn947_hello_world_cm33 and it was imported by using VSCode => MCUXpresso => Import Example from Repository. Debug worked fine then.

Then I just added a root level CMakeLists.txt and moved and adapted CMakePresets.json adn mcux_include.json to same location. .vscode/settings.json sourceDirectory was also aligned with the change. 

0 项奖励
回复

921 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Peter19,

What error message do you see? How did you import this project to VSCode? Was it originally made in MCUXpresso?

0 项奖励
回复