I was excited to get SAM-ICE up and running on Mac OS so I could use GDB without windows. Before you
start though, you should download the latest version of the
JLINK software for Windows
from
SEGGER so that you can update the flash on your JTAG debugger. This was
a huge holdup for me because my firmware was older.
I installed the tools into /Applications/JLink.
The SAM-ICE tools require "
libusb", so you will need to get this. I used
macports, and
SEGGER used macports, so I suggest this in case things change in the future. Once you install macports, type:
sudo port install libusb
I ran JLinkGDBServer from the command line, but go this:
suinomakuea:~ suigin$ /Applications/JLink/JLinkGDBServer ; exit;
dyld: Library not loaded: Output/Release/x86_64/JLinkARMDLL/libjlinkarm.4.50.9.dylib
Referenced from: /Applications/JLink/JLinkGDBServer
Reason: image not found
Trace/BPT trap
JLinkGDBServer.command is the command that should be run. It would have been better
to have named it JLinkGDBServer.sh or something that would be better for people who know the command line. You will still get a library error because you need to copy the libraries to the location specified in the file JLinkGDBServer.command.
sudo cp /Applications/JLink/libjlinkarm.4.* /opt/local/lib/.
And now, when I run ./JLinkGDBServer.command I get a debugger connection!