What I tried first was the article by Scott on using GDB https://learn.adafruit.com/debugging-th ... -gdb/setup. I got to the point where I type the command:
Code: Select all
JLinkGDBServer -if SWD -device ATSAMD21G18
Code: Select all
2449 ~ » JLinkGDBServer -if SWD -device ATSAMD21G18
SEGGER J-Link GDB Server V7.54c Command Line Version
JLinkARM.dll V7.54c (DLL compiled Sep 20 2021 13:55:08)
Command line: -if SWD -device ATSAMD21G18
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: yes
Generate logfile: off
Verify download: off
Init regs on start: off
Silent mode: off
Single run mode: off
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: ATSAMD21G18
Target interface: SWD
Target interface speed: 4000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link EDU Mini V1 compiled Sep 24 2021 16:44:11
Hardware: V1.00
S/N: 801035568
Feature(s): FlashBP, GDB
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 2331
Connecting to target...
ERROR: Could not connect to target.
Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
Shutting down...
Could not connect to target.
Please check power, connection and settings.%
I then saw a post here about using Ozone. So I tried that. I downloaded it and couldn't figure out how to give it a project file. I tried the wizard, and thought it was working (SWD mode???) but it also says "Connection failed" I have no idea what I am doing in that program yet though.
I am kind of at a loss. Would be grateful for any direction at this point. The end goal is probably to use JLink with PlatformIO - I have switched to it from the Arduino IDE recently, but at this point I would just like to prove that it works.