Shop OBEX P1 Docs P2 Docs Learn Events
SimpleIDE on MAC only with sudo — Parallax Forums

SimpleIDE on MAC only with sudo

MoerbiusMoerbius Posts: 5
edited 2014-08-10 02:27 in General Discussion
Hello,

I've installed SimpleIDE on MAC but when i try to upload to the ic it says "error: no propeller chip on port /dev/cu.usbserial-AD025LVN"
However, when i run it as sudo everything works.

Any idea how to fix permissions?

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-08-09 08:44
    Yes, this problem occurs both in Linux and Apples. The serial port needs to have the software included in the Group rights for the device.

    I am only providing the link to the Linux solution as I am not a Max user. I am hoping someone else will offer specifics if that isn't enough.

    In Linux, one just adds themselves to the group called 'dialout'.
    You would have to verifiy what Apple called the Group that the serial device is attached to.

    And then do something like this..

    'sudo adduser $USER dialout' clear.gif

    http://forums.parallax.com/showthread.php/150277-Simple-IDE-Linux-Question
  • MoerbiusMoerbius Posts: 5
    edited 2014-08-09 09:12
    Still no sucess yet.

    $ ls -l /dev/cu.usbserial-AD025LVN
    crw-rw-rw- 1 root wheel 17, 1 Aug 9 17:06 /dev/cu.usbserial-AD025LVN

    So the group is wheel wight?

    Then:
    $ sudo dseditgroup -o edit -a Moerbius -t user wheel

    but still doesn't work.
    I don't have a dialout group. i tried with tty, wheel and dialer

    Any ideas?
  • TorTor Posts: 2,010
    edited 2014-08-09 09:25
    'wheel' is right. However, with crw-rw-rw- you should effectively have global access (write rights for everybody), so it *should* work even withouth adding yourself to 'wheel'. So that's a bit strange. Assuming it works like any other *nix, which should be a valid assumption.
    In any case, for that particular 'wheel' assignment to work, you need to log out completely and then log in again (restart the computer if you really want to be sure). That is because the change does not take effect until the 'login' program has executed.

    -Tor
  • MoerbiusMoerbius Posts: 5
    edited 2014-08-09 09:34
    Even with reboot still doesn't work
  • TorTor Posts: 2,010
    edited 2014-08-09 09:40
    Maybe someone with MAC experience will drop by, unfortunately I'm not one of them. It *looks* like everything should be in place for it to work non-root, so there must be some additional hidden issues but I have no idea about what they could be.
  • dgatelydgately Posts: 1,630
    edited 2014-08-09 11:04
    Moerbius wrote: »
    Still no sucess yet.

    $ ls -l /dev/cu.usbserial-AD025LVN
    crw-rw-rw- 1 root wheel 17, 1 Aug 9 17:06 /dev/cu.usbserial-AD025LVN

    So the group is wheel wight?

    Then:
    $ sudo dseditgroup -o edit -a Moerbius -t user wheel

    but still doesn't work.
    I don't have a dialout group. i tried with tty, wheel and dialer

    Any ideas?

    Well, you should not need any of these permission or group changes to get SimpleIDE working and loading your prop...

    What version of SimpleIDE have you installed? Was it acquired from: learn.parallax.com?
    What version of Mac OS X are you running?
    How are your SimpleIDE preferences set?
    The loader delay setting? (see below):

    SIDEPref.png


    This may asset in debugging your issue.

    Thanks,
    dgately
    513 x 406 - 71K
  • MoerbiusMoerbius Posts: 5
    edited 2014-08-09 11:08
    Version 0.9.45 downloaded from parallax
    Mavericks 10.9.4
    loader delay is 0
  • whiteoxewhiteoxe Posts: 794
    edited 2014-08-09 12:27
    Yes, this problem occurs both in Linux and Apples. The serial port needs to have the software included in the Group rights for the device.

    I am only providing the link to the Linux solution as I am not a Max user. I am hoping someone else will offer specifics if that isn't enough.

    In Linux, one just adds themselves to the group called 'dialout'.
    You would have to verifiy what Apple called the Group that the serial device is attached to.

    And then do something like this..

    'sudo adduser $USER dialout' clear.gif

    http://forums.parallax.com/showthread.php/150277-Simple-IDE-Linux-Question
    I got lucky because it worked straight up when I installed on Mint and Ubuntu. but still I haven't made it a one click operation , I always use a terminal to navigate to the simpleide directory and then start it from there ! It's no drama.
  • jazzedjazzed Posts: 11,803
    edited 2014-08-09 15:01
    Can't you just use launchpad? No reason to use the Unix terminal really. Messing with permissions is not really advisable.

    There is a new version available through http://learn.parallax.com/propellerc . The revisions on the start page were not updated correctly until recently (they should have been removed really IMHO).
  • MoerbiusMoerbius Posts: 5
    edited 2014-08-10 02:27
    i've upgraded SimpleIDE but still the same. i can program with sudo but not normally

    the odd thing is that i use avrs for ages and i can program them without sudo...
Sign In or Register to comment.