- Fri Nov 22, 2019 3:21 pm
Sure thing. It was actually much easier. If you go into the VS Code extensions manager and search for "cortex", you should see a plugin called "Cortex-Debug" by marus25. Install it. Then, configure your launch.json file as noted above with your personal customizations. You'll need the ELF file compiled/linked (all objects, too) with the "-g" flag. Start the debugger from VS Code. The server should start and connect to your target. You can set "runToMain" true/false in the JSON file. I did have a few hiccups because I hadn't set paths correctly. Once I got that corrected and added the SVD path you provided (thanks again), all seems to be working. I've got source, vars, watch, call stack, BP's, Cortex Periphs/Regs. I'm stepping, running, etc. I've also got my printf's going to my terminal app. It's very, very handy. I made a lot of progress today. The great thing is that I don't have to worry about the cost of SES or another product. And, I can use this for any potential commercial stuff. Let me know how it goes. I don't think I left out anything major.