윈도우즈에서 crossworks와 J-link는 아주 잘 동작한다.
그런데, 맥에서는 연결이 안된다는 메세지를 출력하고 동작하지 않는다. 이 해법은,
https://rowley.zendesk.com/entries/21668158-get-jlink-to-work-on-mac-os-x
옮겨오면,
...get JLink to work on Mac OS X
Jon Elliott
asked this on Jun 29 04:30 pm
NOTE: This article applies to CrossWorks for ARM version 2.3 onwards. J-Link is not supported in the Mac OS version of CrossWorks prior to version 2.3.
1. Download the J-Link software & documentation pack for MAC from http://www.segger.com/jlink-software.html, open the .dmg file and copy the contents onto your hard drive.
2. Download and install macports from http://www.macports.org if you have not done so already.
3. Install libusb by running 'sudo port install libusb +universal' from the command line (make sure you have the +universal option so you get both 32-bit and 64-bit versions of libusb).
4. Start CrossStudio with the DYLD_LIBRARY_PATH environment variable set to include the directory containing the libusb library you just installed (/opt/local/lib). To do this:
-> Open a terminal and run the command 'export DYLD_LIBRARY_PATH=/opt/local/lib:$DYLD_LIBRARY_PATH' then start CrossStudio from the command line by running '/Applications/CrossWorks for ARM 2.3/CrossStudio for ARM 2.3.app/Contents/MacOS/crossstudio'.
5. In CrossStudio, set the 'J-Link > J-Link DLL File' target property to point to the libjlinkarm.4.dylib file you installed in step 1.
그런데, 리눅스 환경이면 .profile에서 DYLD_LIBRARY_PATH 를 설정해 줄텐데, 맥은 당체 알수없다. 항상 쉘에서 실행할 수도 없는 노릇이고...
sudo cp /opt/local/lib/libusb* /usr/lib/.
이렇게 해 놓았다.