...get JLink to work on Mac OS X

Comments

5 comments

  • Avatar
    Tomas Nordström

    If you are using brew (http://mxcl.github.com/homebrew/) the command to compile universal is "brew install --universal libusb" and the library is then normally installed in /usr/local/Cellar/libusb/VERSION/lib/ where VERSION currently is 1.0.9.

    0
    Comment actions Permalink
  • Avatar
    Robert Rau

    Attached is a AppleScript app to run Terminal and enter the two commands above. Just a simple convenience so it can be put in your dock.

    Script:

    tell application "Terminal"

    activate

    my execCmd("export DYLD_LIBRARY_PATH=/opt/local/lib:$DYLD_LIBRARY_PATH", 1)

    my execCmd("'/Applications/CrossWorks for ARM 2.3/CrossStudio for ARM 2.3.app/Contents/MacOS/crossstudio'", 0)

    end tell

     

    on execCmd(cmd, wait)

    tell application "System Events"

    tell application process "Terminal"

    set frontmost to true

    keystroke cmd

    keystroke return

    end tell

    end tell

    delay wait

    end execCmd

    0
    Comment actions Permalink
  • Avatar
    Rajesh

    Hi, I am trying to use segger J-Link edu version on the mac, and I have followed the above instructions however when ever i am trying to connect jLink i am getting "Cannot access ~/segger/libjlinkarm.4.dylib" error message. Any thoughts on this error? 

    0
    Comment actions Permalink
  • Avatar
    Robert Rau

    Rajesh, did you get it working? It sounds like your

    export DYLD_LIBRARY_PATH=/opt/local/lib:$DYLD_LIBRARY_PATH

    may not have worked.

    You must have your default shell set to bash for the export to work (set this by System Preferences -> Users & Groups -> make sure you are unlocked -> right click on yourself -> Advanced Options -> Login Shell)

    0
    Comment actions Permalink
  • Avatar
    Rajesh Gali
    Robert, yes it is working fine..
    0
    Comment actions Permalink

Please sign in to leave a comment.