I am debugging a zephyr project application with VSCode using the MCUXpresso for VS Code extentsion.
I created my freestanding application based on the zephyr example_application.
I created a custom board which is outside the zephyr repository, in a boards folder parallel to the app folder.
I am able to bulid with west command e.g.
west build -b custom_board -d build_board_app --pristine auto app
I imported the application into VSCode using MCUXpresso extension.
I had to copy some files over from another project that I originally created with "Import Example Application" to trigger the extension to detect the project as type "Zephyr"
I manually edited cmake-kits.json to modify BOARD to use my custom board definition.
I am able to build and debug, however when debugging the debugger lacks svd file and cannot display peripherals.
Normally when building with west I build from above the app directory e.g.
west build -b custom_board1 -d build_custom_board1 app
which results in buidling app in build directory above app
However the extension builds from within the app directory.
Questions:
1) What is best way for an imported project to select board?
2) How should I inform extension of the board mcu type?
3) Do I need to manually configure the svd file for debugging? How do I do that?
4) Is it possible for extension to build in the same place as west (outside of app folder)?