MCUXpresso vscode won't accept my project for debugging

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MCUXpresso vscode won't accept my project for debugging

940件の閲覧回数
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 返答(返信)

832件の閲覧回数
Peter19
Contributor II

Hi @EdwinHz 

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

 

0 件の賞賛
返信

652件の閲覧回数
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 件の賞賛
返信

878件の閲覧回数
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 件の賞賛
返信

878件の閲覧回数
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 件の賞賛
返信

908件の閲覧回数
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 件の賞賛
返信