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.
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.
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.
Hi @EdwinHz
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.
Hi @Peter19,
What error message do you see? How did you import this project to VSCode? Was it originally made in MCUXpresso?