I have a very basic Arduino application (blink) that I am attempting to test using a Segger J-LINK Plus with a Arduino MKR1000. Ideally, I would like to use the JLink for both uploading and debugging. So far, not getting very far.
I have tried several settings I have found in the documentation and community pages. Based on my last read I have removed any extra_script.py and only have settings in my platformio.ini as follows…
platform = atmelsam
board = mkr1000USB
framework = arduino
upload_protocol = jlink
debug_tool = jlink
I have J-Link V634f installed and have started the JLinkGDBServer.exe (GUI) before starting the debug from within VSCode\PlatformIO.
When I attempt to start debugging I receive a pop-up after the successful build steps with this message…
Failed to launch GDB: .pioinit: 12 Error in sourced command file: Remote communication error. Target disconnected.: No error. (from interpreter-exec console “source.pioinit”)
FYI… Just learning PlatformIO.