So, I asked Google Gemini enough questions and finally figured out that I could stop openocd from sitting there "Listening..." if I include the following addition to the "Upload" task I added to the tasks.json file in the .vscode directory of the SDK example I instantiated:
"-c", "shutdown"
My task now reads:
My next project will be figuring out how to generalize the task to automatically figure out the name of the program to upload, and how to get the pico to execute the program without having to press the reset button.
"-c", "shutdown"
My task now reads:
Code:
"label": "Upload","type": "shell","command": "openocd","args": ["-f", "interface/cmsis-dap.cfg","-f", "target/rp2040.cfg","-c", "adapter speed 5000","-c", "program my_program.elf verify reset exit""-c"; "shutdown"],"problemMatcher": [],"group": {"kind": "build","isDefault": true}
Statistics: Posted by picopirate — Fri Dec 20, 2024 3:08 pm