Hi Jeremy,
Thanks for getting back. Here are the responses to your questions:
2. The board is the MIMXRT1064-EVK.
3. The debugger is on the onboard CMSIS-DAP probe.
1. Yes, a project created in VS code on Ubuntu. The output is binary, hex and ELF. I use the ELF with the hope to facilitate a debug session in the MCUXpresso IDE. Steps:
a) Create a MCUXpressoIDE C/C++ project with the configuration as in attached pictures - project_config and project_config_advanced_settings.
b) Project Properties -> Run/Debug Settings- Change the application to the custom application (under the Main tab)built outside of the IDE (custom_app.elf). Keep everything else the same(connect scripts and settings etc.)
c) Link the source code folders under 'source', not copy but just link.
2. Change the SW7 settings to 'Serial Download'.
3. Debug the application after it chooses the right debug adapter.
With the above I'm not able to even get the debug session started as it is still looking for the project's .axf file even though I had changed the target to my custom application. I was however able to change the target to mine during one of my poking around experiments but even that lead to a session where it would start debugging, throw some exceptions- show me the disassembly, but couldn't locate the source code path. I explicitly added the path as well but it still couldn't find it. So two questions from here-
i) How do I reliably have it use my custom application file instead of looking for the project's default .axf?
ii)When it does use my custom application how can it use my source code to step through and show me where the issues are occurring?
Thanks for your help,
GS