Code not being refreshed into target
If I stop debugging, then modify my code, then recompile. I relaunch the debugger but it is using stale code. Is there a way I can force it to re download the code in the target every time I start a debug session?
I think you should check whether you save your changed files and compile correctly.
I am sorry. I made a mistake and had renamed my .elf file. I am embarrassed to say that I was was pointing to an old .elf file that still existed in my build directory next to the new one that was actually getting updated. As soon as I fixed the "executable": field in my launch.json file it worked fine. Pilot error on my part. Thanks for your help.